diff options
author | obrien <obrien@FreeBSD.org> | 2000-03-10 02:15:08 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-03-10 02:15:08 +0800 |
commit | 450b168a73d7683044de53fe6550a06f3fd1d31f (patch) | |
tree | 33c77f9487b6a64a4e970420bbad4f1e178bb080 /print | |
parent | 6139e54f7ed7e18f54fc3d2574f2196ad429cf4a (diff) | |
download | freebsd-ports-gnome-450b168a73d7683044de53fe6550a06f3fd1d31f.tar.gz freebsd-ports-gnome-450b168a73d7683044de53fe6550a06f3fd1d31f.tar.zst freebsd-ports-gnome-450b168a73d7683044de53fe6550a06f3fd1d31f.zip |
Acrobat for FreeBSD/Alpha.
Diffstat (limited to 'print')
-rw-r--r-- | print/acroread/Makefile | 31 | ||||
-rw-r--r-- | print/acroread/distinfo | 1 | ||||
-rw-r--r-- | print/acroread/files/acroread.diff | 19 | ||||
-rw-r--r-- | print/acroread/files/patch-aa | 28 |
4 files changed, 51 insertions, 28 deletions
diff --git a/print/acroread/Makefile b/print/acroread/Makefile index 1ce1bff77dcf..143ca0f09ebc 100644 --- a/print/acroread/Makefile +++ b/print/acroread/Makefile @@ -5,8 +5,13 @@ # # $FreeBSD$ # +.include <bsd.port.pre.mk> +.if ${ARCH} == "i386" DISTNAME= ar302lin +.elif ${ARCH} == "alpha" +DISTNAME= ar302osf +.endif PKGNAME= acroread-3.02 CATEGORIES= print linux MASTER_SITES= ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/3.x/ \ @@ -15,13 +20,28 @@ EXTRACT_SUFX= .tar.Z MAINTAINER= tg@FreeBSD.org +.if ${ARCH} == "i386" RUN_DEPENDS= /compat/linux/usr/i486-linux-libc5/lib/libc.so.5:${PORTSDIR}/emulators/linux_base +.elif ${ARCH} == "alpha" +RUN_DEPENDS= /compat/osf1/usr/shlib/libc.so:${PORTSDIR}/emulators/osf1_base +.endif -ONLY_FOR_ARCHS= i386 +ONLY_FOR_ARCHS= i386 alpha NO_FILTER_SHLIBS= yes +.if ${ARCH} == "i386" WRKSRC= ${WRKDIR}/ILINXR.install +.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 do-build: @${ECHO_MSG} "Do a \`make install' as root." @@ -31,13 +51,18 @@ do-install: @ReadInstallDir=${PREFIX}/Acrobat3 ${WRKSRC}/INSTALL post-install: +.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 @cd ${PREFIX}/Acrobat3/bin && \ ${PATCH} --quiet < ${FILESDIR}/acroread.diff && \ ${INSTALL_SCRIPT} ${PREFIX}/Acrobat3/bin/acroread ${PREFIX}/bin && \ ${RM} acroread.orig - @brandelf -t Linux ${PREFIX}/Acrobat3/Reader/intellinux/bin/acroread @${CHMOD} +x ${PREFIX}/bin/acroread @${ECHO_MSG} "Be sure to read the license agreement in" @${ECHO_MSG} "${PREFIX}/Acrobat3/Reader/License.pdf" -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/print/acroread/distinfo b/print/acroread/distinfo index ca9cc651cb02..08c1526d697a 100644 --- a/print/acroread/distinfo +++ b/print/acroread/distinfo @@ -1 +1,2 @@ MD5 (ar302lin.tar.Z) = bbc6663866c90c8cf1793410cb08b8b8 +MD5 (ar302osf.tar.Z) = 11cd457066f0def060d9468a044585ec diff --git a/print/acroread/files/acroread.diff b/print/acroread/files/acroread.diff index 7da09ec4606a..c76ae4126822 100644 --- a/print/acroread/files/acroread.diff +++ b/print/acroread/files/acroread.diff @@ -1,15 +1,12 @@ ---- acroread.orig Fri Nov 20 17:44:30 1998 -+++ acroread Fri Nov 20 17:45:11 1998 -@@ -205,7 +205,7 @@ - ACRO_CONFIG=intelbsdi - export ACRO_CONFIG - ;; -- Linux) -+ FreeBSD|Linux) - ACRO_CONFIG=intellinux - export ACRO_CONFIG +--- acroread.orig Thu Mar 9 09:14:30 2000 ++++ acroread Thu Mar 9 09:24:53 2000 +@@ -305,10 +305,14 @@ + alphaosf) + LD_LIBRARY_PATH="`prepend "$ACRO_INSTALL_DIR/$ACRO_CONFIG/lib:$ACRO_INSTALL_DIR/$ACRO_CONFIG/lib" "$LD_LIBRARY_PATH"`" + export LD_LIBRARY_PATH ++ LC_CTYPE="C" ++ export LC_CTYPE ;; -@@ -309,6 +309,8 @@ intellinux) LD_LIBRARY_PATH="`prepend "$ACRO_INSTALL_DIR/$ACRO_CONFIG/lib:$ACRO_INSTALL_DIR/$ACRO_CONFIG/lib" "$LD_LIBRARY_PATH"`" export LD_LIBRARY_PATH diff --git a/print/acroread/files/patch-aa b/print/acroread/files/patch-aa index 96af67355cdb..a161fb7a0893 100644 --- a/print/acroread/files/patch-aa +++ b/print/acroread/files/patch-aa @@ -1,6 +1,6 @@ ---- INSTALL.orig Thu Nov 7 00:04:53 1996 -+++ INSTALL Wed Nov 20 17:37:14 1996 -@@ -117,6 +117,8 @@ +--- INSTALL.orig Fri Sep 11 13:31:26 1998 ++++ INSTALL Thu Mar 9 09:34:06 2000 +@@ -115,6 +115,8 @@ if [ "$i" -a -f "$i" ] ; then if [ `uname -s` = "Linux" ] ; then size=`ls -lLn "$i" | ( read perm links owner group size date ; echo $size )` @@ -9,7 +9,16 @@ else size=`ls -lLon "$i" | ( read perm links owner size date ; echo $size )` fi -@@ -486,7 +488,7 @@ +@@ -151,7 +153,7 @@ + + ExtractFiles () + { +- ( cd "$1" ; tar xf "$2" ) ++ ( cd "$1" ; tar --unlink -xf "$2" ) + } + + InstallFiles () +@@ -484,7 +486,7 @@ SearchPlatformTar="$3" CustomPlatformTar="$4" @@ -18,7 +27,7 @@ ReadLicense="" PrintRequiredFree "$ReadTar" "$SearchTar" "$CustomTar" \ -@@ -559,7 +561,7 @@ +@@ -557,7 +559,7 @@ *) ScriptDirectory="$CurrentDirectory"/"$ScriptDirectory" ;; esac @@ -27,12 +36,3 @@ OSname=`uname -s` if [ "$OSname" = "AIX" ] ; then OSrelease=`uname -a | ( read name host minor major foo ; echo $major.$minor )` -@@ -1044,7 +1046,7 @@ - DistDefaultNum="$DistIntelBSDINum" - DefaultName="Intel/BSDI" - ;; -- Linux) -+ FreeBSD|Linux) - AcroDefaultNum="$AcroIntelLinuxNum" - ExchDefaultNum="$ExchIntelLinuxNum" - ReadDefaultNum="$ReadIntelLinuxNum" |