summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorabs <abs>2011-09-09 21:01:36 +0000
committerabs <abs>2011-09-09 21:01:36 +0000
commite51152c699cd2b614569a74c737440ce3665ee71 (patch)
treea33ef08c9ada9f2f0e68fe613733d017ff7d5e1a /mk
parent655cd217faaab53765d3ab8ad87015a4ab6fad86 (diff)
downloadpkgsrc-e51152c699cd2b614569a74c737440ce3665ee71.tar.gz
If SUSE_PREFER is > than EMUL_REQD, then use SUSE_PREFER
Diffstat (limited to 'mk')
-rw-r--r--mk/emulator/linux.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/emulator/linux.mk b/mk/emulator/linux.mk
index b29d5a8bac9..ad8f8286100 100644
--- a/mk/emulator/linux.mk
+++ b/mk/emulator/linux.mk
@@ -1,4 +1,4 @@
-# $NetBSD: linux.mk,v 1.10 2011/09/08 21:04:59 abs Exp $
+# $NetBSD: linux.mk,v 1.11 2011/09/09 21:01:36 abs Exp $
#
# Linux binary emulation framework
#
@@ -19,7 +19,9 @@ SUSE_PREFER?= 10.0
.for _version_ in ${EMUL_REQD:Msuse>=*:S/suse>=//}
SUSE_VERSION_REQD?= ${_version_}
.endfor
-SUSE_VERSION_REQD?= ${SUSE_PREFER}
+.if !defined(SUSE_VERSION_REQD) || ${SUSE_PREFER} > ${SUSE_VERSION_REQD}
+SUSE_VERSION_REQD= ${SUSE_PREFER}
+.endif
EMUL_TYPE.linux?= suse-${SUSE_VERSION_REQD}
.endif