aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2006-04-27 14:41:12 +0800
committerale <ale@FreeBSD.org>2006-04-27 14:41:12 +0800
commit55c40ff62590a63b66d2da8ed400782bb28b73ff (patch)
tree6e08af6fac0e5ef177e3df8e1d0e776e343007d2 /graphics
parent8bf89d803f4ebe3b55ccf8ab5917009cab0037bb (diff)
downloadfreebsd-ports-gnome-55c40ff62590a63b66d2da8ed400782bb28b73ff.tar.gz
freebsd-ports-gnome-55c40ff62590a63b66d2da8ed400782bb28b73ff.tar.zst
freebsd-ports-gnome-55c40ff62590a63b66d2da8ed400782bb28b73ff.zip
Add an option to enable the firefox plugin (disabled by default since it's quite unstable).
PR: ports/96209 Submitted by: luca <sanluca78@gmail.com> Patch by: maintainer
Diffstat (limited to 'graphics')
-rw-r--r--graphics/gnash-devel/Makefile26
-rw-r--r--graphics/gnash-devel/pkg-plist4
-rw-r--r--graphics/gnash/Makefile26
-rw-r--r--graphics/gnash/pkg-plist4
4 files changed, 46 insertions, 14 deletions
diff --git a/graphics/gnash-devel/Makefile b/graphics/gnash-devel/Makefile
index 3d86423e952b..1ddf6125b196 100644
--- a/graphics/gnash-devel/Makefile
+++ b/graphics/gnash-devel/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gnash
PORTVERSION= 0.7
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= ale
@@ -18,13 +18,12 @@ COMMENT= GNU Flash movie player
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
jpeg.9:${PORTSDIR}/graphics/jpeg \
- ogg.5:${PORTSDIR}/audio/libogg \
- gtkglext-x11-1.0.2:${PORTSDIR}/x11-toolkits/gtkglext
+ ogg.5:${PORTSDIR}/audio/libogg
USE_BZIP2= yes
USE_GL= yes
USE_GMAKE= yes
-USE_GNOME= gnomehier gtk20 glib20 atk pango pkgconfig libxml2
+USE_GNOME= gnomehier glib20 pkgconfig libxml2
USE_SDL= sdl mixer
USE_X_PREFIX= yes
USE_GCC= 3.4+
@@ -41,9 +40,26 @@ CONFIGURE_ARGS= --libdir="${PREFIX}/lib/gnash" \
WRKSRC= ${WRKDIR}/${PORTNAME}-20060422
+OPTIONS= PLUGIN "Enable firefox plugin" off
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITH_PLUGIN)
+CONFIGURE_ARGS+= --disable-plugin
+PLIST_SUB+= PLUGIN="@comment "
+.else
+USE_GNOME+= atk pango gtk20
+LIB_DEPENDS+= gtkglext-x11-1.0.2:${PORTSDIR}/x11-toolkits/gtkglext
+PLIST_SUB+= PLUGIN=""
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/macros/*.m4
@${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/macros/*.m4
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/macros/*.m4
+ @${REINPLACE_CMD} -e 's|^AM_LDFLAGS = \\|AM_LDFLAGS = $$(PTHREAD_LIBS) \\|' ${WRKSRC}/utilities/Makefile.am
+.if !defined(WITH_PLUGIN)
+ @${REINPLACE_CMD} -e '/STD_DIRS/ s|plugin||' ${WRKSRC}/Makefile.am
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/graphics/gnash-devel/pkg-plist b/graphics/gnash-devel/pkg-plist
index c39a355e0291..97fb936a66b2 100644
--- a/graphics/gnash-devel/pkg-plist
+++ b/graphics/gnash-devel/pkg-plist
@@ -1,7 +1,7 @@
bin/gnash
bin/gparser
bin/gprocessor
-lib/browser_plugins/libgnashplugin.so
+%%PLUGIN%%lib/browser_plugins/libgnashplugin.so
lib/gnash/libgnashasobjs.a
lib/gnash/libgnashasobjs.la
lib/gnash/libgnashasobjs.so
@@ -23,4 +23,4 @@ lib/gnash/libgnashserver.la
lib/gnash/libgnashserver.so
lib/gnash/libgnashserver.so.0
@dirrm lib/gnash
-@dirrmtry lib/browser_plugins
+%%PLUGIN%%@dirrmtry lib/browser_plugins
diff --git a/graphics/gnash/Makefile b/graphics/gnash/Makefile
index 3d86423e952b..1ddf6125b196 100644
--- a/graphics/gnash/Makefile
+++ b/graphics/gnash/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gnash
PORTVERSION= 0.7
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= ale
@@ -18,13 +18,12 @@ COMMENT= GNU Flash movie player
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
jpeg.9:${PORTSDIR}/graphics/jpeg \
- ogg.5:${PORTSDIR}/audio/libogg \
- gtkglext-x11-1.0.2:${PORTSDIR}/x11-toolkits/gtkglext
+ ogg.5:${PORTSDIR}/audio/libogg
USE_BZIP2= yes
USE_GL= yes
USE_GMAKE= yes
-USE_GNOME= gnomehier gtk20 glib20 atk pango pkgconfig libxml2
+USE_GNOME= gnomehier glib20 pkgconfig libxml2
USE_SDL= sdl mixer
USE_X_PREFIX= yes
USE_GCC= 3.4+
@@ -41,9 +40,26 @@ CONFIGURE_ARGS= --libdir="${PREFIX}/lib/gnash" \
WRKSRC= ${WRKDIR}/${PORTNAME}-20060422
+OPTIONS= PLUGIN "Enable firefox plugin" off
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITH_PLUGIN)
+CONFIGURE_ARGS+= --disable-plugin
+PLIST_SUB+= PLUGIN="@comment "
+.else
+USE_GNOME+= atk pango gtk20
+LIB_DEPENDS+= gtkglext-x11-1.0.2:${PORTSDIR}/x11-toolkits/gtkglext
+PLIST_SUB+= PLUGIN=""
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/macros/*.m4
@${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/macros/*.m4
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/macros/*.m4
+ @${REINPLACE_CMD} -e 's|^AM_LDFLAGS = \\|AM_LDFLAGS = $$(PTHREAD_LIBS) \\|' ${WRKSRC}/utilities/Makefile.am
+.if !defined(WITH_PLUGIN)
+ @${REINPLACE_CMD} -e '/STD_DIRS/ s|plugin||' ${WRKSRC}/Makefile.am
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/graphics/gnash/pkg-plist b/graphics/gnash/pkg-plist
index c39a355e0291..97fb936a66b2 100644
--- a/graphics/gnash/pkg-plist
+++ b/graphics/gnash/pkg-plist
@@ -1,7 +1,7 @@
bin/gnash
bin/gparser
bin/gprocessor
-lib/browser_plugins/libgnashplugin.so
+%%PLUGIN%%lib/browser_plugins/libgnashplugin.so
lib/gnash/libgnashasobjs.a
lib/gnash/libgnashasobjs.la
lib/gnash/libgnashasobjs.so
@@ -23,4 +23,4 @@ lib/gnash/libgnashserver.la
lib/gnash/libgnashserver.so
lib/gnash/libgnashserver.so.0
@dirrm lib/gnash
-@dirrmtry lib/browser_plugins
+%%PLUGIN%%@dirrmtry lib/browser_plugins