1996-11-20 02:29:45 -05:00
|
|
|
# New ports collection makefile for: acroread
|
|
|
|
# Date created: 16 November 1996
|
|
|
|
# Whom: Thomas Gellekum <tg@freebsd.org>
|
|
|
|
#
|
1999-08-30 21:53:22 -04:00
|
|
|
# $FreeBSD$
|
1996-11-20 02:29:45 -05:00
|
|
|
#
|
|
|
|
|
2001-02-13 08:08:26 -05:00
|
|
|
PORTNAME= acroread4
|
2000-04-09 13:50:59 -04:00
|
|
|
PORTVERSION= 4.05
|
2000-04-09 13:41:40 -04:00
|
|
|
CATEGORIES= print linux
|
2000-08-21 17:32:26 -04:00
|
|
|
MASTER_SITES= ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/4.x/
|
2000-04-14 09:18:13 -04:00
|
|
|
.include <bsd.port.pre.mk>
|
2000-03-10 03:26:56 -05:00
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
DISTNAME= linux-ar-405
|
|
|
|
.elif ${ARCH} == "alpha"
|
|
|
|
DISTNAME= fdec-rs-405
|
|
|
|
.endif
|
1996-11-20 02:29:45 -05:00
|
|
|
|
1999-08-31 02:53:31 -04:00
|
|
|
MAINTAINER= dima@FreeBSD.org
|
1996-11-20 02:29:45 -05:00
|
|
|
|
2000-03-10 03:26:56 -05:00
|
|
|
.if ${ARCH} == "i386"
|
1999-07-21 10:55:43 -04:00
|
|
|
RUN_DEPENDS= /compat/linux/usr/i486-linux-libc5/lib/libc.so.5:${PORTSDIR}/emulators/linux_base
|
2000-03-10 03:26:56 -05:00
|
|
|
.elif ${ARCH} == "alpha"
|
|
|
|
RUN_DEPENDS= /compat/osf1/usr/shlib/libc.so:${PORTSDIR}/emulators/osf1_base
|
|
|
|
.endif
|
1996-11-20 02:29:45 -05:00
|
|
|
|
2000-03-10 03:26:56 -05:00
|
|
|
ONLY_FOR_ARCHS= i386 alpha
|
1999-01-06 21:31:51 -05:00
|
|
|
|
1998-11-20 05:26:12 -05:00
|
|
|
NO_FILTER_SHLIBS= yes
|
|
|
|
|
2000-03-10 03:26:56 -05:00
|
|
|
.if ${ARCH} == "i386"
|
1998-10-06 07:19:51 -04:00
|
|
|
WRKSRC= ${WRKDIR}/ILINXR.install
|
2000-03-10 03:26:56 -05:00
|
|
|
PLIST_SUB= "ARCHDIR=intellinux"
|
|
|
|
.elif ${ARCH} == "alpha"
|
|
|
|
WRKSRC= ${WRKDIR}/AOSFRS.install
|
|
|
|
PLIST= ${WRKDIR}/PLIST
|
|
|
|
PLIST_SUB= "ARCHDIR=alphaosf"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
@${PERL} -pi.fbsd -e 's:Linux\):FreeBSD|Linux):g' ${WRKSRC}/INSTALL
|
|
|
|
.elif ${ARCH} == "alpha"
|
|
|
|
@${PERL} -pi.fbsd -e 's:OSF1\):FreeBSD|OSF1):g' ${WRKSRC}/INSTALL
|
2000-10-08 06:23:48 -04:00
|
|
|
${SED} -e 's/@comment ALPHA-ONLY://g' ${PKGDIR}/pkg-plist > ${PLIST}
|
2000-03-10 03:26:56 -05:00
|
|
|
.endif
|
1996-11-20 02:29:45 -05:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
@${ECHO_MSG} "Do a \`make install' as root."
|
|
|
|
|
|
|
|
do-install:
|
1999-04-08 03:41:21 -04:00
|
|
|
@${MKDIR} ${PREFIX}/Acrobat4
|
|
|
|
@ReadInstallDir=${PREFIX}/Acrobat4 ${WRKSRC}/INSTALL
|
1996-11-20 02:29:45 -05:00
|
|
|
|
|
|
|
post-install:
|
2000-03-10 03:26:56 -05:00
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
@${PERL} -pi -e 's:Linux\):FreeBSD|Linux):g' ${PREFIX}/Acrobat4/bin/acroread
|
2000-05-14 18:06:33 -04:00
|
|
|
@/compat/linux/usr/bin/strip ${PREFIX}/Acrobat4/Reader/intellinux/bin/acroread
|
2000-03-10 03:26:56 -05:00
|
|
|
@brandelf -t Linux ${PREFIX}/Acrobat4/Reader/intellinux/bin/acroread
|
|
|
|
.elif ${ARCH} == "alpha"
|
|
|
|
@${PERL} -pi -e 's:OSF1\):FreeBSD|OSF1):g' ${PREFIX}/Acrobat4/bin/acroread
|
|
|
|
@strip ${PREFIX}/Acrobat4/Reader/alphaosf/bin/acroread
|
|
|
|
.endif
|
1999-04-08 03:41:21 -04:00
|
|
|
@cd ${PREFIX}/Acrobat4/bin && \
|
1998-11-20 05:26:12 -05:00
|
|
|
${PATCH} --quiet < ${FILESDIR}/acroread.diff && \
|
1999-04-08 03:41:21 -04:00
|
|
|
${INSTALL_SCRIPT} ${PREFIX}/Acrobat4/bin/acroread \
|
|
|
|
${PREFIX}/bin/acroread4 && ${RM} acroread.orig
|
2001-03-12 18:02:32 -05:00
|
|
|
@${CHOWN} -R -h root:wheel ${PREFIX}/Acrobat4
|
1999-08-22 15:01:07 -04:00
|
|
|
@${CHMOD} +x ${PREFIX}/bin/acroread4
|
1996-11-21 02:12:12 -05:00
|
|
|
@${ECHO_MSG} "Be sure to read the license agreement in"
|
1999-04-08 03:41:21 -04:00
|
|
|
@${ECHO_MSG} "${PREFIX}/Acrobat4/Reader/License.pdf"
|
1996-11-20 02:29:45 -05:00
|
|
|
|
2000-03-10 03:26:56 -05:00
|
|
|
.include <bsd.port.post.mk>
|