Date: Mon, 31 Mar 2014 16:30:11 +0000 (UTC) From: Nicola Vitale <nivit@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r349771 - head/print/foxitreader Message-ID: <201403311630.s2VGUBVC070602@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nivit Date: Mon Mar 31 16:30:11 2014 New Revision: 349771 URL: http://svnweb.freebsd.org/changeset/ports/349771 QAT: https://qat.redports.org/buildarchive/r349771/ Log: - 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> Modified: head/print/foxitreader/Makefile Modified: head/print/foxitreader/Makefile ============================================================================== --- head/print/foxitreader/Makefile Mon Mar 31 16:15:56 2014 (r349770) +++ head/print/foxitreader/Makefile Mon Mar 31 16:30:11 2014 (r349771) @@ -20,43 +20,32 @@ LICENSE_TEXT= http://www.foxitsoftware.c 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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403311630.s2VGUBVC070602>