summaryrefslogtreecommitdiff
path: root/lang/STk/Makefile
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1998-07-21 14:58:43 +0000
committeragc <agc@pkgsrc.org>1998-07-21 14:58:43 +0000
commit4b5770a30a6ae0df04a9f3eb8f3e851afe8be886 (patch)
tree55f2dff54385d7b23f14995530611bf9cf77a714 /lang/STk/Makefile
parent5d141b41f7f0ce10f8e3ba3cb234ba7c948c2790 (diff)
downloadpkgsrc-4b5770a30a6ae0df04a9f3eb8f3e851afe8be886.tar.gz
Remove hardcoded Operating system name, version, and machine architecture
from the PLIST.
Diffstat (limited to 'lang/STk/Makefile')
-rw-r--r--lang/STk/Makefile17
1 files changed, 16 insertions, 1 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"