summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakamoto <sakamoto@pkgsrc.org>1999-06-16 11:08:30 +0000
committersakamoto <sakamoto@pkgsrc.org>1999-06-16 11:08:30 +0000
commitd55c62c778e6909494417fc5c31e361c25d31cf5 (patch)
tree5cb199ac07480bc80bebf3af6da4d76c5e8b0978
parent384f0af2c368895c59a0cecc60d8a1f795d6b063 (diff)
downloadpkgsrc-d55c62c778e6909494417fc5c31e361c25d31cf5.tar.gz
Adapt this package to NetBSD.
Update 4.0beta to 4.0. For the present, i386 only.
-rw-r--r--print/acroread/Makefile36
-rw-r--r--print/acroread/files/acroread.diff2
-rw-r--r--print/acroread/files/md54
-rw-r--r--print/acroread/patches/patch-aa6
-rw-r--r--print/acroread/pkg/MESSAGE3
-rw-r--r--print/acroread/pkg/PLIST57
6 files changed, 54 insertions, 54 deletions
diff --git a/print/acroread/Makefile b/print/acroread/Makefile
index 45cda4bb9d0..59ef274adff 100644
--- a/print/acroread/Makefile
+++ b/print/acroread/Makefile
@@ -1,41 +1,39 @@
-# New ports collection makefile for: acroread
-# Version required: 4.0
-# Date created: 16 November 1996
-# Whom: Thomas Gellekum <tg@freebsd.org>
-#
-# $Id: Makefile,v 1.1.1.1 1999/06/16 11:04:33 sakamoto Exp $
-#
+# $NetBSD: Makefile,v 1.2 1999/06/16 11:08:30 sakamoto Exp $
+# FreeBSD Id: Makefile,v 1.13 1999/04/08 07:49:18 dima Exp $
DISTNAME= linux-ar-40
-PKGNAME= acroread-4.0b
+PKGNAME= acroread-4.0
CATEGORIES= print
-MASTER_SITES= ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/4.x/beta/
+MASTER_SITES= ftp://ftp-pac.adobe.com/pub/adobe/acrobatreader/unix/4.x/
-MAINTAINER= dima@FreeBSD.ORG
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.adobe.com/prodindex/acrobat/readstep.html
-RUN_DEPENDS= /compat/linux/lib/libc.so.5:${PORTSDIR}/emulators/linux_lib
+NO_BUILD= yes
-ONLY_FOR_ARCHS= i386
-
-NO_FILTER_SHLIBS= yes
+.if (${MACHINE_ARCH} == "i386")
+.if !exists(/emul/linux/lib/ld-linux.so.2)
+IGNORE=You must have Linux libraries installed - see compat_linux(8)
+.endif
+.endif
+ONLY_FOR_PLATFORM= *-*-i386
WRKSRC= ${WRKDIR}/ILINXR.install
-
-do-build:
- @${ECHO_MSG} "Do a \`make install' as root."
+MESSAGE_SRC= ${PKGDIR}/MESSAGE
+MESSAGE_FILE= ${WRKDIR}/.MESSAGE
do-install:
@${MKDIR} ${PREFIX}/Acrobat4
@ReadInstallDir=${PREFIX}/Acrobat4 ${WRKSRC}/INSTALL
post-install:
+ @${SED} -e 's|$${PREFIX}|${PREFIX}|' ${MESSAGE_SRC} > ${MESSAGE_FILE}
@cd ${PREFIX}/Acrobat4/bin && \
${PATCH} --quiet < ${FILESDIR}/acroread.diff && \
${INSTALL_SCRIPT} ${PREFIX}/Acrobat4/bin/acroread \
${PREFIX}/bin/acroread4 && ${RM} acroread.orig
- @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 "../../mk/bsd.pkg.mk"
diff --git a/print/acroread/files/acroread.diff b/print/acroread/files/acroread.diff
index 7da09ec4606..db6c8dd944b 100644
--- a/print/acroread/files/acroread.diff
+++ b/print/acroread/files/acroread.diff
@@ -5,7 +5,7 @@
export ACRO_CONFIG
;;
- Linux)
-+ FreeBSD|Linux)
++ *BSD|Linux)
ACRO_CONFIG=intellinux
export ACRO_CONFIG
;;
diff --git a/print/acroread/files/md5 b/print/acroread/files/md5
index 74693ea190b..008e376661e 100644
--- a/print/acroread/files/md5
+++ b/print/acroread/files/md5
@@ -1 +1,3 @@
-MD5 (linux-ar-40.tar.gz) = 0074171824df07de4ef047c35d642bf4
+$NetBSD: md5,v 1.2 1999/06/16 11:08:31 sakamoto Exp $
+
+MD5 (linux-ar-40.tar.gz) = 018f4aee79e049095a7b16ed1e7ec925
diff --git a/print/acroread/patches/patch-aa b/print/acroread/patches/patch-aa
index 96af67355cd..8b371e4c9ef 100644
--- a/print/acroread/patches/patch-aa
+++ b/print/acroread/patches/patch-aa
@@ -1,10 +1,12 @@
+$NetBSD: patch-aa,v 1.2 1999/06/16 11:08:31 sakamoto Exp $
+
--- INSTALL.orig Thu Nov 7 00:04:53 1996
+++ INSTALL Wed Nov 20 17:37:14 1996
@@ -117,6 +117,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 )`
-+ elif [ `uname -s` = "FreeBSD" ] ; then
++ elif [ `uname -s|sed -e 's|.*\(...\)|\\1|'` = "BSD" ] ; then
+ size=`ls -lL "$i" | ( read perm links owner group size date ; echo $size )`
else
size=`ls -lLon "$i" | ( read perm links owner size date ; echo $size )`
@@ -32,7 +34,7 @@
DefaultName="Intel/BSDI"
;;
- Linux)
-+ FreeBSD|Linux)
++ *BSD|Linux)
AcroDefaultNum="$AcroIntelLinuxNum"
ExchDefaultNum="$ExchIntelLinuxNum"
ReadDefaultNum="$ReadIntelLinuxNum"
diff --git a/print/acroread/pkg/MESSAGE b/print/acroread/pkg/MESSAGE
new file mode 100644
index 00000000000..65d71745023
--- /dev/null
+++ b/print/acroread/pkg/MESSAGE
@@ -0,0 +1,3 @@
+ Be sure to read the license agreement in
+ ${PREFIX}/Acrobat4/Reader/License.pdf
+
diff --git a/print/acroread/pkg/PLIST b/print/acroread/pkg/PLIST
index 0558d0c923c..cad19f9f590 100644
--- a/print/acroread/pkg/PLIST
+++ b/print/acroread/pkg/PLIST
@@ -1,24 +1,6 @@
-Acrobat4/Browsers/netscape
+@comment $NetBSD: PLIST,v 1.2 1999/06/16 11:08:32 sakamoto Exp $
Acrobat4/Browsers/intellinux/nppdf.so
-Acrobat4/Resource/Font/Arial
-Acrobat4/Resource/Font/Arial-Bold
-Acrobat4/Resource/Font/Arial-BoldItalic
-Acrobat4/Resource/Font/Arial-Italic
-Acrobat4/Resource/Font/Fonts14.upr
-Acrobat4/Resource/Font/TimesNewRoman
-Acrobat4/Resource/Font/TimesNewRoman-Bold
-Acrobat4/Resource/Font/TimesNewRoman-BoldItalic
-Acrobat4/Resource/Font/TimesNewRoman-Italic
-Acrobat4/Resource/Font/AdobeSansMM
-Acrobat4/Resource/Font/AdobeSansMM.MMM
-Acrobat4/Resource/Font/AdobeSerifMM
-Acrobat4/Resource/Font/AdobeSerifMM.MMM
-Acrobat4/Resource/Font/Courier
-Acrobat4/Resource/Font/Courier-Bold
-Acrobat4/Resource/Font/Courier-BoldOblique
-Acrobat4/Resource/Font/Courier-Oblique
-Acrobat4/Resource/Font/Symbol
-Acrobat4/Resource/Font/ZapfDingbats
+Acrobat4/Browsers/netscape
Acrobat4/Reader/AcroVersion
Acrobat4/Reader/Acrobat.pdf
Acrobat4/Reader/License.pdf
@@ -36,31 +18,46 @@ 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/optional/ConfigSuite.api
-Acrobat4/Reader/intellinux/optional/Exerciser.api
-Acrobat4/Reader/intellinux/optional/GeneralSuite.api
-Acrobat4/Reader/intellinux/optional/MiscSuite.api
-Acrobat4/Reader/intellinux/plug_ins/AFString.js
-Acrobat4/Reader/intellinux/plug_ins/AForm.js
Acrobat4/Reader/intellinux/plug_ins/AcroForm.api
Acrobat4/Reader/intellinux/plug_ins/Highlight.api
+Acrobat4/Reader/intellinux/plug_ins/JavaScripts/AFStrENU.js
+Acrobat4/Reader/intellinux/plug_ins/JavaScripts/AForm.js
Acrobat4/Reader/intellinux/plug_ins/ewh.api
Acrobat4/Reader/intellinux/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/Resource/Font/AdobeSansMM
+Acrobat4/Resource/Font/AdobeSansMM.MMM
+Acrobat4/Resource/Font/AdobeSerifMM
+Acrobat4/Resource/Font/AdobeSerifMM.MMM
+Acrobat4/Resource/Font/Arial
+Acrobat4/Resource/Font/Arial-Bold
+Acrobat4/Resource/Font/Arial-BoldItalic
+Acrobat4/Resource/Font/Arial-Italic
+Acrobat4/Resource/Font/Courier
+Acrobat4/Resource/Font/Courier-Bold
+Acrobat4/Resource/Font/Courier-BoldOblique
+Acrobat4/Resource/Font/Courier-Oblique
+Acrobat4/Resource/Font/Fonts14.upr
+Acrobat4/Resource/Font/Symbol
+Acrobat4/Resource/Font/TimesNewRoman
+Acrobat4/Resource/Font/TimesNewRoman-Bold
+Acrobat4/Resource/Font/TimesNewRoman-BoldItalic
+Acrobat4/Resource/Font/TimesNewRoman-Italic
+Acrobat4/Resource/Font/ZapfDingbats
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 echo "Be sure to read the license agreement in"
-@exec echo "%D/Acrobat4/Reader/License.pdf"
@dirrm Acrobat4/bin
+@dirrm Acrobat4/Resource/Font
+@dirrm Acrobat4/Resource
@dirrm Acrobat4/Reader/res
-@dirrm Acrobat4/Reader/intellinux/optional
+@dirrm Acrobat4/Reader/intellinux/plug_ins/JavaScripts
@dirrm Acrobat4/Reader/intellinux/plug_ins
@dirrm Acrobat4/Reader/intellinux/lib
@dirrm Acrobat4/Reader/intellinux/bin
@@ -68,8 +65,6 @@ bin/acroread4
@dirrm Acrobat4/Reader/intellinux
@dirrm Acrobat4/Reader/help
@dirrm Acrobat4/Reader
-@dirrm Acrobat4/Resource/Font
-@dirrm Acrobat4/Resource
@dirrm Acrobat4/Browsers/intellinux
@dirrm Acrobat4/Browsers
@dirrm Acrobat4