summaryrefslogtreecommitdiff
path: root/print/acroread/Makefile
blob: 730770809652eb4d74d7995bc5727f7e02646bd8 (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
# $NetBSD: Makefile,v 1.7 1999/11/23 16:26:13 hubertf Exp $
# FreeBSD Id: Makefile,v 1.13 1999/04/08 07:49:18 dima Exp $

PKGNAME=	acroread-4.0
CATEGORIES=	print
MASTER_SITES=	ftp://ftp-pac.adobe.com/pub/adobe/acrobatreader/unix/4.x/

MAINTAINER=	packages@netbsd.org
HOMEPAGE=	http://www.adobe.com/prodindex/acrobat/readstep.html

IS_INTERACTIVE=	YES
RESTRICTED=	"Original installer required to redistribute."
NO_CDROM=	${RESTRICTED}

NO_BUILD=	YES

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "NetBSD"
.if (${MACHINE_ARCH} == "i386")
.if !exists(/emul/linux/lib/ld-linux.so.1)
IGNORE=	requires Linux glibc2 libraries - see compat_linux(8)
.endif
DISTNAME=	linux-ar-40
#.elif (${MACHINE_ARCH} == "alpha")
#.if !exists(/emul/osf1/sbin/loader)
#IGNORE=	requires Digital UNIX libraries - see compat_osf1(8)
#.endif
#DISTNAME=	dec-arws-40
#.elif (${MACHINE_ARCH} == "sparc")
#.if !exists(/emul/sunos/usr/lib/ld.so)
#IGNORE=	requires SunOS libraries - see compat_sunos(8)
#.endif
#DISTNAME=	sunsparc-arws-40
.else
DISTNAME=	${PKGNAME}
.endif
ONLY_FOR_PLATFORM=	*-*-i386
PLATFORM=	intellinux
# *-*-alpha *-*-sparc
WRKSRC=		${WRKDIR}/ILINXR.install
.elif ${OPSYS} == "SunOS"
DISTNAME=	sunsparc-arws-40
WRKSRC=		${WRKDIR}/SSOLRS.install
PLATFORM=	sparcsolaris
post-patch:
	${CHMOD} -R o+rwx ${WRKSRC}
.endif

PLIST_SRC=	${WRKDIR}/PLIST-src

pre-install:
	${SED} -e 's|@PLATFORM@|${PLATFORM}|g' ${PKGDIR}/PLIST > ${PLIST_SRC}

do-install:
	@${MKDIR} ${PREFIX}/Acrobat4
	@ReadInstallDir=${PREFIX}/Acrobat4 ${WRKSRC}/INSTALL

post-install:
	@cd ${PREFIX}/Acrobat4/bin && \
	  ${PATCH} --quiet < ${FILESDIR}/acroread.diff && \
	  ${INSTALL_SCRIPT} ${PREFIX}/Acrobat4/bin/acroread \
	     ${PREFIX}/bin/acroread4 && ${RM} acroread.orig
	@chmod +x ${PREFIX}/bin/acroread4
	@${ECHO_MSG} "Be sure to read the license agreement in"
	@${ECHO_MSG} "${PREFIX}/Acrobat4/Reader/License.pdf"

.include "../../mk/bsd.pkg.mk"