diff options
-rw-r--r-- | mk/emulator/linux.mk | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/mk/emulator/linux.mk b/mk/emulator/linux.mk index bdc3f70a0ac..858f030271d 100644 --- a/mk/emulator/linux.mk +++ b/mk/emulator/linux.mk @@ -1,10 +1,14 @@ -# $NetBSD: linux.mk,v 1.13 2012/01/18 00:37:46 sbd Exp $ +# $NetBSD: linux.mk,v 1.14 2012/01/18 00:52:20 sbd Exp $ # # Linux binary emulation framework # .if ${OPSYS} == "Linux" +. if ${EMUL_ARCH} == ${MACHINE_ARCH} EMUL_TYPE.linux?= native +. else +EMUL_TYPE.linux?= none +. endif .else # NetBSD 5.99.50 or later default to 11.3, otherwise 10.0 @@ -86,6 +90,9 @@ _EMUL_MODULES+= xml2 .if ${_EMUL_TYPE} == "builtin" EMUL_DISTRO= builtin-linux # managed outside pkgsrc +.elif ${_EMUL_TYPE} == "none" +EMUL_DISTRO= none +NOT_FOR_PLATFORM= Linux-*-${MACHINE_ARCH} .elif ${_EMUL_TYPE} == "native" EMUL_DISTRO= native-linux # native Linux installation EMULDIR= ${PREFIX} @@ -94,7 +101,8 @@ EMULSUBDIR= # empty . include "linux-${_EMUL_TYPE}.mk" .endif -.if (${_EMUL_TYPE} == "builtin") || (${_EMUL_TYPE} == "native") +.if (${_EMUL_TYPE} == "builtin") || (${_EMUL_TYPE} == "native") || \ + (${_EMUL_TYPE} == "none") . for _mod_ in ${_EMUL_MODULES} DEPENDS_${EMUL_DISTRO}.${_mod_}= # empty . endfor |