summaryrefslogtreecommitdiff
path: root/mk/emulator/darwin.mk
diff options
context:
space:
mode:
authorjlam <jlam>2007-08-01 16:28:08 +0000
committerjlam <jlam>2007-08-01 16:28:08 +0000
commit5b9f2eef78ac6e326ecd3a7684a0951b9d1bfa1e (patch)
treec94dc724eaf481131c6d47457aedd727fea132e9 /mk/emulator/darwin.mk
parent8a85fb6f2528a8595e7884eb14d27d04c56c1b89 (diff)
downloadpkgsrc-5b9f2eef78ac6e326ecd3a7684a0951b9d1bfa1e.tar.gz
Support automatically using pkgsrc/emulators/darwin_lib to satisfy
EMUL_PLATFORMs darwin-i386 and darwin-powerpc.
Diffstat (limited to 'mk/emulator/darwin.mk')
-rw-r--r--mk/emulator/darwin.mk44
1 files changed, 44 insertions, 0 deletions
diff --git a/mk/emulator/darwin.mk b/mk/emulator/darwin.mk
new file mode 100644
index 00000000000..caad9ccb55c
--- /dev/null
+++ b/mk/emulator/darwin.mk
@@ -0,0 +1,44 @@
+# $NetBSD: darwin.mk,v 1.1 2007/08/01 16:28:08 jlam Exp $
+#
+# Darwin (Mac OS X) binary emulation framework
+#
+
+.if !empty(OPSYS:MDarwin*)
+EMUL_TYPE.darwin?= native
+.else
+EMUL_TYPE.darwin?= opendarwin
+.endif
+EMUL_MODULES.darwin?= # empty
+
+EMULSUBDIR= emul/darwin
+EMULDIR= ${PREFIX}/${EMULSUBDIR}
+OPSYS_EMULDIR= ${_OPSYS_EMULDIR.darwin}
+
+# _EMUL_TYPES
+# List of recognized Darwin types that a user may request.
+#
+# _EMUL_MODULES
+# List of recognized Darwin "modules" that packages may request.
+#
+_EMUL_TYPES= builtin
+_EMUL_TYPES+= native
+_EMUL_TYPES+= opendarwin
+_EMUL_TYPE?= ${EMUL_TYPE.darwin}
+
+_EMUL_MODULES= # empty
+
+.if ${_EMUL_TYPE} == "builtin"
+EMUL_DISTRO= builtin-darwin # managed outside pkgsrc
+.elif ${_EMUL_TYPE} == "native"
+EMUL_DISTRO= native-darwin # native OSF/1 (Tru64)
+EMULDIR= ${PREFIX}
+EMULSUBDIR= # empty
+.else
+. include "${PKGSRCDIR}/mk/emulator/darwin-${_EMUL_TYPE}.mk"
+.endif
+
+.if (${_EMUL_TYPE} == "builtin") || (${_EMUL_TYPE} == "native")
+. for _mod_ in ${_EMUL_MODULES}
+DEPENDS_${EMUL_DISTRO}.${_mod_}?= # empty
+. endfor
+.endif