Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / mk / emulator / solaris.mk
blob0b58c7da8fd3985f176117f24f40858878fd210f
1 # $NetBSD: solaris.mk,v 1.2 2007/08/23 17:39:47 jlam Exp $
3 # Solaris (SVR4) binary emulation framework
6 .if ${OPSYS} == "SunOS"
7 EMUL_TYPE.solaris?= native
8 .else
9 EMUL_TYPE.solaris?= builtin
10 .endif
11 EMUL_MODULES.solaris?= # empty
13 .if ((${EMUL_ARCH} == "i386") && (${MACHINE_ARCH} == "x86_64")) || \
14 ((${EMUL_ARCH} == "sparc") && (${MACHINE_ARCH} == "sparc64"))
15 _SOLARIS_BASE= solaris32
16 EMULSUBDIR= emul/svr4_32
17 .else
18 _SOLARIS_BASE= solaris
19 EMULSUBDIR= emul/svr4
20 .endif
22 EMULDIR= ${PREFIX}/${EMULSUBDIR}
23 OPSYS_EMULDIR= ${_OPSYS_EMULDIR.${_SOLARIS_BASE}}
25 # _EMUL_TYPES
26 # List of recognized Solaris types that a user may request.
28 # _EMUL_MODULES
29 # List of recognized Solaris "modules" that packages may request.
31 _EMUL_TYPES= builtin
32 _EMUL_TYPES+= native
33 #_EMUL_TYPES+= opensolaris
34 _EMUL_TYPE?= ${EMUL_TYPE.solaris}
36 _EMUL_MODULES= # empty
38 .if ${_EMUL_TYPE} == "builtin"
39 EMUL_DISTRO= builtin-solaris # managed outside pkgsrc
40 .elif ${_EMUL_TYPE} == "native"
41 EMUL_DISTRO= native-solaris # native SunOS 5.x
42 EMULDIR= ${PREFIX}
43 EMULSUBDIR= # empty
44 .else
45 . include "solaris-${_EMUL_TYPE}.mk"
46 .endif
48 .if (${_EMUL_TYPE} == "builtin") || (${_EMUL_TYPE} == "native")
49 . for _mod_ in ${_EMUL_MODULES}
50 DEPENDS_${EMUL_DISTRO}.${_mod_}= # empty
51 . endfor
52 .endif