summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2014-08-22 17:24:28 +0000
committertron <tron@pkgsrc.org>2014-08-22 17:24:28 +0000
commitae20200efed46b543831d1459e87bfd67e80ea54 (patch)
treef1068950734959b8fb5bd3830e62fa6d45cffed3 /mk
parente959f15985c914a1aa49a67e2ac8468ae9266a82 (diff)
downloadpkgsrc-ae20200efed46b543831d1459e87bfd67e80ea54.tar.gz
Default to Suse 13.1 packages under NetBSD 7.0_BETA and newer.
Diffstat (limited to 'mk')
-rw-r--r--mk/emulator/linux.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/mk/emulator/linux.mk b/mk/emulator/linux.mk
index ef075478255..2b3e1c63d35 100644
--- a/mk/emulator/linux.mk
+++ b/mk/emulator/linux.mk
@@ -1,4 +1,4 @@
-# $NetBSD: linux.mk,v 1.25 2014/04/17 00:08:34 wiz Exp $
+# $NetBSD: linux.mk,v 1.26 2014/08/22 17:24:28 tron Exp $
#
# Linux binary emulation framework
#
@@ -11,9 +11,13 @@ EMUL_TYPE.linux?= none
. endif
.else
-# NetBSD 6 or later default to 12.1, otherwise 10.0
+# Pick appropriate SuSE Linux version for NetBSD amd64 and i386.
.if ${OPSYS} == "NetBSD" && ${EMUL_ARCH} != "powerpc"
-. if empty(OS_VERSION:M[0-5].*)
+# Use 13.1 under NetBSD 7.* and newer,
+. if empty(OS_VERSION:M[0-6].*)
+SUSE_PREFER?= 13.1
+# 12.1 under NetBSD 6.*, and 10.0 otherwise.
+. elif empty(OS_VERSION:M[0-5].*)
SUSE_PREFER?= 12.1
. endif
.endif