freebsd-ports/print/foxitreader/Makefile

54 lines
1.6 KiB
Makefile
Raw Normal View History

# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $FreeBSD$
PORTNAME= foxitreader
PORTVERSION= 1.1.0
PORTREVISION= 4
CATEGORIES= print
MASTER_SITES= http://cdn04.foxitsoftware.com/pub/foxit/reader/desktop/linux/1.x/${PORTVERSION:R}/enu/:reader
DISTFILES= FoxitReader-${PORTVERSION}.tar.bz2:reader
EXTRACT_ONLY= FoxitReader-${PORTVERSION}.tar.bz2
MAINTAINER= nivit@FreeBSD.org
COMMENT= Free PDF document viewer for desktop Linux
LICENSE= EULA
LICENSE_NAME= End-User License Agreement
LICENSE_PERMS= auto-accept
LICENSE_TEXT= http://www.foxitsoftware.com/pdf/desklinux/eula.htm
NO_BUILD= yes
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
- Replace Mk/bsd.linux-apps.mk and Mk/bsd.linux-rpm.mk with Mk/Uses/linux.mk. - Replace USE_LINUX=yes with USES+=linux and USE_LINUX=(.*) with USES+=linux:\1 in all ports. - Replace USE_LINUX_APPS with USE_LINUX in all ports. - Use INSTALL_SCRIPT instead of INSTALL_PROGRAM to install scripts in some ports. - When USE_LINUX_RPM is defined, simplify the way DISTFILES and EXTRACT_ONLY are defined. - Remove BRANDELF_DIRS and BRANDELF_FILES handling. In the very rare cases that it is still necessary ports can run ${BRANDELF} from post-patch. - Remove AUTOMATIC_PLIST handling. Only one port used it. - Fix Linux MASTER_SITES. - Replace OVERRIDE_LINUX_BASE_PORT and OVERRIDE_LINUX_NONBASE_PORTS with default versions framework. - bsd.port.mk: - Move Linux related bits to Uses/linux.mk, except USE_LINUX_PREFIX. - Put USE_LINUX_PREFIX handling after USES processing. - Define DOCSDIR, DATADIR, etc. after handling USE_LINUX_PREFIX so it can give these variables a different default value. - When a package needs to run Linux ldconfig check before installation if Linux support is enabled. - emulators/linux_base-*: - Use USES=linux and remove duplication. - Remove files/lp. FreeBSD or CUPS lp(1) should work. - Remove files/yp.conf. No longer seems to be used. - Remove pkg-deinstall and move pkg-install into pkg-plist. - Update pkg-descr and pkg-message. - Fix handling of ldconfig cache in pkg-plist. - devel/fb-adb: Use a Linux shell to run a Linux script but patch the script to use FreeBSD mkdir so mkdir -p $path creates $path and not /compat/linux/$path. PR: 211645 Exp-run by: antoine Approved by: portmgr (antoine)
2016-09-05 21:23:42 +02:00
USES= gettext linux tar:bzip2
USE_LINUX= avahi-libs cups-libs dbuslibs gtk2 nss
WRKSRC= ${WRKDIR}/${PORTVERSION:R}-release
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
MASTER_SITES+= http://cdn04.foxitsoftware.com/pub/foxit/manual/enu/:manual
DISTFILES+= FoxitReader${PORTVERSION:R}ForLinux_Manual.pdf:manual
.endif
do-install:
@${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 ${STAGEDIR}${PREFIX}/share/locale/${locale}/LC_MESSAGES/
.endfor
.endif
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DISTDIR}/FoxitReader${PORTVERSION:R}ForLinux_Manual.pdf ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>