|
Lines 1-92
Link Here
|
| 1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
| 2 |
|
2 |
|
| 3 |
PORTNAME= wx |
3 |
PORTNAME= wx |
| 4 |
DISTVERSIONPREFIX= v |
4 |
DISTVERSIONPREFIX= v |
| 5 |
DISTVERSION= 3.1.4 |
5 |
DISTVERSION= 3.1.4 |
| 6 |
CATEGORIES= x11-toolkits |
6 |
CATEGORIES= x11-toolkits |
| 7 |
PKGNAMESUFFIX= 31-gtk3 |
7 |
PKGNAMESUFFIX= 31-gtk3 |
| 8 |
|
8 |
|
| 9 |
MAINTAINER= yuri@FreeBSD.org |
9 |
MAINTAINER= yuri@FreeBSD.org |
| 10 |
COMMENT= GUI toolkit (wxWidgets) with GTK+ bindings |
10 |
COMMENT= GUI toolkit (wxWidgets) with GTK+ bindings |
| 11 |
|
11 |
|
| 12 |
LICENSE= GPLv2+ |
12 |
LICENSE= GPLv2+ |
| 13 |
LICENSE_FILE= ${WRKSRC}/docs/gpl.txt |
13 |
LICENSE_FILE= ${WRKSRC}/docs/gpl.txt |
| 14 |
|
14 |
|
| 15 |
LIB_DEPENDS= libexpat.so:textproc/expat2 \ |
15 |
LIB_DEPENDS= libexpat.so:textproc/expat2 \ |
| 16 |
libfontconfig.so:x11-fonts/fontconfig \ |
16 |
libfontconfig.so:x11-fonts/fontconfig \ |
| 17 |
libfreetype.so:print/freetype2 \ |
17 |
libfreetype.so:print/freetype2 \ |
| 18 |
libjbig.so:graphics/jbigkit \ |
18 |
libjbig.so:graphics/jbigkit \ |
| 19 |
libnotify.so:devel/libnotify \ |
19 |
libnotify.so:devel/libnotify \ |
| 20 |
libpng.so:graphics/png \ |
20 |
libpng.so:graphics/png \ |
| 21 |
libsecret-1.so:security/libsecret \ |
21 |
libsecret-1.so:security/libsecret \ |
| 22 |
libsoup-2.4.so:devel/libsoup \ |
22 |
libsoup-2.4.so:devel/libsoup \ |
| 23 |
libtiff.so:graphics/tiff |
23 |
libtiff.so:graphics/tiff |
| 24 |
|
24 |
|
| 25 |
USES= compiler:c++11-lib gl gmake gnome iconv jpeg localbase \ |
25 |
USES= compiler:c++11-lib gl gmake gnome iconv jpeg localbase \ |
| 26 |
pkgconfig xorg |
26 |
pkgconfig xorg |
| 27 |
USE_GITHUB= yes |
27 |
USE_GITHUB= yes |
| 28 |
GH_ACCOUNT= wxWidgets |
28 |
GH_ACCOUNT= wxWidgets |
| 29 |
GH_PROJECT= wxWidgets |
29 |
GH_PROJECT= wxWidgets |
| 30 |
GH_TUPLE= wxWidgets:Catch:ee4acb6:wxWidgets_Catch/3rdparty/catch |
30 |
GH_TUPLE= wxWidgets:Catch:ee4acb6:wxWidgets_Catch/3rdparty/catch |
| 31 |
|
31 |
|
| 32 |
GNU_CONFIGURE= yes |
32 |
GNU_CONFIGURE= yes |
| 33 |
USE_XORG= x11 sm xxf86vm xtst |
33 |
USE_XORG= x11 sm xxf86vm xtst |
| 34 |
USE_GL= gl glu |
34 |
USE_GL= gl glu |
| 35 |
USE_GNOME= cairo gdkpixbuf2 gtk30 |
35 |
USE_GNOME= cairo gdkpixbuf2 gtk30 |
| 36 |
USE_LDCONFIG= yes |
36 |
USE_LDCONFIG= yes |
| 37 |
USE_CXXSTD= c++11 |
37 |
USE_CXXSTD= c++11 |
| 38 |
CONFIGURE_ARGS= --with-libpng=sys \ |
38 |
CONFIGURE_ARGS= --with-libpng=sys \ |
| 39 |
--with-libjpeg=sys \ |
39 |
--with-libjpeg=sys \ |
| 40 |
--with-libtiff=sys \ |
40 |
--with-libtiff=sys \ |
| 41 |
--with-zlib=sys \ |
41 |
--with-zlib=sys \ |
| 42 |
--with-expat=sys \ |
42 |
--with-expat=sys \ |
| 43 |
--with-opengl \ |
43 |
--with-opengl \ |
| 44 |
--with-gtk=3 \ |
44 |
--with-gtk=3 \ |
| 45 |
--without-gnomevfs \ |
45 |
--without-gnomevfs \ |
| 46 |
--disable-epollloop \ |
46 |
--disable-epollloop \ |
| 47 |
--disable-joystick \ |
47 |
--disable-joystick \ |
| 48 |
--enable-backtrace \ |
48 |
--enable-backtrace \ |
| 49 |
--enable-ipv6 \ |
49 |
--enable-ipv6 \ |
| 50 |
--enable-optimise \ |
50 |
--enable-optimise \ |
| 51 |
--enable-utf8 \ |
51 |
--enable-utf8 \ |
| 52 |
--enable-graphics_ctx \ |
52 |
--enable-graphics_ctx \ |
| 53 |
--enable-compat28 \ |
53 |
--enable-compat28 \ |
| 54 |
--enable-compat30 |
54 |
--enable-compat30 |
| 55 |
CONFIGURE_ENV= X11BASE="${LOCALBASE}" \ |
55 |
CONFIGURE_ENV= X11BASE="${LOCALBASE}" \ |
| 56 |
ac_cv_header_sys_inotify_h=no |
56 |
ac_cv_header_sys_inotify_h=no |
| 57 |
|
57 |
|
| 58 |
OPTIONS_DEFINE= GSTREAMER MSPACK NLS WEBKIT |
58 |
OPTIONS_DEFINE= GSTREAMER MSPACK NLS WEBKIT |
| 59 |
OPTIONS_DEFAULT= GSTREAMER MSPACK WEBKIT |
59 |
OPTIONS_DEFAULT= GSTREAMER MSPACK WEBKIT |
| 60 |
MSPACK_DESC= Microsoft archives support |
60 |
MSPACK_DESC= Microsoft archives support |
| 61 |
OPTIONS_SUB= yes |
61 |
OPTIONS_SUB= yes |
| 62 |
|
62 |
|
| 63 |
NLS_USES= gettext |
63 |
NLS_USES= gettext |
| 64 |
|
64 |
|
| 65 |
GSTREAMER_CONFIGURE_ENABLE= mediactrl |
65 |
GSTREAMER_CONFIGURE_ENABLE= mediactrl |
| 66 |
GSTREAMER_USE= GNOME=gconf2 GSTREAMER1=bad |
66 |
GSTREAMER_USE= GSTREAMER1=bad |
| 67 |
|
67 |
|
| 68 |
MSPACK_CONFIGURE_WITH= libmspack |
68 |
MSPACK_CONFIGURE_WITH= libmspack |
| 69 |
MSPACK_LIB_DEPENDS= libmspack.so:archivers/libmspack |
69 |
MSPACK_LIB_DEPENDS= libmspack.so:archivers/libmspack |
| 70 |
|
70 |
|
| 71 |
WEBKIT_CONFIGURE_ENABLE= webview |
71 |
WEBKIT_CONFIGURE_ENABLE= webview |
| 72 |
WEBKIT_LIB_DEPENDS= libwebkit2gtk-4.0.so:www/webkit2-gtk3 |
72 |
WEBKIT_LIB_DEPENDS= libwebkit2gtk-4.0.so:www/webkit2-gtk3 |
| 73 |
|
73 |
|
| 74 |
.include <bsd.port.pre.mk> |
74 |
.include <bsd.port.pre.mk> |
| 75 |
|
75 |
|
| 76 |
# TLS is broken on armv6/7, PR 229396 |
76 |
# TLS is broken on armv6/7, PR 229396 |
| 77 |
.if ${ARCH} == armv6 || ${ARCH} == armv7 |
77 |
.if ${ARCH} == armv6 || ${ARCH} == armv7 |
| 78 |
CONFIGURE_ARGS+=--disable-tls |
78 |
CONFIGURE_ARGS+=--disable-tls |
| 79 |
.endif |
79 |
.endif |
| 80 |
|
80 |
|
| 81 |
# PR 196703, 197031 |
81 |
# PR 196703, 197031 |
| 82 |
.if ${CHOSEN_COMPILER_TYPE} == gcc |
82 |
.if ${CHOSEN_COMPILER_TYPE} == gcc |
| 83 |
CONFIGURE_ARGS+=--disable-precomp-headers |
83 |
CONFIGURE_ARGS+=--disable-precomp-headers |
| 84 |
.endif |
84 |
.endif |
| 85 |
|
85 |
|
| 86 |
post-build-NLS-on: |
86 |
post-build-NLS-on: |
| 87 |
@${DO_MAKE_BUILD} allmo -C ${BUILD_WRKSRC}/locale |
87 |
@${DO_MAKE_BUILD} allmo -C ${BUILD_WRKSRC}/locale |
| 88 |
|
88 |
|
| 89 |
post-install-NLS-on: # stray file: https://trac.wxwidgets.org/ticket/18147 |
89 |
post-install-NLS-on: # stray file: https://trac.wxwidgets.org/ticket/18147 |
| 90 |
@${RM} ${STAGEDIR}${PREFIX}/share/locale/it/LC_MESSAGES/wxmsw.mo |
90 |
@${RM} ${STAGEDIR}${PREFIX}/share/locale/it/LC_MESSAGES/wxmsw.mo |
| 91 |
|
91 |
|
| 92 |
.include <bsd.port.post.mk> |
92 |
.include <bsd.port.post.mk> |