Fixup fromcvs/togit conversion
[pkgsrcv2.git] / emulators / compat20 / Makefile
1 # $NetBSD: Makefile,v 1.3 2007/10/07 12:59:12 kano Exp $
2
3 COMPAT_PKG=             compat20        # for compat_netbsd/Makefile.common
4 NETBSD_VERSION=         2.0
5
6 HOMEPAGE=               http://www.NetBSD.org/releases/formal-2.0/index.html
7 COMMENT=                Shared libraries for NetBSD 2.0 compatibility
8
9 .if defined(NETBSD_COMPAT32)
10 EMUL_PLATFORMS=         netbsd-i386 netbsd-sparc
11
12 ACCEPTABLE_NETBSD=      NetBSD-1.6[A-Z]* NetBSD-2.[0-9]                 \
13                         NetBSD-2.[1-8][0-9]* NetBSD-2.9[0-8]*           \
14                         NetBSD-2.99.* NetBSD-[3-9]* NetBSD-[1-9][0-9]*
15 .else
16 EMUL_PLATFORMS=         netbsd-alpha netbsd-arm netbsd-i386 netbsd-m68k \
17                         netbsd-mipseb netbsd-mipsel netbsd-powerpc      \
18                         netbsd-sh3eb netbsd-sh3el netbsd-sparc          \
19                         netbsd-sparc64 netbsd-vax netbsd-x86_64
20
21 ONLY_FOR_PLATFORM=      NetBSD-2.99.*-* NetBSD-[3-9]*-* NetBSD-[1-9][0-9]*-*
22 .endif
23
24 .include "../../emulators/compat_netbsd/Makefile.common"
25
26 DISTNAME=               compat20-${EMUL_ARCH}-${COMPAT_VERSION}
27 COMPAT_VERSION=         2.1
28
29 # For COMPAT_NETBSD32, we need to depend on the compat20-extras package
30 # on NetBSD-2.0 to supply the missing shared libraries; otherwise, we
31 # just depend on the compat30 package for the missing shared libraries.
32 #
33 .if defined(NETBSD_COMPAT32)
34 COMPAT_EXTRAS=  # empty
35 .  for _netbsd_ in ${ACCEPTABLE_NETBSD}
36 COMPAT_EXTRAS=  netbsd32_compat20-extras-${COMPAT_VERSION}{,nb*}:../../emulators/netbsd32_compat20-extras
37 .  endfor
38 .  if !empty(COMPAT_EXTRAS)
39 DEPENDS+=       ${COMPAT_EXTRAS}
40 .  else
41 DEPENDS+=       netbsd32_compat30>=3.0:../../emulators/netbsd32_compat30
42 .  endif
43 #
44 # We need to depend on the compat30 package to supply shared libraries
45 # missing from compat20 on NetBSD>3.x.
46 #
47 .elif empty(OS_VERSION:M[0-2].*) && empty(OS_VERSION:M3.[0-9]) && \
48       empty(OS_VERSION:M3.[0-9].*) && empty(OS_VERSION:M3.[1-8][0-9].*) && \
49       empty(OS_VERSION:M3.9[0-8]*)
50 DEPENDS+=       compat30>=3.0:../../emulators/compat30
51 .endif
52
53 .include "../../mk/bsd.pkg.mk"