1996-11-20 07:29:45 +00:00
|
|
|
# New ports collection makefile for: acroread
|
1998-10-06 11:19:51 +00:00
|
|
|
# Version required: 3.02
|
1996-11-20 07:29:45 +00:00
|
|
|
# Date created: 16 November 1996
|
|
|
|
# Whom: Thomas Gellekum <tg@freebsd.org>
|
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1996-11-20 07:29:45 +00:00
|
|
|
#
|
2000-03-09 18:15:08 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
1996-11-20 07:29:45 +00:00
|
|
|
|
2000-03-09 18:15:08 +00:00
|
|
|
.if ${ARCH} == "i386"
|
1998-10-06 11:19:51 +00:00
|
|
|
DISTNAME= ar302lin
|
2000-03-09 18:15:08 +00:00
|
|
|
.elif ${ARCH} == "alpha"
|
|
|
|
DISTNAME= ar302osf
|
|
|
|
.endif
|
1998-10-06 11:19:51 +00:00
|
|
|
PKGNAME= acroread-3.02
|
2000-02-28 08:34:04 +00:00
|
|
|
CATEGORIES= print linux
|
1996-11-20 07:29:45 +00:00
|
|
|
MASTER_SITES= ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/3.x/ \
|
1997-02-17 09:07:32 +00:00
|
|
|
ftp://sunsite.cnlab-switch.ch/mirror/acrobatreader/unix/3.x/
|
1998-10-06 11:19:51 +00:00
|
|
|
EXTRACT_SUFX= .tar.Z
|
1996-11-20 07:29:45 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= tg@FreeBSD.org
|
1996-11-20 07:29:45 +00:00
|
|
|
|
2000-03-09 18:15:08 +00:00
|
|
|
.if ${ARCH} == "i386"
|
1999-07-21 14:55:43 +00:00
|
|
|
RUN_DEPENDS= /compat/linux/usr/i486-linux-libc5/lib/libc.so.5:${PORTSDIR}/emulators/linux_base
|
2000-03-09 18:15:08 +00:00
|
|
|
.elif ${ARCH} == "alpha"
|
|
|
|
RUN_DEPENDS= /compat/osf1/usr/shlib/libc.so:${PORTSDIR}/emulators/osf1_base
|
|
|
|
.endif
|
1996-11-20 07:29:45 +00:00
|
|
|
|
2000-03-09 18:15:08 +00:00
|
|
|
ONLY_FOR_ARCHS= i386 alpha
|
1999-01-07 02:31:51 +00:00
|
|
|
|
1998-11-20 10:26:12 +00:00
|
|
|
NO_FILTER_SHLIBS= yes
|
|
|
|
|
2000-03-09 18:15:08 +00:00
|
|
|
.if ${ARCH} == "i386"
|
1998-10-06 11:19:51 +00:00
|
|
|
WRKSRC= ${WRKDIR}/ILINXR.install
|
2000-03-09 18:15:08 +00:00
|
|
|
.elif ${ARCH} == "alpha"
|
|
|
|
WRKSRC= ${WRKDIR}/AOSFR.install
|
|
|
|
.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
|
|
|
|
.endif
|
1996-11-20 07:29:45 +00:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
@${ECHO_MSG} "Do a \`make install' as root."
|
|
|
|
|
|
|
|
do-install:
|
1997-09-01 13:09:29 +00:00
|
|
|
@${MKDIR} ${PREFIX}/Acrobat3
|
1998-10-06 11:19:51 +00:00
|
|
|
@ReadInstallDir=${PREFIX}/Acrobat3 ${WRKSRC}/INSTALL
|
1996-11-20 07:29:45 +00:00
|
|
|
|
|
|
|
post-install:
|
2000-03-09 18:15:08 +00:00
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
@${PERL} -pi -e 's:Linux\):FreeBSD|Linux):g' ${PREFIX}/Acrobat3/bin/acroread
|
|
|
|
@brandelf -t Linux ${PREFIX}/Acrobat3/Reader/intellinux/bin/acroread
|
|
|
|
.elif ${ARCH} == "alpha"
|
|
|
|
@${PERL} -pi -e 's:OSF1\):FreeBSD|OSF1):g' ${PREFIX}/Acrobat3/bin/acroread
|
|
|
|
.endif
|
1998-11-20 10:26:12 +00:00
|
|
|
@cd ${PREFIX}/Acrobat3/bin && \
|
|
|
|
${PATCH} --quiet < ${FILESDIR}/acroread.diff && \
|
|
|
|
${INSTALL_SCRIPT} ${PREFIX}/Acrobat3/bin/acroread ${PREFIX}/bin && \
|
|
|
|
${RM} acroread.orig
|
1999-08-22 19:01:07 +00:00
|
|
|
@${CHMOD} +x ${PREFIX}/bin/acroread
|
1996-11-21 07:12:12 +00:00
|
|
|
@${ECHO_MSG} "Be sure to read the license agreement in"
|
|
|
|
@${ECHO_MSG} "${PREFIX}/Acrobat3/Reader/License.pdf"
|
1996-11-20 07:29:45 +00:00
|
|
|
|
2000-03-09 18:15:08 +00:00
|
|
|
.include <bsd.port.post.mk>
|