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 LICENSE= GPLv2
LIB_DEPENDS= djvulibre:${PORTSDIR}/graphics/djvulibre LIB_DEPENDS= libdjvulibre.so:${PORTSDIR}/graphics/djvulibre
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
USES= pkgconfig USES= pkgconfig webplugin:native libtool
USE_QT4= gui network rcc_build uic_build moc_build qmake_build USE_QT4= gui network rcc_build uic_build moc_build qmake_build
USE_XORG= sm ice xt USE_XORG= sm ice xt
QT_NONSTANDARD= yes QT_NONSTANDARD= yes
@ -30,16 +30,8 @@ MAKE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
WRKSRC= ${WRKDIR}/djview4-${PORTVERSION} WRKSRC= ${WRKDIR}/djview4-${PORTVERSION}
MAN1= djview4.1 nsdejavu.1 WEBPLUGIN_DIR= ${PREFIX}/lib/djview4/plugins
MLINKS= djview4.1 djview.1 WEBPLUGIN_FILES= nsdejavu.so
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"
post-patch: post-patch:
@${REINPLACE_CMD} -e 's,/netscape/,/djview4/,' \ @${REINPLACE_CMD} -e 's,/netscape/,/djview4/,' \
@ -47,13 +39,4 @@ post-patch:
@${REINPLACE_CMD} -e 's,@NSDEJAVU_LIBS@,@NSDEJAVU_LIBS@ -lXt -lXext,g' \ @${REINPLACE_CMD} -e 's,@NSDEJAVU_LIBS@,@NSDEJAVU_LIBS@ -lXt -lXext,g' \
${WRKSRC}/nsdejavu/Makefile.in ${WRKSRC}/nsdejavu/Makefile.in
post-install: .include <bsd.port.mk>
@${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>

View File

@ -1,5 +1,18 @@
bin/djview bin/djview
bin/djview4 bin/djview4
lib/djview4/plugins/nsdejavu.so 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/plugins
@dirrm lib/djview4 @dirrm lib/djview4