pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/emulator Add the required mk/emulator plugin for AI...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1fd577fa5d79
branches: trunk
changeset: 556589:1fd577fa5d79
user: sno <sno%pkgsrc.org@localhost>
date: Sun Mar 22 22:31:46 2009 +0000
description:
Add the required mk/emulator plugin for AIX binary only packages.
Oked by joerg@
diffstat:
mk/emulator/aix.mk | 43 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 43 insertions(+), 0 deletions(-)
diffs (47 lines):
diff -r dd245a556822 -r 1fd577fa5d79 mk/emulator/aix.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mk/emulator/aix.mk Sun Mar 22 22:31:46 2009 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index