Tweak x11-toolkits/p5-Wx version 0.99.23_2
[dports.git] / x11-toolkits / wxgtk30 / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       wx
4 PORTVERSION=    3.0.2
5 PORTREVISION?=  3
6 CATEGORIES=     x11-toolkits
7 MASTER_SITES=   SF/wxwindows/${PORTVERSION}
8 PKGNAMESUFFIX=  30-gtk2
9 DISTNAME=       wxWidgets-${PORTVERSION}
10
11 MAINTAINER=     portmaster@bsdforge.com
12 COMMENT=        The wxWidgets GUI toolkit with GTK+ bindings
13
14 LIB_DEPENDS+=   libpng.so:${PORTSDIR}/graphics/png\
15                 libjpeg.so:${PORTSDIR}/graphics/jpeg\
16                 libtiff.so:${PORTSDIR}/graphics/tiff\
17                 libexpat.so:${PORTSDIR}/textproc/expat2\
18                 libwebkitgtk-1.0.so:${PORTSDIR}/www/webkit-gtk2
19
20 USES+=          compiler:c++11-lib iconv gmake pkgconfig tar:bzip2
21 USE_XORG=       x11 sm xxf86vm xinerama
22 USE_GL=         glu
23 USE_GNOME=      gtk20
24 USE_LDCONFIG=   yes
25 GNU_CONFIGURE=  yes
26 CONFIGURE_ARGS= --with-libpng=sys\
27                 --with-libjpeg=sys\
28                 --with-libtiff=sys\
29                 --with-zlib=sys\
30                 --with-expat=sys\
31                 --with-opengl\
32                 --with-libmspack\
33                 --with-gtk\
34                 --disable-backtrace\
35                 --enable-webview\
36                 --enable-graphics_ctx \
37                 --enable-compat26 \
38                 --enable-compat28
39 CONFIGURE_ENV=  X11BASE="${LOCALBASE}" \
40                 ac_cv_header_sys_inotify_h=no
41 CPPFLAGS+=      -I${LOCALBASE}/include
42 CXXFLAGS+=      -std=c++11
43 LIBS+=          -L${LOCALBASE}/lib
44
45 OPTIONS_DEFINE= GSTREAMER MSPACK NLS
46 OPTIONS_DEFAULT=GSTREAMER MSPACK
47 MSPACK_DESC=    MS archives support
48 OPTIONS_SUB=    yes
49
50 NLS_USES=       gettext
51 GSTREAMER_ENABLE=       mediactrl
52 GSTREAMER_USE=  GNOME=gconf2 GSTREAMER=yes
53 MSPACK_CONFIGURE_WITH=  libmspack
54 MSPACK_LIB_DEPENDS=     libmspack.so:${PORTSDIR}/archivers/libmspack
55
56 .include <bsd.port.pre.mk>
57
58 # PR 196703, 197031
59 .if ${COMPILER_TYPE} == "gcc"
60 CONFIGURE_ARGS+=--disable-precomp-headers
61 .endif
62
63 .include <bsd.port.post.mk>