summaryrefslogtreecommitdiff
path: root/mk/bsd.prefs.mk
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-07-30 14:07:07 +0000
committerjoerg <joerg@pkgsrc.org>2007-07-30 14:07:07 +0000
commita13b98431e92acf9f5324d61f4e921ae62fe8df4 (patch)
tree1bc591c54b2a2c92d91ac1ad035dc6ebb41cddda /mk/bsd.prefs.mk
parentbe1fd7ed4152fb032e42823b499f18f2a1b8a3b9 (diff)
downloadpkgsrc-a13b98431e92acf9f5324d61f4e921ae62fe8df4.tar.gz
Use variable substitution instead of calling external cut to
compute LOWER_OPSYS_VERSUFFIX.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r--mk/bsd.prefs.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index d8e6c9939d8..319d8d23563 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.256 2007/07/29 18:27:05 joerg Exp $
+# $NetBSD: bsd.prefs.mk,v 1.257 2007/07/30 14:07:07 joerg Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -120,7 +120,7 @@ LOWER_OPSYS?= darwin
LOWER_ARCH!= ${UNAME} -p
MACHINE_ARCH= ${LOWER_ARCH}
MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH:Q}
-LOWER_OPSYS_VERSUFFIX!= echo ${LOWER_OS_VERSION} | ${CUT} -c -1
+LOWER_OPSYS_VERSUFFIX= ${LOWER_OS_VERSION:C/([0-9]*).*/\1/}
LOWER_VENDOR?= apple
.elif ${OPSYS} == "DragonFly"
@@ -141,7 +141,7 @@ MACHINE_ARCH= x86_64
MACHINE_ARCH= ${LOWER_ARCH}
. endif
MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH:Q}
-LOWER_OPSYS_VERSUFFIX!= echo ${LOWER_OS_VERSION} | ${CUT} -c -1
+LOWER_OPSYS_VERSUFFIX= ${LOWER_OS_VERSION:C/([0-9]*).*/\1/}
. if ${LOWER_ARCH} == "i386"
LOWER_VENDOR?= pc
. endif