Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / mk / emulator / netbsd.mk
blobb8db3a1fe560449d4124e6b6b0925cbfa679ad94
1 # $NetBSD: netbsd.mk,v 1.2 2007/08/23 17:39:47 jlam Exp $
3 # NetBSD binary emulation framework
5 # Nothing emulates NetBSD except for newer versions of NetBSD, so we can
6 # safely assume that ${OPSYS} == "NetBSD".
9 EMUL_TYPE.netbsd?= compat
10 EMUL_MODULES.netbsd?= # empty
12 EMULDIR= ${PREFIX}/${EMULSUBDIR}
14 # _EMUL_TYPES
15 # List of recognized NetBSD types that a user may request.
17 # _EMUL_MODULES
18 # List of recognized NetBSD "modules" that packages may request.
20 _EMUL_TYPES= builtin
21 _EMUL_TYPES+= compat
22 _EMUL_TYPES+= native
24 .if !empty(EMUL_TYPE.netbsd:Mcompat-*)
25 _EMUL_TYPE?= compat
26 .endif
27 _EMUL_TYPE?= ${EMUL_TYPE.netbsd}
29 _EMUL_MODULES= base
31 .if ${_EMUL_TYPE} == "builtin"
32 EMUL_DISTRO= builtin-netbsd # managed outside pkgsrc
33 .elif ${_EMUL_TYPE} == "native"
34 EMUL_DISTRO= native-netbsd # native NetBSD
35 EMULDIR= ${PREFIX}
36 EMULSUBDIR= # empty
37 .else
38 . include "netbsd-${_EMUL_TYPE}.mk"
39 .endif
41 .if (${_EMUL_TYPE} == "builtin") || (${_EMUL_TYPE} == "native")
42 . for _mod_ in ${_EMUL_MODULES}
43 DEPENDS_${EMUL_DISTRO}.${_mod_}= # empty
44 . endfor
45 .endif
47 LDCONFIG_ADD_CMD?= /sbin/ldconfig
48 LDCONFIG_REMOVE_CMD?= /sbin/ldconfig