summaryrefslogtreecommitdiff
path: root/mk/emulator
diff options
context:
space:
mode:
authorsno <sno@pkgsrc.org>2009-03-22 22:31:46 +0000
committersno <sno@pkgsrc.org>2009-03-22 22:31:46 +0000
commit1b20e5935026ed765abb2f3866a7ee717b557041 (patch)
treeffa5ef01aa2c6a46c9a646f04e51e1c6da380ae1 /mk/emulator
parent65566cd819b9f11dc6ac89287a6ab5d4c55caa2f (diff)
downloadpkgsrc-1b20e5935026ed765abb2f3866a7ee717b557041.tar.gz
Add the required mk/emulator plugin for AIX binary only packages.
Oked by joerg@
Diffstat (limited to 'mk/emulator')
-rw-r--r--mk/emulator/aix.mk43
1 files changed, 43 insertions, 0 deletions
diff --git a/mk/emulator/aix.mk b/mk/emulator/aix.mk
new file mode 100644
index 00000000000..4c8fcbcb5fd
--- /dev/null
+++ b/mk/emulator/aix.mk
@@ -0,0 +1,43 @@
+# $NetBSD: aix.mk,v 1.1 2009/03/22 22:31:46 sno Exp $
+#
+# AIX binary emulation framework
+#
+
+.if !empty(OPSYS:MAIX*)
+EMUL_TYPE.aix?= native
+.else
+EMUL_TYPE.aix?= builtin
+.endif
+EMUL_MODULES.aix?= # empty
+
+EMULSUBDIR= emul/aix
+EMULDIR= ${PREFIX}/${EMULSUBDIR}
+OPSYS_EMULDIR= ${_OPSYS_EMULDIR.aix}
+
+# _EMUL_TYPES
+# List of recognized AIX types that a user may request.
+#
+# _EMUL_MODULES
+# List of recognized AIX "modules" that packages may request.
+#
+_EMUL_TYPES= builtin
+_EMUL_TYPES+= native
+_EMUL_TYPE?= ${EMUL_TYPE.aix}
+
+_EMUL_MODULES= # empty
+
+.if ${_EMUL_TYPE} == "builtin"
+EMUL_DISTRO= builtin-aix # managed outside pkgsrc
+.elif ${_EMUL_TYPE} == "native"
+EMUL_DISTRO= native-aix # native AIX installation
+EMULDIR= ${PREFIX}
+EMULSUBDIR= # empty
+.else
+. include "aix-${_EMUL_TYPE}.mk"
+.endif
+
+.if (${_EMUL_TYPE} == "builtin") || (${_EMUL_TYPE} == "native")
+. for _mod_ in ${_EMUL_MODULES}
+DEPENDS_${EMUL_DISTRO}.${_mod_}?= # empty
+. endfor
+.endif