diff options
author | Jeremy Messenger <mezz@FreeBSD.org> | 2009-01-10 02:45:46 +0000 |
---|---|---|
committer | Jeremy Messenger <mezz@FreeBSD.org> | 2009-01-10 02:45:46 +0000 |
commit | 15b6544926b07a98710eeb765baf03e3fc9a195c (patch) | |
tree | 35103cf986d2ed2295c97768e62afcc47dfed877 /graphics/djview4 | |
parent | 23fcf54562404bb41380488c8318ac0e3ce15efc (diff) | |
download | ports-15b6544926b07a98710eeb765baf03e3fc9a195c.tar.gz ports-15b6544926b07a98710eeb765baf03e3fc9a195c.zip |
Notes
Diffstat (limited to 'graphics/djview4')
-rw-r--r-- | graphics/djview4/Makefile | 18 | ||||
-rw-r--r-- | graphics/djview4/pkg-plist | 4 |
2 files changed, 10 insertions, 12 deletions
diff --git a/graphics/djview4/Makefile b/graphics/djview4/Makefile index 1a741fa9d980..840a13614f9f 100644 --- a/graphics/djview4/Makefile +++ b/graphics/djview4/Makefile @@ -7,7 +7,7 @@ PORTNAME= djview PORTVERSION= 4.4 -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= SF/djvu DISTNAME= ${PORTNAME}4-${PORTVERSION} @@ -39,18 +39,20 @@ QMAKESPEC?= freebsd-g++ MAN1= djview4.1 nsdejavu.1 MLINKS= djview4.1 djview.1 +USE_WEBPLUGINS= gecko* +WEBPLUGINS_DIR= ${PREFIX}/lib/djview4/plugins +WEBPLUGINS_FILES= nsdejavu.so + +.include <bsd.port.pre.mk> +.include "${PORTSDIR}/www/firefox/Makefile.webplugins" + post-patch: @${REINPLACE_CMD} -e 's,/netscape/,/djview4/,' \ ${WRKSRC}/nsdejavu/Makefile.in ${WRKSRC}/nsdejavu/nsdejavu.1.in @${REINPLACE_CMD} -e 's,@NSDEJAVU_LIBS@,@NSDEJAVU_LIBS@ -lXt -lXext,g' \ - ${WRKSRC}/nsdejavu/Makefile.in ${WRKSRC}/nsdejavu/nsdejavu.1.in - + ${WRKSRC}/nsdejavu/Makefile.in post-install: - @${MKDIR} ${LOCALBASE}/lib/browser_plugins - ${LN} -sf ${PREFIX}/lib/djview4/plugins/nsdejavu.so \ - ${LOCALBASE}/lib/browser_plugins/nsdejavu.so - @${FIND} -ds ${PREFIX}/share/djvu/djview4/ ! -type d | \ ${SED} 's,${PREFIX}/,,' >> ${TMPPLIST} @@ -59,4 +61,4 @@ post-install: @${ECHO_CMD} "@unexec ${RMDIR} %D/share/djvu 2>/dev/null || true" \ >> ${TMPPLIST} -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/graphics/djview4/pkg-plist b/graphics/djview4/pkg-plist index 72167c10a222..4d796c1616a1 100644 --- a/graphics/djview4/pkg-plist +++ b/graphics/djview4/pkg-plist @@ -1,9 +1,5 @@ bin/djview bin/djview4 lib/djview4/plugins/nsdejavu.so -@exec mkdir -p %%LOCALBASE%%/lib/browser_plugins -@exec ln -sf %D/lib/djview4/plugins/nsdejavu.so %%LOCALBASE%%/lib/browser_plugins/nsdejavu.so -@unexec rm -f %%LOCALBASE%%/lib/browser_plugins/nsdejavu.so -@unexec rmdir %%LOCALBASE%%/lib/browser_plugins > /dev/null 2>&1 || true @dirrm lib/djview4/plugins @dirrm lib/djview4 |