From 1fd97ab91221e1ff63e50a2e29ef0fd8f59ffa48 Mon Sep 17 00:00:00 2001 From: agc Date: Mon, 2 Aug 1999 10:57:53 +0000 Subject: Make this package work on Solaris. --- print/acroread/Makefile | 20 +++++++++++++--- print/acroread/files/md5 | 3 ++- print/acroread/pkg/PLIST | 60 ++++++++++++++++++++++++------------------------ 3 files changed, 49 insertions(+), 34 deletions(-) diff --git a/print/acroread/Makefile b/print/acroread/Makefile index 12e456b7e28..fc948746ba3 100644 --- a/print/acroread/Makefile +++ b/print/acroread/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 1999/07/15 12:27:36 kleink Exp $ +# $NetBSD: Makefile,v 1.6 1999/08/02 10:57:53 agc Exp $ # FreeBSD Id: Makefile,v 1.13 1999/04/08 07:49:18 dima Exp $ PKGNAME= acroread-4.0 @@ -13,6 +13,9 @@ RESTRICTED= "Original installer required to redistribute." NO_BUILD= YES +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "NetBSD" .if (${MACHINE_ARCH} == "i386") .if !exists(/emul/linux/lib/ld-linux.so.1) IGNORE= requires Linux glibc2 libraries - see compat_linux(8) @@ -31,11 +34,22 @@ DISTNAME= linux-ar-40 .else DISTNAME= ${PKGNAME} .endif - ONLY_FOR_PLATFORM= *-*-i386 +PLATFORM= intellinux # *-*-alpha *-*-sparc - WRKSRC= ${WRKDIR}/ILINXR.install +.elif ${OPSYS} == "SunOS" +DISTNAME= sunsparc-arws-40 +WRKSRC= ${WRKDIR}/SSOLRS.install +PLATFORM= sparcsolaris +post-patch: + ${CHMOD} -R o+rwx ${WRKSRC} +.endif + +PLIST_SRC= ${WRKDIR}/PLIST-src + +pre-install: + ${SED} -e 's|@PLATFORM@|${PLATFORM}|g' ${PKGDIR}/PLIST > ${PLIST_SRC} do-install: @${MKDIR} ${PREFIX}/Acrobat4 diff --git a/print/acroread/files/md5 b/print/acroread/files/md5 index 008e376661e..65d2dd03be7 100644 --- a/print/acroread/files/md5 +++ b/print/acroread/files/md5 @@ -1,3 +1,4 @@ -$NetBSD: md5,v 1.2 1999/06/16 11:08:31 sakamoto Exp $ +$NetBSD: md5,v 1.3 1999/08/02 10:57:54 agc Exp $ MD5 (linux-ar-40.tar.gz) = 018f4aee79e049095a7b16ed1e7ec925 +MD5 (sunsparc-arws-40.tar.gz) = 73e8ac1478f7ab1a3961d524808b6182 diff --git a/print/acroread/pkg/PLIST b/print/acroread/pkg/PLIST index cad19f9f590..5c3cde3f5c1 100644 --- a/print/acroread/pkg/PLIST +++ b/print/acroread/pkg/PLIST @@ -1,5 +1,5 @@ -@comment $NetBSD: PLIST,v 1.2 1999/06/16 11:08:32 sakamoto Exp $ -Acrobat4/Browsers/intellinux/nppdf.so +@comment $NetBSD: PLIST,v 1.3 1999/08/02 10:57:54 agc Exp $ +Acrobat4/Browsers/@PLATFORM@/nppdf.so Acrobat4/Browsers/netscape Acrobat4/Reader/AcroVersion Acrobat4/Reader/Acrobat.pdf @@ -7,23 +7,23 @@ 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/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/@PLATFORM@/app-defaults/AcroRead +Acrobat4/Reader/@PLATFORM@/bin/acroread +Acrobat4/Reader/@PLATFORM@/lib/XKeysymDB +Acrobat4/Reader/@PLATFORM@/lib/libAGM.so +Acrobat4/Reader/@PLATFORM@/lib/libAGM.so.3.0 +Acrobat4/Reader/@PLATFORM@/lib/libCoolType.so +Acrobat4/Reader/@PLATFORM@/lib/libCoolType.so.1.0 +Acrobat4/Reader/@PLATFORM@/lib/libICC.so +Acrobat4/Reader/@PLATFORM@/lib/libICC.so.1.0 +Acrobat4/Reader/@PLATFORM@/lib/libreadcore.so +Acrobat4/Reader/@PLATFORM@/lib/libreadcore.so.4.0 +Acrobat4/Reader/@PLATFORM@/plug_ins/AcroForm.api +Acrobat4/Reader/@PLATFORM@/plug_ins/Highlight.api +Acrobat4/Reader/@PLATFORM@/plug_ins/JavaScripts/AFStrENU.js +Acrobat4/Reader/@PLATFORM@/plug_ins/JavaScripts/AForm.js +Acrobat4/Reader/@PLATFORM@/plug_ins/ewh.api +Acrobat4/Reader/@PLATFORM@/plug_ins/wwwlink.api Acrobat4/Reader/res/splashScreen11R.xbm Acrobat4/Reader/res/splashScreen18R.xpm Acrobat4/Reader/res/splashScreen21.xbm @@ -49,22 +49,22 @@ 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 ln -sf ../../Resource/Font/ %D/Acrobat4/Reader/@PLATFORM@/fonts +@unexec rm -f %D/Acrobat4/Reader/@PLATFORM@/fonts +@exec ln -sf ../../res %D/Acrobat4/Reader/@PLATFORM@/res +@unexec rm -f %D/Acrobat4/Reader/@PLATFORM@/res @dirrm Acrobat4/bin @dirrm Acrobat4/Resource/Font @dirrm Acrobat4/Resource @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 +@dirrm Acrobat4/Reader/@PLATFORM@/plug_ins/JavaScripts +@dirrm Acrobat4/Reader/@PLATFORM@/plug_ins +@dirrm Acrobat4/Reader/@PLATFORM@/lib +@dirrm Acrobat4/Reader/@PLATFORM@/bin +@dirrm Acrobat4/Reader/@PLATFORM@/app-defaults +@dirrm Acrobat4/Reader/@PLATFORM@ @dirrm Acrobat4/Reader/help @dirrm Acrobat4/Reader -@dirrm Acrobat4/Browsers/intellinux +@dirrm Acrobat4/Browsers/@PLATFORM@ @dirrm Acrobat4/Browsers @dirrm Acrobat4 -- cgit v1.2.3