diff options
author | nivit <nivit@FreeBSD.org> | 2014-04-01 00:30:11 +0800 |
---|---|---|
committer | nivit <nivit@FreeBSD.org> | 2014-04-01 00:30:11 +0800 |
commit | f4d908364128ea350cfe94538abccc31dfa2e1a2 (patch) | |
tree | a9bac5db0ffccd0090c8bb4cddbae41ac1747bec /print | |
parent | 92fd161219c1c3ae8b70b8b8307405acd8d186c4 (diff) | |
download | freebsd-ports-gnome-f4d908364128ea350cfe94538abccc31dfa2e1a2.tar.gz freebsd-ports-gnome-f4d908364128ea350cfe94538abccc31dfa2e1a2.tar.zst freebsd-ports-gnome-f4d908364128ea350cfe94538abccc31dfa2e1a2.zip |
- Convert to USES, that handles tar archives
- Add support for stage dir [1]
- Enable OPTIONS_SUB (for %%NLS%%)
PR: ports/187886 [1]
Submitted by: Johannes Jost Meixner <xmj@chaot.net>
Diffstat (limited to 'print')
-rw-r--r-- | print/foxitreader/Makefile | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/print/foxitreader/Makefile b/print/foxitreader/Makefile index d308d589ad97..b7708026cf67 100644 --- a/print/foxitreader/Makefile +++ b/print/foxitreader/Makefile @@ -20,43 +20,32 @@ LICENSE_TEXT= http://www.foxitsoftware.com/pdf/desklinux/eula.htm NO_BUILD= yes -PLIST_SUB= NLS="${NLS}" +OPTIONS_DEFINE= DOCS NLS +OPTIONS_SUB= yes -USE_BZIP2= yes -USES= gettext +USES= gettext tar:bzip2 USE_LINUX= yes USE_LINUX_APPS= cups-libs gtk2 WRKSRC= ${WRKDIR}/${PORTVERSION:R}-release -NO_STAGE= yes - -OPTIONS_DEFINE= DOCS NLS - .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MDOCS} -DISTFILES+=FoxitReader${PORTVERSION:R}ForLinux_Manual.pdf:manual -.endif -.if ${PORT_OPTIONS:MNLS} -NLS= "" -.else -NLS= "@comment " +DISTFILES+= FoxitReader${PORTVERSION:R}ForLinux_Manual.pdf:manual .endif do-install: - cd ${WRKSRC} && ${MKDIR} ${DATADIR} && \ - ${INSTALL_DATA} fpdfcjk.bin fum.fhd ${DATADIR} && \ - ${INSTALL_PROGRAM} FoxitReader ${DATADIR} && \ - ${LN} -s ${DATADIR}/FoxitReader ${PREFIX}/bin/FoxitReader + @${MKDIR} ${STAGEDIR}${DATADIR} + (cd ${WRKSRC} && ${INSTALL_DATA} fpdfcjk.bin fum.fhd ${STAGEDIR}${DATADIR}) + ${INSTALL_PROGRAM} ${WRKSRC}/FoxitReader ${STAGEDIR}${DATADIR} + ${LN} -s ${DATADIR}/FoxitReader ${STAGEDIR}${PREFIX}/bin/FoxitReader .if ${PORT_OPTIONS:MNLS} .for locale in de fr ja zh_CN zh_TW - ${INSTALL_DATA} ${WRKSRC}/po/${locale}/FoxitReader.mo ${PREFIX}/share/locale/${locale}/LC_MESSAGES/ + ${INSTALL_DATA} ${WRKSRC}/po/${locale}/FoxitReader.mo ${STAGEDIR}${PREFIX}/share/locale/${locale}/LC_MESSAGES/ .endfor .endif -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} && \ - ${INSTALL_DATA} ${DISTDIR}/FoxitReader${PORTVERSION:R}ForLinux_Manual.pdf ${DOCSDIR} -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${DISTDIR}/FoxitReader${PORTVERSION:R}ForLinux_Manual.pdf ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> |