diff options
author | joerg <joerg> | 2007-10-13 19:38:53 +0000 |
---|---|---|
committer | joerg <joerg> | 2007-10-13 19:38:53 +0000 |
commit | 6e008f0d13cf1cc91af652a5d57b3cc5833f08cc (patch) | |
tree | dae1d044fad4ac4534da3f0213cb0177474e0018 | |
parent | d9605c51bfb0acf6b9860075bc1bcb21949b3103 (diff) | |
download | pkgsrc-6e008f0d13cf1cc91af652a5d57b3cc5833f08cc.tar.gz |
Ignore post-hyphen parts of the Linux kernel version similiar to
DragonFly and FreeBSD. It seems like Linux people love those...
This addresses the first part of PR 37100.
-rw-r--r-- | mk/bsd.prefs.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index 15e2666d0b1..448db00899f 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.269 2007/10/05 21:03:39 rillig Exp $ +# $NetBSD: bsd.prefs.mk,v 1.270 2007/10/13 19:38:53 joerg Exp $ # # This file includes the mk.conf file, which contains the user settings. # @@ -177,6 +177,8 @@ LOWER_OPSYS?= irix${OS_VERSION} LOWER_VENDOR?= sgi .elif ${OPSYS} == "Linux" +OS_VERSION:= ${OS_VERSION:C/-.*$//} +LOWER_OS_VERSION:= ${LOWER_OS_VERSION_CMD:C/-.*$//} LOWER_OPSYS?= linux MACHINE_ARCH:= ${MACHINE_ARCH:C/i.86/i386/} MACHINE_ARCH:= ${MACHINE_ARCH:C/ppc/powerpc/} |