summaryrefslogtreecommitdiff
path: root/print/acroread3/Makefile
blob: c4ff548970b09f92b0f396909224bde928b55f97 (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
83
# $NetBSD: Makefile,v 1.35 2006/05/22 22:22:04 jlam Exp $

PKGNAME=	acroread3-3.01
PKGREVISION=	2
CATEGORIES=	print
MASTER_SITES=	ftp://ftp-pac.adobe.com/pub/adobe/acrobatreader/unix/3.x/

MAINTAINER=	pkgsrc-users@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}
CHECK_SHLIBS_SUPPORTED=	no
NO_BUILD=		yes

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

.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly"
.  if (${MACHINE_ARCH} == "i386")
SUSE_PREFER=	7.3	# Does not work with 9.1
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
.  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_SUBST+=	PLATFORM=${PLATFORM:Q}

INSTALLATION_DIRS=	bin

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

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/Acrobat3
	${ECHO} accept | PAGER=${CAT:Q} 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"