aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/wxgtk28
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2010-08-02 19:52:04 +0800
committerfjoe <fjoe@FreeBSD.org>2010-08-02 19:52:04 +0800
commitc1458cd9fea850576738a3c7f905dadb8040de90 (patch)
treea8cd7b9957da8dc54e0cf31bb36178bc0cbd0dd5 /x11-toolkits/wxgtk28
parent8ff487b14dd8986fd680a57f85bb04b2a88aa810 (diff)
downloadfreebsd-ports-gnome-c1458cd9fea850576738a3c7f905dadb8040de90.tar.gz
freebsd-ports-gnome-c1458cd9fea850576738a3c7f905dadb8040de90.tar.zst
freebsd-ports-gnome-c1458cd9fea850576738a3c7f905dadb8040de90.zip
Move gstreamer and mspack to OPTIONS.
PR: 146551 Submitted by: Anonymous <swell.k@gmail.com>
Diffstat (limited to 'x11-toolkits/wxgtk28')
-rw-r--r--x11-toolkits/wxgtk28/Makefile30
-rw-r--r--x11-toolkits/wxgtk28/pkg-plist6
2 files changed, 28 insertions, 8 deletions
diff --git a/x11-toolkits/wxgtk28/Makefile b/x11-toolkits/wxgtk28/Makefile
index 0e404d435385..a7509d695eda 100644
--- a/x11-toolkits/wxgtk28/Makefile
+++ b/x11-toolkits/wxgtk28/Makefile
@@ -19,16 +19,14 @@ COMMENT?= The wxWidgets GUI toolkit with GTK+ bindings
LIB_DEPENDS+= png.6:${PORTSDIR}/graphics/png\
jpeg.11:${PORTSDIR}/graphics/jpeg\
tiff.4:${PORTSDIR}/graphics/tiff\
- expat.6:${PORTSDIR}/textproc/expat2\
- mspack.1:${PORTSDIR}/archivers/libmspack
+ expat.6:${PORTSDIR}/textproc/expat2
USE_BZIP2= yes
USE_XORG= x11 sm xxf86vm xinerama
USE_GL= glu
USE_GMAKE= yes
USE_ICONV= yes
-USE_GNOME= gtk20 gconf2
-USE_GSTREAMER= yes
+USE_GNOME= gtk20
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libpng=sys\
--with-libjpeg=sys\
@@ -50,6 +48,28 @@ PLIST= ${.CURDIR}/pkg-plist
WXGTK_FLAVOR?= gtk2
+OPTIONS= GSTREAMER "media support" on\
+ MSPACK "MS archives support" on
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_GSTREAMER)
+CONFIGURE_ARGS+=--enable-mediactrl
+USE_GNOME+= gconf2
+USE_GSTREAMER= yes
+PLIST_SUB+= GSTREAMER=""
+.else
+CONFIGURE_ARGS+=--disable-mediactrl
+PLIST_SUB+= GSTREAMER="@comment "
+.endif
+
+.if defined(WITH_MSPACK)
+CONFIGURE_ARGS+=--with-libmspack
+LIB_DEPENDS+= mspack.1:${PORTSDIR}/archivers/libmspack
+.else
+CONFIGURE_ARGS+=--without-libmspack
+.endif
+
.if ${WXGTK_FLAVOR} != "gtk2-common"
RUN_DEPENDS= ${LOCALBASE}/include/wx-2.8/wx/wx.h:${PORTSDIR}/x11-toolkits/wxgtk28-common
.endif
@@ -92,4 +112,4 @@ post-patch:
-e 's|png_check_sig|png_sig_cmp|g' \
${WRKSRC}/configure
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/x11-toolkits/wxgtk28/pkg-plist b/x11-toolkits/wxgtk28/pkg-plist
index 623210b182ef..2da4031d912d 100644
--- a/x11-toolkits/wxgtk28/pkg-plist
+++ b/x11-toolkits/wxgtk28/pkg-plist
@@ -24,9 +24,9 @@ lib/libwx_gtk2_gl-2.8.so.0.6.0
lib/libwx_gtk2_html-2.8.so
lib/libwx_gtk2_html-2.8.so.0
lib/libwx_gtk2_html-2.8.so.0.6.0
-lib/libwx_gtk2_media-2.8.so
-lib/libwx_gtk2_media-2.8.so.0
-lib/libwx_gtk2_media-2.8.so.0.6.0
+%%GSTREAMER%%lib/libwx_gtk2_media-2.8.so
+%%GSTREAMER%%lib/libwx_gtk2_media-2.8.so.0
+%%GSTREAMER%%lib/libwx_gtk2_media-2.8.so.0.6.0
lib/libwx_gtk2_qa-2.8.so
lib/libwx_gtk2_qa-2.8.so.0
lib/libwx_gtk2_qa-2.8.so.0.6.0