diff options
author | tron <tron@pkgsrc.org> | 2001-09-24 09:48:31 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2001-09-24 09:48:31 +0000 |
commit | 85ee00aa9d4e64be8c07fc0418462d6305d83ca6 (patch) | |
tree | f16e4383b02a5b80d34ec03eaf244a4ee2488f69 | |
parent | bc1aa94690dfdbc2b2f2ccacb1b656bc3ceb1b6a (diff) | |
download | pkgsrc-85ee00aa9d4e64be8c07fc0418462d6305d83ca6.tar.gz |
Add "PKGVERSION" to "PLIST_SUBST" by default. Trailing package source
version numbers (e.g. "nb1") are automatically removed.
-rw-r--r-- | mk/bsd.pkg.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 4a32deb40dd..38559687d8c 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.812 2001/09/14 18:54:43 jlam Exp $ +# $NetBSD: bsd.pkg.mk,v 1.813 2001/09/24 09:48:31 tron Exp $ # # This file is in the public domain. # @@ -511,6 +511,7 @@ PLIST_SUBST+= OPSYS=${OPSYS} \ MACHINE_GNU_ARCH=${MACHINE_GNU_ARCH} \ MACHINE_GNU_PLATFORM=${MACHINE_GNU_PLATFORM} \ PKGLOCALEDIR=${PKGLOCALEDIR} \ + PKGVERSION=${PKGNAME:C/nb[0-9]*$//} \ LOWER_VENDOR=${LOWER_VENDOR} \ LOWER_OPSYS=${LOWER_OPSYS} \ PKGNAME=${PKGNAME} \ |