diff options
author | joerg <joerg@pkgsrc.org> | 2007-10-13 19:38:53 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-10-13 19:38:53 +0000 |
commit | 0b4fba23f91615f2e0e4164551fba6f8d7a67ae2 (patch) | |
tree | dae1d044fad4ac4534da3f0213cb0177474e0018 | |
parent | 095814e7599a0859b24fd1b2bc500c019f6dced1 (diff) | |
download | pkgsrc-0b4fba23f91615f2e0e4164551fba6f8d7a67ae2.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/} |