summaryrefslogtreecommitdiff
path: root/mk/emulator/linux.mk
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2012-06-16 14:21:25 +0000
committerobache <obache@pkgsrc.org>2012-06-16 14:21:25 +0000
commite020fecef89edfd5a61354f4c60fb4ab8e517a25 (patch)
treebed22905d5fc319b79650891ad7124b71cf024c4 /mk/emulator/linux.mk
parentdab655945ed1d994fd619a330f8a0b123ef42537 (diff)
downloadpkgsrc-e020fecef89edfd5a61354f4c60fb4ab8e517a25.tar.gz
switch to SUSE_PREFER=12.1 for NetBSD>=6.
Diffstat (limited to 'mk/emulator/linux.mk')
-rw-r--r--mk/emulator/linux.mk15
1 files changed, 8 insertions, 7 deletions
diff --git a/mk/emulator/linux.mk b/mk/emulator/linux.mk
index 51c094d6d53..a7d4ea16972 100644
--- a/mk/emulator/linux.mk
+++ b/mk/emulator/linux.mk
@@ -1,4 +1,4 @@
-# $NetBSD: linux.mk,v 1.17 2012/04/18 06:17:24 obache Exp $
+# $NetBSD: linux.mk,v 1.18 2012/06/16 14:21:25 obache Exp $
#
# Linux binary emulation framework
#
@@ -12,14 +12,15 @@ EMUL_TYPE.linux?= none
.else
# NetBSD 5.99.50 or later default to 11.3, otherwise 10.0
-.if ${OPSYS} == "NetBSD" && ${EMUL_ARCH} != "powerpc" && \
- (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]*))
+.if ${OPSYS} == "NetBSD" && ${EMUL_ARCH} != "powerpc"
+. if empty(OS_VERSION:M[0-5].*)
+SUSE_PREFER?= 12.1
+. elif !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
.endif
+SUSE_PREFER?= 10.0
.for _version_ in ${EMUL_REQD:Msuse>=*:S/suse>=//}
SUSE_VERSION_REQD?= ${_version_}