pkgsrc/print/acroread/Makefile
hubertf d32e698de6 Cleanup MKDIR usage => INSTALL_*_DIR
XXX need to teach pkglint to be more picky about this
2001-02-25 04:17:35 +00:00

87 lines
2.5 KiB
Makefile

# $NetBSD: Makefile,v 1.25 2001/02/25 04:18:11 hubertf Exp $
# FreeBSD Id: Makefile,v 1.13 1999/04/08 07:49:18 dima Exp $
PKGNAME= acroread-4.05
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
COMMENT= View, distribute and print PDF documents
#HF#IS_INTERACTIVE= YES
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}
LICENSE= adobe-acrobat-license
NO_BUILD= YES
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
.if (${MACHINE_ARCH} == "i386")
DEPENDS= suse_x11>=6.1:../../emulators/suse_x11
DISTNAME= linux-ar-405
PLATFORM= intellinux
WRKSRC= ${WRKDIR}/ILINXR.install
CHECK_SHLIBS= NO
SHLIB_HANDLING= NO
.elif (${MACHINE_ARCH} == "alpha")
.if !exists(/emul/osf1/sbin/loader)
IGNORE= '${PKGNAME} requires Digital UNIX libraries - see compat_osf1(8)'
.endif
DISTNAME= fdec-rs-405
PLATFORM= alphaosf
WRKSRC= ${WRKDIR}/AOSFRS.install
LDD?= ${TRUE}
.elif (${MACHINE_ARCH} == "sparc")
.if !exists(/emul/svr4/usr/lib/ld.so)
IGNORE= '${PKGNAME} requires Solaris libraries - see compat_svr4(8)'
.endif
DISTNAME= sunsparc-rs-405
WRKSRC= ${WRKDIR}/SSOLRS.install
PLATFORM= sparcsolaris
LDD?= ${TRUE}
.else
DISTNAME= ${PKGNAME}
LDD?= ${TRUE}
.endif
ONLY_FOR_PLATFORM= *-*-i386 *-1.4[L-Z]-sparc *-1.[5-9]*-sparc *-[2-9]*-sparc
# *-*-alpha
.elif ${OPSYS} == "SunOS"
DISTNAME= sunsparc-rs-405
WRKSRC= ${WRKDIR}/SSOLRS.install
PLATFORM= sparcsolaris
post-patch:
${CHMOD} -R o+rwx ${WRKSRC}
.endif
PLIST_SUBST+= PLATFORM=${PLATFORM}
PLIST_SRC= ${PKGDIR}/PLIST.pre \
${PKGDIR}/PLIST.${MACHINE_ARCH} \
${PKGDIR}/PLIST.post
NS_PLUGINS_DIR= ${PREFIX}/lib/netscape/plugins
do-install:
@${INSTALL_DATA_DIR} ${PREFIX}/Acrobat4
@( ${ECHO} accept ) | PAGER=${CAT} ReadInstallDir=${PREFIX}/Acrobat4 ${WRKSRC}/INSTALL
post-install:
@cd ${PREFIX}/Acrobat4/bin && \
${PATCH} --quiet < ${FILESDIR}/acroread.diff && \
${INSTALL_SCRIPT} ${PREFIX}/Acrobat4/bin/acroread \
${PREFIX}/bin/acroread && ${RM} -f acroread.orig
${CHMOD} +x ${PREFIX}/bin/acroread
${LN} -f ${PREFIX}/bin/acroread ${PREFIX}/bin/acroread4
${INSTALL_DATA_DIR} ${NS_PLUGINS_DIR}
${INSTALL_DATA} ${PREFIX}/Acrobat4/Browsers/${PLATFORM}/nppdf.so \
${NS_PLUGINS_DIR}
@${ECHO_MSG} "Be sure to read the license agreement in"
@${ECHO_MSG} "${PREFIX}/Acrobat4/Reader/License.pdf"
.include "../../mk/bsd.pkg.mk"