summaryrefslogtreecommitdiffstats
path: root/print/foxitreader/Makefile
blob: aaa456040055784170e6d00d4f5b7d30667007e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $FreeBSD$

PORTNAME=	foxitreader
PORTVERSION=	1.1.0
#PORTREVISION=	0
CATEGORIES=	print
MASTER_SITES=	http://cdn04.foxitsoftware.com/pub/foxit/%SUBDIR%/:reader,manual
MASTER_SITE_SUBDIR=	reader/desktop/linux/1.x/${PORTVERSION:R}/enu/:reader \
			manual/enu/:manual
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_NAME=	EULA
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell
LICENSE_TEXT=	http://www.foxitsoftware.com/pdf/desklinux/eula.htm

NO_BUILD=	yes

PLIST_SUB=	NLS="${NLS}"

USE_BZIP2=	yes
USES=		gettext
USE_LINUX=	yes
USE_LINUX_APPS=	cups-libs gtk2

WRKSRC=	${WRKDIR}/${PORTVERSION:R}-release

NO_STAGE=	yes
.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 "
.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
.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/
.endfor
.endif
.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR} && \
	${INSTALL_DATA} ${DISTDIR}/FoxitReader${PORTVERSION:R}ForLinux_Manual.pdf ${DOCSDIR}
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud