Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / emulators / compat40 / Makefile
blob15ee5738da4b914bad828128a0c2ad6a1feab029
1 # $NetBSD: Makefile,v 1.1 2007/12/31 20:06:39 jlam Exp $
3 COMPAT_PKG= compat40 # for compat_netbsd/Makefile.common
4 NETBSD_VERSION= 4.0
6 HOMEPAGE= http://www.NetBSD.org/releases/formal-4/index.html
7 COMMENT= Shared libraries for NetBSD 4.0 compatibility
9 # XXX Until NetBSD 5.0 is released, we fetch the distfiles into a date-specific
10 # XXX subdirectory where the date corresponds to the build of HEAD against
11 # XXX which these compat40 packages were generated.
13 DIST_SUBDIR= 20071230
15 .if defined(NETBSD_COMPAT32)
16 EMUL_PLATFORMS= netbsd-i386 netbsd-sparc
18 ACCEPTABLE_NETBSD= NetBSD-3.99.* NetBSD-4.[0-9] \
19 NetBSD-4.[1-8][0-9]* NetBSD-4.9[0-8]* \
20 NetBSD-4.99.* NetBSD-[5-9]* NetBSD-[1-9][0-9]*
21 .else
22 EMUL_PLATFORMS= netbsd-alpha netbsd-arm netbsd-i386 netbsd-m68k \
23 netbsd-mipseb netbsd-mipsel netbsd-powerpc \
24 netbsd-sh3eb netbsd-sh3el netbsd-sparc \
25 netbsd-sparc64 netbsd-x86_64
27 # XXX These platforms are currently not supported or broken.
28 #EMUL_PLATFORMS= netbsd-vax
30 ONLY_FOR_PLATFORM= NetBSD-4.99.*-* NetBSD-[5-9]*-* NetBSD-[1-9][0-9]*-*
31 .endif
33 .include "../../emulators/compat_netbsd/Makefile.common"
35 DISTNAME= compat40-${EMUL_ARCH}-${COMPAT_VERSION}
36 COMPAT_VERSION= 4.0
38 # For COMPAT_NETBSD32, we need to depend on the compat40-extras package
39 # on NetBSD-4.0 to supply the missing shared libraries; otherwise, we
40 # just depend on the compat50 package for the missing shared libraries.
42 .if defined(NETBSD_COMPAT32)
43 COMPAT_EXTRAS= # empty
44 . for _netbsd_ in ${ACCEPTABLE_NETBSD}
45 COMPAT_EXTRAS= netbsd32_compat40-extras-${COMPAT_VERSION}{,nb*}:../../emulators/netbsd32_compat40-extras
46 . endfor
47 . if !empty(COMPAT_EXTRAS)
48 DEPENDS+= ${COMPAT_EXTRAS}
49 . else
50 # XXX This package doesn't exist yet.
51 #DEPENDS+= netbsd32_compat50>=5.0:../../emulators/netbsd32_compat50
52 . endif
54 # We need to depend on the compat50 package to supply shared libraries
55 # missing from compat40 on NetBSD>5.x.
57 .elif empty(OS_VERSION:M[0-4].*) && empty(OS_VERSION:M5.[0-9]) && \
58 empty(OS_VERSION:M5.[0-9].*) && empty(OS_VERSION:M5.[1-8][0-9].*) && \
59 empty(OS_VERSION:M5.9[0-8]*)
60 # XXX This package doesn't exist yet.
61 #DEPENDS+= compat50>=5.0:../../emulators/compat50
62 .endif
64 .include "../../mk/bsd.pkg.mk"