aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-04-09 22:12:00 +0800
committerbapt <bapt@FreeBSD.org>2014-04-09 22:12:00 +0800
commitdf89b3476dfa351d4d2085af76ab83aa19914851 (patch)
tree8e860e8a0ee5ae4bdec91c6ed5e4a31e9733e89d
parent323299ac90e08e1831cdcd5b25058315192e8288 (diff)
downloadfreebsd-ports-gnome-df89b3476dfa351d4d2085af76ab83aa19914851.tar.gz
freebsd-ports-gnome-df89b3476dfa351d4d2085af76ab83aa19914851.tar.zst
freebsd-ports-gnome-df89b3476dfa351d4d2085af76ab83aa19914851.zip
Support stage
USES=webplugin
-rw-r--r--www/plugger/Makefile46
-rw-r--r--www/plugger/pkg-plist4
2 files changed, 17 insertions, 33 deletions
diff --git a/www/plugger/Makefile b/www/plugger/Makefile
index 2008607f5cc3..aff9309bfa48 100644
--- a/www/plugger/Makefile
+++ b/www/plugger/Makefile
@@ -10,17 +10,13 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Multimedia front-end plugin for Mozilla or Opera
USE_XORG= xext xt sm ice xext x11
+USES= webplugin:native
GNU_CONFIGURE= yes
-MAN7= plugger.7
PKGDEINSTALL= ${PKGINSTALL}
-USE_WEBPLUGINS= native
-WEBPLUGINS_FILES=npplugger.so
+WEBPLUGIN_FILES=npplugger.so
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/www/firefox/Makefile.webplugins"
post-patch:
@${REINPLACE_CMD} -e \
@@ -28,27 +24,19 @@ post-patch:
s|+useFrontEndProgram||g' \
${WRKSRC}/pluggerrc
-pre-install:
- @${SETENV} PKG_PREFIX=${PREFIX} ${SH} \
- ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
-
do-install:
- @${INSTALL_PROGRAM} ${WRKSRC}/plugger-${PORTVERSION} \
- ${PREFIX}/bin
- @${INSTALL_PROGRAM} ${WRKSRC}/plugger-controller \
- ${PREFIX}/bin
- @${INSTALL_SCRIPT} ${WRKSRC}/plugger-oohelper \
- ${PREFIX}/bin
- @${MKDIR} ${WEBPLUGINS_DIR}
- @${INSTALL_PROGRAM} ${WRKSRC}/plugger.so \
- ${WEBPLUGINS_DIR}/npplugger.so
- @if [ -f ${PREFIX}/etc/pluggerrc-${PORTVERSION} ]; then \
- ${MV} ${PREFIX}/etc/pluggerrc-${PORTVERSION} \
- ${PREFIX}/etc/pluggerrc-${PORTVERSION}.old; \
- fi
- @${INSTALL_DATA} ${WRKSRC}/pluggerrc \
- ${PREFIX}/etc/pluggerrc-${PORTVERSION}.sample
- @${INSTALL_MAN} ${WRKSRC}/plugger.7 ${MANPREFIX}/man/man7
+ ${INSTALL_PROGRAM} ${WRKSRC}/plugger-${PORTVERSION} \
+ ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/plugger-controller \
+ ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/plugger-oohelper \
+ ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${WEBPLUGIN_DIR}
+ ${INSTALL_LIB} ${WRKSRC}/plugger.so \
+ ${STAGEDIR}${WEBPLUGIN_DIR}/npplugger.so
+ ${INSTALL_DATA} ${WRKSRC}/pluggerrc \
+ ${STAGEDIR}${PREFIX}/etc/pluggerrc-${PORTVERSION}.sample
+ ${INSTALL_MAN} ${WRKSRC}/plugger.7 ${STAGEDIR}${MANPREFIX}/man/man7
local-install:
@${MKDIR} ${HOME}/.plugger
@@ -75,8 +63,4 @@ local-opera-install: local-install
@${INSTALL_PROGRAM} ${WRKSRC}/plugger.so \
${HOME}/.opera/plugins/npplugger.so
-post-install:
- @${SETENV} PKG_PREFIX=${PREFIX} ${SH} \
- ${PKGINSTALL} ${PKGNAME} POST-INSTALL
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/plugger/pkg-plist b/www/plugger/pkg-plist
index 41bc7d322710..b81276f5561f 100644
--- a/www/plugger/pkg-plist
+++ b/www/plugger/pkg-plist
@@ -3,5 +3,5 @@ bin/plugger-controller
bin/plugger-oohelper
@unexec if cmp %D/etc/pluggerrc-5.1.5.sample %D/etc/pluggerrc-5.1.5 2>/dev/null; then rm -f %D/etc/pluggerrc-5.1.5; fi
etc/pluggerrc-5.1.5.sample
-%%WEBPLUGINS_DIR%%/npplugger.so
-@dirrmtry %%WEBPLUGINS_DIR%%
+man/man7/plugger.7.gz
+%%WEBPLUGIN_DIR%%/npplugger.so