blob: eccf77869090df773134e9cc47b4baba36166fac (
plain) (
blame)
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
60
61
62
|
# New ports collection makefile for: acroread
# Date created: 4 June 2005
# Whom: hrs@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= acroread
PORTVERSION= 7.0.1
PORTREVISION= 1
CATEGORIES= japanese print
MASTER_SITES= ftp://ftp.adobe.com/pub/adobe/reader/unix/7x/7.0/jpn/
DISTNAME= AdbeRdr701_linux_jpn
DIST_SUBDIR= acroread
MAINTAINER= hrs@FreeBSD.org
COMMENT= Adobe Reader which allows view, print, and search PDF documents
BUILD_DEPENDS= ${LOCALBASE}/bin/jless:${PORTSDIR}/japanese/less
RUN_DEPENDS= ${LINUXBASE}/usr/lib/libgtk-x11-2.0.so.0:${PORTSDIR}/x11-toolkits/linux-gtk2 \
${LINUXBASE}/usr/lib/libpango-1.0.so.0:${PORTSDIR}/x11-toolkits/linux-pango
RESTRICTED= "Must fill out redistribution form at http://www.adobe.com/products/acrobat/distribute.html"
NO_PACKAGE= "Use and redistribution with repackaging are not allowed"
IS_INTERACTIVE= yes
CONFLICTS= acroread-[0-9]* acroread[57]-[0-9]* \
ja-acroread5-[0-9]*
ONLY_FOR_ARCHS= amd64 i386
USE_LINUX= yes
USE_X_PREFIX= yes
NO_BUILD= yes
PLIST_SUB= ACRODIR=${ACRODIR} \
PLUGINDIR=${PLUGINDIR}
SUB_FILES= acroread
SUB_LIST= INSTALLDIR=${INSTALLDIR}
WRKSRC= ${WRKDIR}/AdobeReader
ACRODIR= Acrobat7
PLUGINDIR= lib/browser_plugins
INSTALLDIR= ${PREFIX}/${ACRODIR}
INSTALLEXEC= ${SETENV} UNAME_s=Linux \
UNAME_r="Linux Compatibility on FreeBSD" \
InstallDir=${INSTALLDIR} \
PAGER=jless \
${SH} ./INSTALL
do-install:
${MKDIR} ${INSTALLDIR}
cd ${WRKSRC} && ${INSTALLEXEC}
# disable the PPKLite plugin as it requires an LDAP share lib
${CHMOD} 0 ${INSTALLDIR}/Reader/intellinux/plug_ins/PPKLite.api
${INSTALL_SCRIPT} ${WRKDIR}/acroread ${PREFIX}/bin/acroread
${BRANDELF} -t Linux ${INSTALLDIR}/Reader/intellinux/bin/acroread
post-install:
if [ -d ${PREFIX}/${PLUGINDIR} ]; then \
${LN} -s -f \
${PREFIX}/${ACRODIR}/Browser/intellinux/nppdf.so \
${PREFIX}/${PLUGINDIR}/nppdf.so; \
fi
.include <bsd.port.mk>
|