summaryrefslogtreecommitdiff
path: root/lang/STk
diff options
context:
space:
mode:
authoragc <agc>1998-07-21 14:58:43 +0000
committeragc <agc>1998-07-21 14:58:43 +0000
commitc04e2f463be32486e3acc5765d2924cbc1b8ea78 (patch)
tree55f2dff54385d7b23f14995530611bf9cf77a714 /lang/STk
parent8c59e1fbcbfe934ff37b366c7da60e4043b3f9c6 (diff)
downloadpkgsrc-c04e2f463be32486e3acc5765d2924cbc1b8ea78.tar.gz
Remove hardcoded Operating system name, version, and machine architecture
from the PLIST.
Diffstat (limited to 'lang/STk')
-rw-r--r--lang/STk/Makefile17
-rw-r--r--lang/STk/pkg/PLIST24
2 files changed, 28 insertions, 13 deletions
diff --git a/lang/STk/Makefile b/lang/STk/Makefile
index d812843ea98..264784013d0 100644
--- a/lang/STk/Makefile
+++ b/lang/STk/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 1998/07/02 20:47:45 perry Exp $
+# $NetBSD: Makefile,v 1.3 1998/07/21 14:58:43 agc Exp $
#
DISTNAME= STk-3.99.2
@@ -9,4 +9,19 @@ MAINTAINER= perry@NetBSD.ORG
GNU_CONFIGURE= yes
+PLIST_SRC= ${WRKDIR}/PLIST.tmp
+
+.include "../../mk/bsd.prefs.mk"
+
+.ifndef OPSYS
+OPSYS!= uname -s
+.endif
+
+OS_VERSION!= uname -r
+
+pre-install:
+ @${SED} -e 's|\$${OS_VERSION}|${OS_VERSION}|g' \
+ -e 's|\$${OPSYS}|${OPSYS}|g' \
+ ${PKGDIR}/PLIST > ${PLIST_SRC}
+
.include "../../mk/bsd.pkg.mk"
diff --git a/lang/STk/pkg/PLIST b/lang/STk/pkg/PLIST
index a2c26844c55..64de3ae32e8 100644
--- a/lang/STk/pkg/PLIST
+++ b/lang/STk/pkg/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 1998/07/02 20:43:19 perry Exp $
+@comment $NetBSD: PLIST,v 1.2 1998/07/21 14:58:44 agc Exp $
bin/snow
bin/snow-3.99.2
bin/stk
@@ -256,16 +256,16 @@ lib/stk/3.99.2/Images/vlines2
lib/stk/3.99.2/Images/vlines3
lib/stk/3.99.2/Images/warning
lib/stk/3.99.2/Images/warning.xpm
-lib/stk/3.99.2/NetBSD-1.3F-i386/hash.so
-lib/stk/3.99.2/NetBSD-1.3F-i386/html.so
-lib/stk/3.99.2/NetBSD-1.3F-i386/jpeg.so
-lib/stk/3.99.2/NetBSD-1.3F-i386/pixmap.so
-lib/stk/3.99.2/NetBSD-1.3F-i386/posix.so
-lib/stk/3.99.2/NetBSD-1.3F-i386/process.so
-lib/stk/3.99.2/NetBSD-1.3F-i386/snow
-lib/stk/3.99.2/NetBSD-1.3F-i386/socket.so
-lib/stk/3.99.2/NetBSD-1.3F-i386/sregexp.so
-lib/stk/3.99.2/NetBSD-1.3F-i386/stk
+lib/stk/3.99.2/${OPSYS}-${OS_VERSION}-${MACHINE_GNU_ARCH}/hash.so
+lib/stk/3.99.2/${OPSYS}-${OS_VERSION}-${MACHINE_GNU_ARCH}/html.so
+lib/stk/3.99.2/${OPSYS}-${OS_VERSION}-${MACHINE_GNU_ARCH}/jpeg.so
+lib/stk/3.99.2/${OPSYS}-${OS_VERSION}-${MACHINE_GNU_ARCH}/pixmap.so
+lib/stk/3.99.2/${OPSYS}-${OS_VERSION}-${MACHINE_GNU_ARCH}/posix.so
+lib/stk/3.99.2/${OPSYS}-${OS_VERSION}-${MACHINE_GNU_ARCH}/process.so
+lib/stk/3.99.2/${OPSYS}-${OS_VERSION}-${MACHINE_GNU_ARCH}/snow
+lib/stk/3.99.2/${OPSYS}-${OS_VERSION}-${MACHINE_GNU_ARCH}/socket.so
+lib/stk/3.99.2/${OPSYS}-${OS_VERSION}-${MACHINE_GNU_ARCH}/sregexp.so
+lib/stk/3.99.2/${OPSYS}-${OS_VERSION}-${MACHINE_GNU_ARCH}/stk
lib/stk/3.99.2/STk/Balloon.stklos
lib/stk/3.99.2/STk/Basics.stklos
lib/stk/3.99.2/STk/Button.stklos
@@ -434,7 +434,7 @@ lib/stk/man
@dirrm lib/stk/3.99.2/man
@dirrm lib/stk/3.99.2/STk/Match
@dirrm lib/stk/3.99.2/STk
-@dirrm lib/stk/3.99.2/NetBSD-1.3F-i386
+@dirrm lib/stk/3.99.2/${OPSYS}-${OS_VERSION}-${MACHINE_GNU_ARCH}
@dirrm lib/stk/3.99.2/Images
@dirrm lib/stk/3.99.2/Help/Img
@dirrm lib/stk/3.99.2/Help