summaryrefslogtreecommitdiff
path: root/mk/emulator
diff options
context:
space:
mode:
authorabs <abs>2011-09-08 21:04:59 +0000
committerabs <abs>2011-09-08 21:04:59 +0000
commit0d466d1613fc3566f7fa28a788ddc18c0a0b0fc9 (patch)
tree5e7c923064888d269cf162b403c864733de1d831 /mk/emulator
parentaab768aeaf86750163b100f09df7dc1cb673eba9 (diff)
downloadpkgsrc-0d466d1613fc3566f7fa28a788ddc18c0a0b0fc9.tar.gz
Default NetBSD-5.99.50 and later to SUSE_PREFER 11.3 else 10.0
Diffstat (limited to 'mk/emulator')
-rw-r--r--mk/emulator/linux.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/mk/emulator/linux.mk b/mk/emulator/linux.mk
index ecd812f8ed4..b29d5a8bac9 100644
--- a/mk/emulator/linux.mk
+++ b/mk/emulator/linux.mk
@@ -1,4 +1,4 @@
-# $NetBSD: linux.mk,v 1.9 2011/09/06 17:48:24 abs Exp $
+# $NetBSD: linux.mk,v 1.10 2011/09/08 21:04:59 abs Exp $
#
# Linux binary emulation framework
#
@@ -7,6 +7,15 @@
EMUL_TYPE.linux?= native
.else
+# NetBSD 5.99.50 or later default to 11.3, otherwise 10.0
+.if ${OPSYS} == "NetBSD" && (empty(OS_VERSION:M[0-5].*) || \
+ !empty(OS_VERSION:M5.99.[5-9][0-9]) || \
+ !empty(OS_VERSION:M5.99.[0-9][0-9][0-9]*))
+SUSE_PREFER?= 11.3
+.else
+SUSE_PREFER?= 10.0
+.endif
+
.for _version_ in ${EMUL_REQD:Msuse>=*:S/suse>=//}
SUSE_VERSION_REQD?= ${_version_}
.endfor