1 # $NetBSD: Makefile,v 1.14 2007/11/27 19:20:42 jlam Exp $
3 COMPAT_PKG= compat16 # for compat_netbsd/Makefile.common
6 HOMEPAGE= http://www.NetBSD.org/releases/formal-1.6/index.html
7 COMMENT= Shared libraries for NetBSD 1.6 compatibility
9 .if defined(NETBSD_COMPAT32)
10 EMUL_PLATFORMS= netbsd-i386 netbsd-sparc
12 ACCEPTABLE_NETBSD= NetBSD-1.5[A-Z]* NetBSD-1.6 NetBSD-1.6.* \
13 NetBSD-1.6[A-Z]* NetBSD-[2-9]* \
16 EMUL_PLATFORMS= netbsd-alpha netbsd-arm netbsd-i386 netbsd-m68k \
17 netbsd-mipseb netbsd-mipsel netbsd-powerpc \
18 netbsd-sparc netbsd-sparc64 netbsd-vax
20 ONLY_FOR_PLATFORM= NetBSD-1.6[A-Z]*-* NetBSD-[2-9]*-* \
22 NOT_FOR_PLATFORM= NetBSD-*-x86_64
25 .include "../../emulators/compat_netbsd/Makefile.common"
27 DISTNAME= compat16-${EMUL_ARCH}-${COMPAT_VERSION}
30 # For COMPAT_NETBSD32, we need to depend on the compat16-extras package
31 # on NetBSD-1.6 to supply the missing shared libraries; otherwise, we
32 # just depend on the compat20 package for the missing shared libraries.
34 .if defined(NETBSD_COMPAT32)
35 COMPAT_EXTRAS= # empty
36 . for _netbsd_ in ${ACCEPTABLE_NETBSD}
37 COMPAT_EXTRAS= netbsd32_compat16-extras-${COMPAT_VERSION}{,nb*}:../../emulators/netbsd32_compat16-extras
39 . if !empty(COMPAT_EXTRAS)
40 DEPENDS+= ${COMPAT_EXTRAS}
42 DEPENDS+= netbsd32_compat20>=2.0:../../emulators/netbsd32_compat20
45 # We need to depend on the compat20 package to supply shared libraries
46 # missing from compat16 on NetBSD>2.x.
48 .elif empty(OS_VERSION:M[0-1].*) && empty(OS_VERSION:M2.[0-9]) && \
49 empty(OS_VERSION:M2.[0-9].*) && empty(OS_VERSION:M2.[1-8][0-9].*) && \
50 empty(OS_VERSION:M2.9[0-8]*)
51 DEPENDS+= compat20>=2.0:../../emulators/compat20
54 .include "../../mk/bsd.pkg.mk"