aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2002-11-17 05:40:36 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2002-11-17 05:40:36 +0000
commit381d5a7b26986b2763cd9d0f368d72b8a6cfcc15 (patch)
treeaeaf7504969fe9e75d297604cf54f6c859fd4d25
parentfffc1613a01a6b9bfb80d0759639cc3496923935 (diff)
downloadports-381d5a7b26986b2763cd9d0f368d72b8a6cfcc15.tar.gz
ports-381d5a7b26986b2763cd9d0f368d72b8a6cfcc15.zip
Notes
-rw-r--r--www/plugger/Makefile24
-rw-r--r--www/plugger/pkg-comment2
-rw-r--r--www/plugger/pkg-plist2
3 files changed, 21 insertions, 7 deletions
diff --git a/www/plugger/Makefile b/www/plugger/Makefile
index ce1dfc54ab02..6815b05249cf 100644
--- a/www/plugger/Makefile
+++ b/www/plugger/Makefile
@@ -7,7 +7,7 @@
PORTNAME= plugger
PORTVERSION= 4.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www audio graphics
MASTER_SITES= http://fredrik.hubbe.net/plugger/ \
${MASTER_SITE_NETSCAPE}
@@ -16,8 +16,7 @@ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} unix-sdk-3.0b5.tar.Z
MAINTAINER= coop9211@uidaho.edu
-RUN_DEPENDS= ${X11BASE}/bin/mozilla:${PORTSDIR}/www/mozilla \
- ${X11BASE}/bin/xanim:${PORTSDIR}/graphics/xanim \
+RUN_DEPENDS= ${X11BASE}/bin/xanim:${PORTSDIR}/graphics/xanim \
${LOCALBASE}/bin/timidity:${PORTSDIR}/audio/timidity++ \
${LOCALBASE}/bin/mpg123:${PORTSDIR}/audio/mpg123 \
${LOCALBASE}/bin/wavplay:${PORTSDIR}/audio/wavplay \
@@ -27,7 +26,6 @@ RUN_DEPENDS= ${X11BASE}/bin/mozilla:${PORTSDIR}/www/mozilla \
${X11BASE}/bin/gqview:${PORTSDIR}/graphics/gqview \
${X11BASE}/bin/gv:${PORTSDIR}/print/gv \
${X11BASE}/bin/abiword:${PORTSDIR}/editors/AbiWord \
- ${X11BASE}/bin/gnumeric:${PORTSDIR}/math/gnumeric \
${LOCALBASE}/bin/acroread5:${PORTSDIR}/print/acroread5
USE_X_PREFIX= yes
@@ -47,6 +45,10 @@ WITH_MPLAYER = yes
WITH_MTV = yes
.endif
+.if exists(${X11BASE}/lib/libgnomeprintui-2.so.0)
+WITH_GNOME2 = yes
+.endif
+
.if defined(WITH_MPLAYER)
RUN_DEPENDS+= ${LOCALBASE}/bin/mplayer:${PORTSDIR}/graphics/mplayer
.endif
@@ -55,6 +57,12 @@ RUN_DEPENDS+= ${LOCALBASE}/bin/mplayer:${PORTSDIR}/graphics/mplayer
RUN_DEPENDS+= ${LOCALBASE}/bin/mtvp:${PORTSDIR}/graphics/mtv
.endif
+.if defined(WITH_GNOME2)
+RUN_DEPENDS+= ${X11BASE}/bin/gnumeric:${PORTSDIR}/math/gnumeric2
+.else
+RUN_DEPENDS+= ${X11BASE}/bin/gnumeric:${PORTSDIR}/math/gnumeric
+.endif
+
pre-extract:
.if !defined(WITH_MPLAYER)
@${ECHO_MSG} "Enable mplayer for AVI video by defining WITH_MPLAYER."
@@ -64,6 +72,11 @@ pre-extract:
@${ECHO_MSG} "Enable mtvp for MPEG video by defining WITH_MTV."
.endif
+.if !defined(WITH_GNOME2)
+ @${ECHO_MSG} "Enable Gnome/2 AbiWord and Gnumeric by defining"
+ @${ECHO_MSG} "WITH_GNOME2."
+.endif
+
post-patch:
@${MV} ${WRKSRC}/plugger.c ${WRKSRC}/plugger.c.orig
@${SED} \
@@ -75,8 +88,9 @@ post-patch:
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/plugger-${PORTVERSION} \
${PREFIX}/bin
+ @${MKDIR} ${PREFIX}/lib/browser_plugins
@${INSTALL_PROGRAM} ${WRKSRC}/plugger.so \
- ${PREFIX}/lib/mozilla/plugins/npplugger.so
+ ${PREFIX}/lib/browser_plugins/npplugger.so
@${INSTALL_MAN} ${WRKSRC}/plugger.7 ${MANPREFIX}/man/man7
@${INSTALL_DATA} ${WRKSRC}/pluggerrc ${PREFIX}/etc/pluggerrc.sample
@${INSTALL_DATA} -b ${WRKSRC}/pluggerrc ${PREFIX}/etc
diff --git a/www/plugger/pkg-comment b/www/plugger/pkg-comment
index 3d1fa0bf198e..e6c0736101f7 100644
--- a/www/plugger/pkg-comment
+++ b/www/plugger/pkg-comment
@@ -1 +1 @@
-A multimedia front-end plugin for Mozilla
+A multimedia front-end plugin for Mozilla or Opera
diff --git a/www/plugger/pkg-plist b/www/plugger/pkg-plist
index 761af879e791..eb6ef012ed0b 100644
--- a/www/plugger/pkg-plist
+++ b/www/plugger/pkg-plist
@@ -1,5 +1,5 @@
bin/plugger-4.0
-lib/mozilla/plugins/npplugger.so
+lib/browser_plugins/npplugger.so
@unexec if [ -f %D/etc/pluggerrc ]; then cmp -s %D/etc/pluggerrc.sample %D/etc/pluggerrc && rm -f %D/etc/pluggerrc || echo "If you are permanently removing this port, you should do a ``rm -f ${PKG_PREFIX}/etc/pluggerrc`` to remove configuration files left." | fmt ; fi
@unexec if [ -f %D/etc/pluggerrc.old ]; then echo "If you are permanently removing this port, you should do a ``rm -f ${PKG_PREFIX}/etc/pluggerrc.old`` to remove backup configuration files left." | fmt ; fi
etc/pluggerrc.sample