summaryrefslogtreecommitdiff
path: root/devel/codeblocks/Makefile
blob: d97bf9b2a4997eafa542c48ada840984e3f94665 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
PORTNAME=	codeblocks
PORTVERSION=	20.03
PORTREVISION=	18
CATEGORIES=	devel
MASTER_SITES=	SF/${PORTNAME}/Sources/${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Open source, cross-platform, free C/C++ IDE
WWW=		https://www.codeblocks.org/

LICENSE=	GPLv3 LGPL3
LICENSE_COMB=	multi

BUILD_DEPENDS=	zip:archivers/zip
LIB_DEPENDS=	libboost_thread.so:devel/boost-libs \
		libfam.so.0:devel/gamin \
		libfontconfig.so:x11-fonts/fontconfig \
		libfreetype.so:print/freetype2 \
		libhunspell-1.7.so:textproc/hunspell \
		libtinyxml.so:textproc/tinyxml

USES=		autoreconf compiler:c++11-lang desktop-file-utils \
		gettext-runtime gnome libtool localbase \
		pathfix pkgconfig shared-mime-info tar:xz xorg
USE_CXXSTD=	c++11
USE_GNOME=	gtk30 cairo
USE_LDCONFIG=	yes
USE_WX=		3.0+
USE_XORG=	x11

GNU_CONFIGURE=	yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
CONFIGURE_ARGS=	--with-wx-config=${WX_CONFIG} --disable-pch \
		--with-boost-system=boost_system
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}"

PKG_CONFIG_LIBDIR=	${LOCALBASE}/libdata/pkgconfig
INSTALL_TARGET=	install-strip

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

.include <bsd.port.pre.mk>

.if ${ARCH} != amd64 && ${ARCH} != i386
CONFIGURE_ARGS+=	--with-contrib-plugins=all,-dragscroll
PLIST_SUB=	X86="@comment "
.else
CONFIGURE_ARGS+=	--with-contrib-plugins=all
PLIST_SUB=	X86=""
.endif

post-patch:
	@${REINPLACE_CMD} -e '/boost_system/d'  -e '/AX_BOOST_SYSTEM/d' \
		${WRKSRC}/configure.ac

.include <bsd.port.post.mk>