diff options
author | marcus <marcus@FreeBSD.org> | 2002-11-17 13:40:36 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2002-11-17 13:40:36 +0800 |
commit | 111a7029aa3434a536cd82fd639d59cbdf6662cf (patch) | |
tree | 53538d6f4b3d59ee256aab5c2eac1765da7a86f6 /www/plugger | |
parent | 5ceabf65687347a5a0ba7e5f3bad2f66279d10cc (diff) | |
download | freebsd-ports-graphics-111a7029aa3434a536cd82fd639d59cbdf6662cf.tar.gz freebsd-ports-graphics-111a7029aa3434a536cd82fd639d59cbdf6662cf.tar.zst freebsd-ports-graphics-111a7029aa3434a536cd82fd639d59cbdf6662cf.zip |
* Make this port GNOME 2 aware
* Install plugin in new browser_plugins directory
PR: 45362
Submitted by: maintainer
Diffstat (limited to 'www/plugger')
-rw-r--r-- | www/plugger/Makefile | 24 | ||||
-rw-r--r-- | www/plugger/pkg-comment | 2 | ||||
-rw-r--r-- | www/plugger/pkg-plist | 2 |
3 files changed, 21 insertions, 7 deletions
diff --git a/www/plugger/Makefile b/www/plugger/Makefile index ce1dfc54ab0..6815b05249c 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 3d1fa0bf198..e6c0736101f 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 761af879e79..eb6ef012ed0 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 |