forked from Lainports/freebsd-ports
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.
While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.
Also, replace some EXTRACT_SUFX occurences with USES=tar:*.
Checked by: make fetch-urlall-list
With hat: portmgr
Sponsored by: Absolight
54 lines
1.6 KiB
Makefile
54 lines
1.6 KiB
Makefile
# Created by: Nicola Vitale <nivit@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= foxitreader
|
|
PORTVERSION= 1.1.0
|
|
PORTREVISION= 3
|
|
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
|
|
|
|
USES= gettext tar:bzip2
|
|
USE_LINUX= yes
|
|
USE_LINUX_APPS= 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>
|