Fixup fromcvs/togit conversion
[pkgsrcv2.git] / emulators / compat20 / emulator.mk
1 # $NetBSD$
2 #
3 # This file is included by netbsd-compat.mk in the emulator framework.
4 #
5 # Variables set by this file:
6 #
7 # EMUL_DISTRO
8 #       The NetBSD distribution used to provide the files.
9 #
10 # EMUL_EXEC_FMT
11 #       The executable format of the emulated operating system.
12 #
13 # EMULSUBDIR
14 #       Path relative to ${PREFIX} where the files and directories are
15 #       located, e.g. emul/aout.
16 #
17 # DEPENDS_${EMUL_DISTRO}.*
18 #       A table that maps "modules" to NetBSD package dependencies.
19 #
20
21 EMUL_DISTRO=            netbsd-2.0
22
23 EMUL_EXEC_FMT=          ELF
24 EMULSUBDIR=             emul/netbsd
25 OPSYS_EMULDIR=          ${_OPSYS_EMULDIR.netbsd}
26
27 # For COMPAT_NETBSD32, we always need the dependency to supply 32-bit
28 # shared libaries for NetBSD-2.0.
29 #
30 .if ((${EMUL_ARCH} == "i386") && (${MACHINE_ARCH} == "x86_64")) || \
31     ((${EMUL_ARCH} == "sparc") && (${MACHINE_ARCH} == "sparc64"))
32 EMULSUBDIR=             emul/netbsd32
33 OPSYS_EMULDIR=          ${_OPSYS_EMULDIR.netbsd32}
34
35 DEPENDS_netbsd-2.0.base?=       netbsd32_compat20>=2.0:../../emulators/netbsd32_compat20
36 #
37 # We need to depend on the compat20 package to supply missing shared
38 # libraries only on NetBSD>2.0.
39 #
40 .elif empty(OS_VERSION:M[0-1].*) && empty(OS_VERSION:M2.[0-9]) && \
41       empty(OS_VERSION:M2.[0-9].*) && empty(OS_VERSION:M2.[1-8][0-9].*) && \
42       empty(OS_VERSION:M2.9[0-8]*)
43 DEPENDS_netbsd-2.0.base?=       compat20>=2.0:../../emulators/compat20
44 .endif