1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Support stage

USES=webplugin
This commit is contained in:
Baptiste Daroussin 2014-04-09 13:34:04 +00:00
parent e1c6385973
commit 473a8557c9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350700
2 changed files with 18 additions and 22 deletions

View File

@ -12,10 +12,10 @@ COMMENT= Standalone Djvu viewer and plugin based on Qt4 toolkit
LICENSE= GPLv2
LIB_DEPENDS= djvulibre:${PORTSDIR}/graphics/djvulibre
LIB_DEPENDS= libdjvulibre.so:${PORTSDIR}/graphics/djvulibre
GNU_CONFIGURE= yes
USES= pkgconfig
USES= pkgconfig webplugin:native libtool
USE_QT4= gui network rcc_build uic_build moc_build qmake_build
USE_XORG= sm ice xt
QT_NONSTANDARD= yes
@ -30,16 +30,8 @@ MAKE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
WRKSRC= ${WRKDIR}/djview4-${PORTVERSION}
MAN1= djview4.1 nsdejavu.1
MLINKS= djview4.1 djview.1
USE_WEBPLUGINS= gecko*
WEBPLUGINS_DIR= ${PREFIX}/lib/djview4/plugins
WEBPLUGINS_FILES= nsdejavu.so
NO_STAGE= yes
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/www/firefox/Makefile.webplugins"
WEBPLUGIN_DIR= ${PREFIX}/lib/djview4/plugins
WEBPLUGIN_FILES= nsdejavu.so
post-patch:
@${REINPLACE_CMD} -e 's,/netscape/,/djview4/,' \
@ -47,13 +39,4 @@ post-patch:
@${REINPLACE_CMD} -e 's,@NSDEJAVU_LIBS@,@NSDEJAVU_LIBS@ -lXt -lXext,g' \
${WRKSRC}/nsdejavu/Makefile.in
post-install:
@${FIND} -ds ${PREFIX}/share/djvu/djview4/ ! -type d | \
${SED} 's,${PREFIX}/,,' >> ${TMPPLIST}
@${ECHO_CMD} "@dirrm share/djvu/djview4/desktop" >> ${TMPPLIST}
@${ECHO_CMD} "@dirrm share/djvu/djview4" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec ${RMDIR} %D/share/djvu 2>/dev/null || true" \
>> ${TMPPLIST}
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,5 +1,18 @@
bin/djview
bin/djview4
lib/djview4/plugins/nsdejavu.so
man/man1/djview.1.gz
man/man1/djview4.1.gz
man/man1/nsdejavu.1.gz
share/djvu/djview4/desktop/djvulibre-djview4.desktop
share/djvu/djview4/desktop/hi-djview4.svgz
share/djvu/djview4/desktop/hi32-djview4.png
share/djvu/djview4/desktop/hi64-djview4.png
share/djvu/djview4/desktop/prebuilt-hi32-djview4.png
share/djvu/djview4/desktop/prebuilt-hi64-djview4.png
share/djvu/djview4/desktop/register-djview-menu
@dirrm share/djvu/djview4/desktop
@dirrm share/djvu/djview4
@dirrm share/djvu
@dirrm lib/djview4/plugins
@dirrm lib/djview4