blob: 116d95767e1beb20cb443013381d949e79124648 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# $NetBSD: Makefile,v 1.25 2004/01/20 12:24:28 agc Exp $
PKGNAME= acroread3-3.01
CATEGORIES= print
MASTER_SITES= ftp://ftp-pac.adobe.com/pub/adobe/acrobatreader/unix/3.x/
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.adobe.com/prodindex/acrobat/readstep.html
COMMENT= View, distribute and print PDF documents
RESTRICTED= "Original installer required to redistribute."
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_SRC_ON_FTP= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
LICENSE= adobe-acrobat-license
WRKSRC= ${WRKDIR}
NO_BUILD= YES
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
.if (${MACHINE_ARCH} == "i386")
DEPENDS= suse_libc5>=6.3:../../emulators/${SUSE_DIR_PREFIX}_libc5
DEPENDS= suse_x11>=6.3:../../emulators/${SUSE_DIR_PREFIX}_x11
DISTNAME= acroread_linux_301
PLATFORM= intellinux
CHECK_SHLIBS= no
.elif (${MACHINE_ARCH} == "alpha")
.if !exists(/emul/osf1/sbin/loader)
PKG_FAIL_REASON= "${PKGNAME} requires Digital UNIX libraries - see compat_osf1(8)"
.endif
DISTNAME= acroread_osf_301
PLATFORM= alphaosf
LDD?= ${TRUE}
.elif (${MACHINE_ARCH} == "sparc")
.if !exists(/emul/sunos/usr/lib/ld.so)
PKG_FAIL_REASON= "${PKGNAME} requires SunOS libraries - see compat_sunos(8)"
.endif
DISTNAME= acroread_sunos_301
PLATFORM= sparcsun
LDD?= ${TRUE}
.else
DISTNAME= ${PKGNAME}
LDD?= ${TRUE}
.endif
ONLY_FOR_PLATFORM= *-*-i386 *-*-sparc # *-*-alpha
.elif ${OPSYS} == "SunOS"
DISTNAME= acroread_solaris_301
PLATFORM= sparcsolaris
LDD?= ${TRUE}
post-patch:
${CHMOD} -R o+rwx ${WRKSRC}
.else
DISTNAME= ${PKGNAME}
LDD?= ${TRUE}
.endif
PLIST_SRC= ${PKGDIR}/PLIST.pre \
${PKGDIR}/PLIST.${LOWER_OPSYS}-${MACHINE_ARCH} \
${PKGDIR}/PLIST.post
PLIST_SUBST+= PLATFORM=${PLATFORM}
pre-install:
# ${SED} -e 's|@PLATFORM@|${PLATFORM}|g' ${PKGDIR}/PLIST > ${PLIST_SRC}
do-install:
@${INSTALL_DATA_DIR} ${PREFIX}/Acrobat3
@${ECHO} accept | PAGER=${CAT} ReadInstallDir=${PREFIX}/Acrobat3 ${WRKSRC}/INSTALL
post-install:
@cd ${PREFIX}/Acrobat3/bin && \
${PATCH} ${_PATCH_BACKUP_ARG} .orig --quiet < ${FILESDIR}/acroread.diff && \
${INSTALL_SCRIPT} ${PREFIX}/Acrobat3/bin/acroread \
${PREFIX}/bin/acroread3 && ${RM} acroread.orig
@${CHMOD} +x ${PREFIX}/bin/acroread3
@${ECHO_MSG} "Be sure to read the license agreement in"
@${ECHO_MSG} "${PREFIX}/Acrobat3/Reader/License.pdf"
.include "../../emulators/suse_linux/Makefile.application"
.include "../../mk/bsd.pkg.mk"
|