summaryrefslogtreecommitdiff
path: root/mk/emulator/linux-suse.mk
diff options
context:
space:
mode:
authorjlam <jlam>2007-08-23 18:20:30 +0000
committerjlam <jlam>2007-08-23 18:20:30 +0000
commit854055381754e3e5a3da436cd9bc742eb4783ac0 (patch)
treec6706bd84a98810ed13e7d11701dcd7444995ccb /mk/emulator/linux-suse.mk
parentcebfe5e3735b7f75ba1e125d6d65d293f59ee799 (diff)
downloadpkgsrc-854055381754e3e5a3da436cd9bc742eb4783ac0.tar.gz
Allow a nicer syntax for expressing needing at least a certain version
of an emulated operating system. Instead of proliferating things like SUSE_VERSION_REQD, NETBSD_VERSION_REQD, SOLARIS_VERSION_REQD, etc., a package can say: EMUL_REQD= suse>=9.1 netbsd>=2.0 solaris>=10 all in one, succinct line.
Diffstat (limited to 'mk/emulator/linux-suse.mk')
-rw-r--r--mk/emulator/linux-suse.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/emulator/linux-suse.mk b/mk/emulator/linux-suse.mk
index bc181cf4614..9529695ee48 100644
--- a/mk/emulator/linux-suse.mk
+++ b/mk/emulator/linux-suse.mk
@@ -1,9 +1,12 @@
-# $NetBSD: linux-suse.mk,v 1.1 2007/07/29 05:19:42 jlam Exp $
+# $NetBSD: linux-suse.mk,v 1.2 2007/08/23 18:20:32 jlam Exp $
#
# SuSE Linux
#
# Most Linux software only need suse>=6.4.
+.for _version_ in ${EMUL_REQD:Msuse>=*:S/suse>=//}
+SUSE_VERSION_REQD?= ${_version_}
+.endfor
SUSE_VERSION_REQD?= 6.4
# When building the SuSE packages, force the Linux type to be the specific