aboutsummaryrefslogtreecommitdiffstats
path: root/print/acroread5
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-03-10 16:26:56 +0800
committerobrien <obrien@FreeBSD.org>2000-03-10 16:26:56 +0800
commitfd48935dd11ba7b742da83b55958d268d5284d76 (patch)
tree471d9b892dd5a1de134d994139863932b1aeaa24 /print/acroread5
parent5b17f23680a8ece3d2ce2b7c4409a0a2dc8a5e9d (diff)
downloadfreebsd-ports-gnome-fd48935dd11ba7b742da83b55958d268d5284d76.tar.gz
freebsd-ports-gnome-fd48935dd11ba7b742da83b55958d268d5284d76.tar.zst
freebsd-ports-gnome-fd48935dd11ba7b742da83b55958d268d5284d76.zip
Acroreader version 4 for the FreeBSD/Alpha.
Diffstat (limited to 'print/acroread5')
-rw-r--r--print/acroread5/Makefile42
-rw-r--r--print/acroread5/distinfo3
-rw-r--r--print/acroread5/files/acroread.diff19
-rw-r--r--print/acroread5/files/patch-aa31
-rw-r--r--print/acroread5/pkg-plist76
5 files changed, 109 insertions, 62 deletions
diff --git a/print/acroread5/Makefile b/print/acroread5/Makefile
index 6f630f214480..4cff4b62a0e4 100644
--- a/print/acroread5/Makefile
+++ b/print/acroread5/Makefile
@@ -5,23 +5,47 @@
#
# $FreeBSD$
#
+.include <bsd.port.pre.mk>
-DISTNAME= linux-ar-40
-PKGNAME= acroread-4.0
+.if ${ARCH} == "i386"
+DISTNAME= linux-ar-405
+.elif ${ARCH} == "alpha"
+DISTNAME= fdec-rs-405
+.endif
+PKGNAME= acroread-4.05
CATEGORIES= print linux
MASTER_SITES= ftp://ftp-pac.adobe.com/pub/adobe/acrobatreader/unix/4.x/
MAINTAINER= dima@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
NO_LATEST_LINK= yes
-ONLY_FOR_ARCHS= i386
+ONLY_FOR_ARCHS= i386 alpha
NO_FILTER_SHLIBS= yes
+.if ${ARCH} == "i386"
WRKSRC= ${WRKDIR}/ILINXR.install
+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
+ ${SED} -e 's/@comment ALPHA-ONLY://g' ${PKGDIR}/PLIST > ${PLIST}
+.endif
do-build:
@${ECHO_MSG} "Do a \`make install' as root."
@@ -31,14 +55,20 @@ do-install:
@ReadInstallDir=${PREFIX}/Acrobat4 ${WRKSRC}/INSTALL
post-install:
+.if ${ARCH} == "i386"
+ @${PERL} -pi -e 's:Linux\):FreeBSD|Linux):g' ${PREFIX}/Acrobat4/bin/acroread
+ @strip ${PREFIX}/Acrobat4/Reader/intellinux/bin/acroread
+ @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
@cd ${PREFIX}/Acrobat4/bin && \
${PATCH} --quiet < ${FILESDIR}/acroread.diff && \
${INSTALL_SCRIPT} ${PREFIX}/Acrobat4/bin/acroread \
${PREFIX}/bin/acroread4 && ${RM} acroread.orig
- @strip ${PREFIX}/Acrobat4/Reader/intellinux/bin/acroread
- @brandelf -t Linux ${PREFIX}/Acrobat4/Reader/intellinux/bin/acroread
@${CHMOD} +x ${PREFIX}/bin/acroread4
@${ECHO_MSG} "Be sure to read the license agreement in"
@${ECHO_MSG} "${PREFIX}/Acrobat4/Reader/License.pdf"
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/print/acroread5/distinfo b/print/acroread5/distinfo
index 6a07a23f9795..fbbffd969acd 100644
--- a/print/acroread5/distinfo
+++ b/print/acroread5/distinfo
@@ -1 +1,2 @@
-MD5 (linux-ar-40.tar.gz) = 018f4aee79e049095a7b16ed1e7ec925
+MD5 (linux-ar-405.tar.gz) = ad40572f1f9972d2b91d01217a2b0f23
+MD5 (fdec-rs-405.tar.gz) = 79cd8b15532243732ff6a3665533e0dd
diff --git a/print/acroread5/files/acroread.diff b/print/acroread5/files/acroread.diff
index 7da09ec4606a..836142fbc594 100644
--- a/print/acroread5/files/acroread.diff
+++ b/print/acroread5/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.foo Thu Mar 9 10:32:08 2000
++++ acroread Thu Mar 9 10:34:47 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/acroread5/files/patch-aa b/print/acroread5/files/patch-aa
index 96af67355cdb..e88055b38e48 100644
--- a/print/acroread5/files/patch-aa
+++ b/print/acroread5/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 Wed Jan 26 16:38:00 2000
++++ INSTALL Thu Mar 9 10:33:31 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,19 @@
else
size=`ls -lLon "$i" | ( read perm links owner size date ; echo $size )`
fi
-@@ -486,7 +488,7 @@
+@@ -157,9 +159,9 @@
+ uid=`expr "$id_out" : 'uid=[0-9]*(\([^)]*\))'`
+ gid=`expr "$id_out" : '[^ ]* gid=[0-9]*(\([^)]*\))'`
+ if [ "$uid" = "root" ] ; then
+- ( cd "$1" ; tar xfo "$2" ; chown -R $uid . ; chgrp -R $gid . )
++ ( cd "$1" ; tar --unlink -xof "$2" ; chown -R $uid . ; chgrp -R $gid . )
+ else
+- ( cd "$1" ; tar xfo "$2" )
++ ( cd "$1" ; tar --unlink -xof "$2" )
+ fi
+ }
+
+@@ -490,7 +492,7 @@
SearchPlatformTar="$3"
CustomPlatformTar="$4"
@@ -18,7 +30,7 @@
ReadLicense=""
PrintRequiredFree "$ReadTar" "$SearchTar" "$CustomTar" \
-@@ -559,7 +561,7 @@
+@@ -563,7 +565,7 @@
*) ScriptDirectory="$CurrentDirectory"/"$ScriptDirectory" ;;
esac
@@ -27,12 +39,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"
diff --git a/print/acroread5/pkg-plist b/print/acroread5/pkg-plist
index 8e57f64df0dd..d77ef19ccb81 100644
--- a/print/acroread5/pkg-plist
+++ b/print/acroread5/pkg-plist
@@ -1,5 +1,18 @@
+@comment ALPHA-ONLY:Acrobat4/Reader/%%ARCHDIR%%/plug_ins/autoIndx.api
+@comment ALPHA-ONLY:Acrobat4/Reader/%%ARCHDIR%%/plug_ins/search.api
+@comment ALPHA-ONLY:Acrobat4/Reader/%%ARCHDIR%%/plug_ins/acrosrch.uid
+@comment ALPHA-ONLY:Acrobat4/Reader/%%ARCHDIR%%/plug_ins/vdkHome/vdk10.cmp
+@comment ALPHA-ONLY:Acrobat4/Reader/%%ARCHDIR%%/plug_ins/vdkHome/vdk10.lic
+@comment ALPHA-ONLY:Acrobat4/Reader/%%ARCHDIR%%/plug_ins/vdkHome/vdk10.std
+@comment ALPHA-ONLY:Acrobat4/Reader/%%ARCHDIR%%/plug_ins/vdkHome/vdk10.syx
+@comment ALPHA-ONLY:Acrobat4/Reader/%%ARCHDIR%%/plug_ins/vdkHome/language/acro20.lng
+@comment ALPHA-ONLY:Acrobat4/Reader/%%ARCHDIR%%/plug_ins/vdkHome/language/vdk10.rsd
+@comment ALPHA-ONLY:Acrobat4/Reader/%%ARCHDIR%%/plug_ins/vdkHome/language/vdk10.rst
+@comment ALPHA-ONLY:Acrobat4/Reader/%%ARCHDIR%%/plug_ins/vdkHome/language/vdk10.stc
+@comment ALPHA-ONLY:Acrobat4/Reader/%%ARCHDIR%%/plug_ins/vdkHome/language/vdk10.stp
+@comment ALPHA-ONLY:Acrobat4/Reader/%%ARCHDIR%%/plug_ins/vdkHome/language/vdk10.syd
Acrobat4/Browsers/netscape
-Acrobat4/Browsers/intellinux/nppdf.so
+Acrobat4/Browsers/%%ARCHDIR%%/nppdf.so
Acrobat4/Resource/Font/Arial
Acrobat4/Resource/Font/Arial-Bold
Acrobat4/Resource/Font/Arial-BoldItalic
@@ -23,49 +36,52 @@ Acrobat4/Reader/AcroVersion
Acrobat4/Reader/Acrobat.pdf
Acrobat4/Reader/License.pdf
Acrobat4/Reader/MapTypes.pdf
-Acrobat4/Reader/ReadMe
Acrobat4/Reader/help/reader.pdf
-Acrobat4/Reader/intellinux/app-defaults/AcroRead
-Acrobat4/Reader/intellinux/bin/acroread
-Acrobat4/Reader/intellinux/lib/XKeysymDB
-Acrobat4/Reader/intellinux/lib/libAGM.so
-Acrobat4/Reader/intellinux/lib/libAGM.so.3.0
-Acrobat4/Reader/intellinux/lib/libCoolType.so
-Acrobat4/Reader/intellinux/lib/libCoolType.so.1.0
-Acrobat4/Reader/intellinux/lib/libICC.so
-Acrobat4/Reader/intellinux/lib/libICC.so.1.0
-Acrobat4/Reader/intellinux/lib/libreadcore.so
-Acrobat4/Reader/intellinux/lib/libreadcore.so.4.0
-Acrobat4/Reader/intellinux/plug_ins/JavaScripts/AFStrENU.js
-Acrobat4/Reader/intellinux/plug_ins/JavaScripts/AForm.js
-Acrobat4/Reader/intellinux/plug_ins/AcroForm.api
-Acrobat4/Reader/intellinux/plug_ins/Highlight.api
-Acrobat4/Reader/intellinux/plug_ins/ewh.api
-Acrobat4/Reader/intellinux/plug_ins/wwwlink.api
+@comment ALPHA-ONLY:Acrobat4/Reader/help/search.pdf
+Acrobat4/Reader/%%ARCHDIR%%/app-defaults/AcroRead
+Acrobat4/Reader/%%ARCHDIR%%/bin/acroread
+Acrobat4/Reader/%%ARCHDIR%%/lib/XKeysymDB
+Acrobat4/Reader/%%ARCHDIR%%/lib/libAGM.so
+Acrobat4/Reader/%%ARCHDIR%%/lib/libAGM.so.3.0
+Acrobat4/Reader/%%ARCHDIR%%/lib/libCoolType.so
+Acrobat4/Reader/%%ARCHDIR%%/lib/libCoolType.so.1.0
+Acrobat4/Reader/%%ARCHDIR%%/lib/libICC.so
+Acrobat4/Reader/%%ARCHDIR%%/lib/libICC.so.1.0
+Acrobat4/Reader/%%ARCHDIR%%/lib/libreadcore.so
+Acrobat4/Reader/%%ARCHDIR%%/lib/libreadcore.so.4.0
+Acrobat4/Reader/%%ARCHDIR%%/plug_ins/JavaScripts/AFStrENU.js
+Acrobat4/Reader/%%ARCHDIR%%/plug_ins/JavaScripts/AForm.js
+Acrobat4/Reader/%%ARCHDIR%%/plug_ins/AcroForm.api
+Acrobat4/Reader/%%ARCHDIR%%/plug_ins/Highlight.api
+Acrobat4/Reader/%%ARCHDIR%%/plug_ins/ewh.api
+Acrobat4/Reader/%%ARCHDIR%%/plug_ins/wwwlink.api
Acrobat4/Reader/res/splashScreen11R.xbm
Acrobat4/Reader/res/splashScreen18R.xpm
Acrobat4/Reader/res/splashScreen21.xbm
Acrobat4/Reader/res/splashScreen28.xpm
+Acrobat4/ReadMe
Acrobat4/bin/acroread
bin/acroread4
-@exec ln -sf ../../Resource/Font/ %D/Acrobat4/Reader/intellinux/fonts
-@unexec rm -f %D/Acrobat4/Reader/intellinux/fonts
-@exec ln -sf ../../res %D/Acrobat4/Reader/intellinux/res
-@unexec rm -f %D/Acrobat4/Reader/intellinux/res
+@exec ln -sf ../../Resource/Font/ %D/Acrobat4/Reader/%%ARCHDIR%%/fonts
+@unexec rm -f %D/Acrobat4/Reader/%%ARCHDIR%%/fonts
+@exec ln -sf ../../res %D/Acrobat4/Reader/%%ARCHDIR%%/res
+@unexec rm -f %D/Acrobat4/Reader/%%ARCHDIR%%/res
@exec echo "Be sure to read the license agreement in"
@exec echo "%D/Acrobat4/Reader/License.pdf"
@dirrm Acrobat4/bin
@dirrm Acrobat4/Reader/res
-@dirrm Acrobat4/Reader/intellinux/plug_ins/JavaScripts
-@dirrm Acrobat4/Reader/intellinux/plug_ins
-@dirrm Acrobat4/Reader/intellinux/lib
-@dirrm Acrobat4/Reader/intellinux/bin
-@dirrm Acrobat4/Reader/intellinux/app-defaults
-@dirrm Acrobat4/Reader/intellinux
+@comment ALPHA-ONLY:@dirrm Acrobat4/Reader/%%ARCHDIR%%/plug_ins/vdkHome/language
+@comment ALPHA-ONLY:@dirrm Acrobat4/Reader/%%ARCHDIR%%/plug_ins/vdkHome
+@dirrm Acrobat4/Reader/%%ARCHDIR%%/plug_ins/JavaScripts
+@dirrm Acrobat4/Reader/%%ARCHDIR%%/plug_ins
+@dirrm Acrobat4/Reader/%%ARCHDIR%%/lib
+@dirrm Acrobat4/Reader/%%ARCHDIR%%/bin
+@dirrm Acrobat4/Reader/%%ARCHDIR%%/app-defaults
+@dirrm Acrobat4/Reader/%%ARCHDIR%%
@dirrm Acrobat4/Reader/help
@dirrm Acrobat4/Reader
@dirrm Acrobat4/Resource/Font
@dirrm Acrobat4/Resource
-@dirrm Acrobat4/Browsers/intellinux
+@dirrm Acrobat4/Browsers/%%ARCHDIR%%
@dirrm Acrobat4/Browsers
@dirrm Acrobat4