Merge branch 'staged'
[dports.git] / devel / codeblocks / Makefile
1 PORTNAME=       codeblocks
2 PORTVERSION=    20.03
3 PORTREVISION=   7
4 CATEGORIES=     devel
5 MASTER_SITES=   SF/${PORTNAME}/Sources/${PORTVERSION}
6
7 MAINTAINER=     ports@FreeBSD.org
8 COMMENT=        Open source, cross-platform, free C/C++ IDE
9 WWW=            https://www.codeblocks.org/
10
11 LICENSE=        GPLv3 LGPL3
12 LICENSE_COMB=   multi
13
14 BUILD_DEPENDS=  zip:archivers/zip
15 LIB_DEPENDS=    libboost_system.so:devel/boost-libs \
16                 libfontconfig.so:x11-fonts/fontconfig \
17                 libfreetype.so:print/freetype2 \
18                 libhunspell-1.7.so:textproc/hunspell \
19                 libtinyxml.so:textproc/tinyxml
20
21 USES=           autoreconf compiler:c++11-lang desktop-file-utils \
22                 fam:gamin gettext-runtime gnome libtool localbase \
23                 pathfix pkgconfig shared-mime-info tar:xz xorg
24 USE_CXXSTD=     c++11
25 USE_GNOME=      gtk30 cairo
26 USE_LDCONFIG=   yes
27 USE_WX=         3.0+
28 USE_XORG=       x11
29
30 GNU_CONFIGURE=  yes
31 CONFIGURE_ARGS= --with-wx-config=${WX_CONFIG} --disable-pch \
32                 --with-boost-system=boost_system
33 CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}"
34
35 PKG_CONFIG_LIBDIR=      ${LOCALBASE}/libdata/pkgconfig
36 INSTALL_TARGET= install-strip
37
38 WRKSRC=         ${WRKDIR}/${PORTNAME}-${PORTVERSION}
39
40 .include <bsd.port.pre.mk>
41
42 .if ${ARCH} != x86_64 && ${ARCH} != i386
43 CONFIGURE_ARGS+=        --with-contrib-plugins=all,-dragscroll
44 PLIST_SUB=      X86="@comment "
45 .else
46 CONFIGURE_ARGS+=        --with-contrib-plugins=all
47 PLIST_SUB=      X86=""
48 .endif
49
50 .include <bsd.port.post.mk>