Tweak x11-toolkits/p5-Wx version 0.99.23_2
[dports.git] / x11-toolkits / vte3 / Makefile
1 # Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
2 # $FreeBSD$
3 #   $MCom: ports/trunk/x11-toolkits/vte3/Makefile 19957 2014-10-15 11:07:14Z gusi $
4
5 PORTNAME?=      vte
6 PORTVERSION=    0.38.3
7 PORTREVISION?=  0
8 CATEGORIES=     x11-toolkits gnome
9 MASTER_SITES=   GNOME
10 MASTER_SITE_SUBDIR=     sources/${PORTNAME:S/gnome-pty-helper/vte/}/${PORTVERSION:R}
11 DISTNAME=       vte-${PORTVERSION}
12 PKGNAMESUFFIX?= 3
13 DIST_SUBDIR=    gnome3
14
15 MAINTAINER=     gnome@FreeBSD.org
16 COMMENT?=       Terminal widget with improved accessibility and I18N support
17
18 USES=           tar:xz
19
20 .if !defined(REFERENCE_PORT)
21 VTE3_SLAVE?=    no
22
23 .if ${VTE3_SLAVE} != yes
24 BUILD_DEPENDS+= vapigen:${PORTSDIR}/lang/vala \
25                 bash:${PORTSDIR}/shells/bash
26 RUN_DEPENDS+=   ${LOCALBASE}/libexec/gnome-pty-helper:${PORTSDIR}/x11-toolkits/gnome-pty-helper
27 .endif
28
29 USES+=          bison gettext gmake libtool pathfix pkgconfig
30 USE_LDCONFIG=   yes
31 GNU_CONFIGURE=  yes
32 USE_GNOME?=     gnomeprefix gtk30 referencehack introspection:build
33 CPPFLAGS+=      -I${LOCALBASE}/include
34 LIBS+=          -L${LOCALBASE}/lib
35 CONFIGURE_ARGS?=--disable-python \
36                 --with-gtk=3.0 \
37                 --enable-introspection \
38                 --disable-static \
39                 --disable-Bsymbolic \
40                 --disable-gnome-pty-helper \
41                 --disable-freetypetest
42 INSTALL_TARGET= install-strip
43
44 PLIST_SUB=      VERSION=2.91
45
46 .include <bsd.port.options.mk>
47
48 .if ${OSVERSION} < 900007
49 EXTRA_PATCHES+=         ${FILESDIR}/extra-patch-gnome-pty-helper_gnome-utmp.c
50 .endif
51
52 post-patch:
53 .if ${VTE3_SLAVE} != yes
54         @${REINPLACE_CMD} -e 's|-Wno-unused-but-set-variable||g' \
55                 ${WRKSRC}/src/Makefile.in
56 .endif
57 # borrowed osversion from bsd.ssp.mk
58 .if ${OSVERSION} < 1000036 && ${ARCH} == i386
59         @${REINPLACE_CMD} -e 's|-fstack-protector-strong||g; \
60                 s|-fstack-protector||g' \
61                 ${WRKSRC}/configure
62 .endif
63
64 .include <bsd.port.mk>
65
66 .endif