blob: ab208d5a0cbcaff9151f422eb7474d41a6b9d8c5 (
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
|
# $NetBSD: Makefile,v 1.40 2011/03/17 13:17:51 obache Exp $
DISTNAME= acroread5 # overridden below
PKGNAME= acroread5-5.10
PKGREVISION= 4
CATEGORIES= print
MASTER_SITES= http://ardownload.adobe.com/pub/adobe/acrobatreader/unix/5.x/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.adobe.com/products/acrobat/readstep2.html
COMMENT= View, distribute and print PDF documents
LICENSE= adobe-acrobat-license
RESTRICTED= Original installer required to redistribute.
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
NO_SRC_ON_FTP= ${RESTRICTED}
CONFLICTS+= acroread-5.*
# conflict with acroread7 due to bin/acroread
CONFLICTS+= acroread-7.*
CONFLICTS+= acroread7-7.*
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}/installers
BUILD_DIRS= # empty
EMUL_PLATFORMS= linux-i386
EMUL_PLATFORMS+= solaris-sparc
EMUL_MODULES.linux= x11
.include "../../mk/bsd.prefs.mk"
.if ${EMUL_PLATFORM} == "linux-i386"
DISTNAME= linux-5010
PLATFORM= intellinux
.elif ${EMUL_PLATFORM} == "solaris-sparc"
DISTNAME= solaris-5010
PLATFORM= sparcsolaris
.else
PLATFORM= unknown
.endif
PLIST_SUBST+= PLATFORM=${PLATFORM:Q}
BIN_PATCH= ${PATCH} --quiet ${_PATCH_BACKUP_ARG} .orig
INSTALLATION_DIRS= bin
do-install:
@${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/Acrobat5
@( ${ECHO} accept ) | PAGER=${CAT} ReadInstallDir=${DESTDIR}${PREFIX}/Acrobat5 ${WRKSRC}/INSTALL
@cd ${DESTDIR}${PREFIX}/Acrobat5/bin && \
${BIN_PATCH} <${FILESDIR}/acroread.diff && \
${INSTALL_SCRIPT} ${DESTDIR}${PREFIX}/Acrobat5/bin/acroread \
${DESTDIR}${PREFIX}/bin/acroread5 && ${RM} -f acroread.orig
${CHMOD} +x ${DESTDIR}${PREFIX}/bin/acroread5
@${ECHO_MSG} "Be sure to read the license agreement in"
@${ECHO_MSG} "${PREFIX}/Acrobat5/Reader/license.txt"
${LN} -sf ${PREFIX}/bin/acroread5 ${DESTDIR}${PREFIX}/bin/acroread
SUBST_CLASSES+= rmdestdir
SUBST_STAGE.rmdestdir= post-install
SUBST_FILES.rmdestdir= ${DESTDIR}${PREFIX}/bin/acroread5
SUBST_SED.rmdestdir= -e 's,${DESTDIR},,g'
.include "../../mk/bsd.pkg.mk"
|