summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/vte3/Makefile
blob: 067f5b8ff4b75e9312def5b51f1141d65fff7dfb (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
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$

PORTNAME=	vte
PORTVERSION=	0.42.4
CATEGORIES=	x11-toolkits gnome
MASTER_SITES=	GNOME
PKGNAMESUFFIX=	3
DIST_SUBDIR=	gnome3

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Terminal widget with improved accessibility and I18N support

BUILD_DEPENDS+= vapigen:${PORTSDIR}/lang/vala \
		bash:${PORTSDIR}/shells/bash
LIB_DEPENDS=	libgnutls.so:${PORTSDIR}/security/gnutls

PORTSCOUT=	limitw:1,even

USES=		bison compiler:c++0x gettext gmake gnome libtool pathfix \
		pkgconfig tar:xz
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
USE_GNOME?=	gtk30 intltool referencehack introspection:build
CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib
CONFIGURE_ARGS=	--enable-introspection \
		--disable-static \
		--disable-Bsymbolic
INSTALL_TARGET=	install-strip

PLIST_SUB=	VERSION=2.91

.include <bsd.port.options.mk>

.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000 || ${OPSYS} == DragonFly
LIBS+=	-lz
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|-Wno-unused-but-set-variable||g' \
		${WRKSRC}/src/Makefile.in
# zlib.pc only is available on 10.1-R and newer.
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000 || ${OPSYS} == DragonFly
	@${REINPLACE_CMD} -e 's|gio-unix-2.0 zlib|gio-unix-2.0|g' \
		${WRKSRC}/configure
.endif
# borrowed osversion from bsd.ssp.mk
.if ${OSVERSION} < 1000036 && ${ARCH} == i386
	@${REINPLACE_CMD} -e 's|-fstack-protector-strong||g; \
		s|-fstack-protector||g' \
		${WRKSRC}/configure
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud