summaryrefslogtreecommitdiff
path: root/emulators/compat16/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/compat16/Makefile')
-rw-r--r--emulators/compat16/Makefile63
1 files changed, 42 insertions, 21 deletions
diff --git a/emulators/compat16/Makefile b/emulators/compat16/Makefile
index 6a317abffd1..cbe99ab77ab 100644
--- a/emulators/compat16/Makefile
+++ b/emulators/compat16/Makefile
@@ -1,32 +1,53 @@
-# $NetBSD: Makefile,v 1.9 2006/10/19 19:37:38 wiz Exp $
-#
+# $NetBSD: Makefile,v 1.10 2007/08/21 22:49:14 jlam Exp $
-DISTNAME= compat16-${MACHINE_ARCH}-${VERSION}
-PKGNAME= compat16-${VERSION}
-CATEGORIES= emulators
-MASTER_SITES= ${MASTER_SITE_LOCAL}
-EXTRACT_SUFX= .tar.bz2
+DISTNAME= compat16 # overridden below
+NETBSD_VERSION= 1.6
-MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.NetBSD.org/Releases/formal-1.6/index.html
-COMMENT= Shared libraries for NetBSD 1.6 (and earlier) compatibility
+COMMENT= Shared libraries for NetBSD 1.6 compatibility
-VERSION= 1.6.0
+.if defined(NETBSD_COMPAT32)
+EMUL_PLATFORMS= netbsd-i386 netbsd-sparc
-ONLY_FOR_PLATFORM= NetBSD-1.6[A-Z]*-i386 NetBSD-[2-9]*-i386
-NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL
+ACCEPTABLE_NETBSD= NetBSD-1.5[A-Z]* NetBSD-1.6 NetBSD-1.6.* \
+ NetBSD-1.6[A-Z]* NetBSD-[2-9]* \
+ NetBSD-[1-9][0-9]*
+.else
+EMUL_PLATFORMS= netbsd-alpha netbsd-arm netbsd-i386 netbsd-m68k \
+ netbsd-mipseb netbsd-mipsel netbsd-powerpc \
+ netbsd-sparc netbsd-sparc64 netbsd-vax
-NO_MTREE= yes
-NO_BUILD= yes
-NO_CONFIGURE= yes
-CHECK_SHLIBS_SUPPORTED= no
+ONLY_FOR_PLATFORM= NetBSD-1.6[A-Z]*-* NetBSD-[2-9]*-* \
+ NetBSD-[1-9][0-9]*-*
+.endif
-EMULSUBDIR= emul/netbsd16
+.include "../../emulators/compat_netbsd/Makefile.common"
-PLIST_SUBST+= EMULSUBDIR=${EMULSUBDIR:Q}
+DISTNAME= compat16-${EMUL_ARCH}-${COMPAT_VERSION}
+COMPAT_VERSION= 1.6.2
-do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/${EMULSUBDIR}
- (cd ${WRKDIR}; ${PAX} -rw usr ${PREFIX}/${EMULSUBDIR})
+# For COMPAT_NETBSD32, we need to depend on the compat16-extras package
+# on NetBSD-1.6 to supply the missing shared libraries; otherwise, we
+# just depend on the compat20 package for the missing shared libraries.
+#
+.if defined(NETBSD_COMPAT32)
+COMPAT_EXTRAS= # empty
+. for _netbsd_ in ${ACCEPTABLE_NETBSD}
+COMPAT_EXTRAS= netbsd32_compat16-extras-${COMPAT_VERSION}{,nb*}:../../emulators/netbsd32_compat16-extras
+. endfor
+. if !empty(COMPAT_EXTRAS)
+DEPENDS+= ${COMPAT_EXTRAS}
+. else
+DEPENDS+= netbsd32_compat20>=2.0:../../emulators/netbsd32_compat20
+. endif
+#
+# We need to depend on the compat20 package to supply shared libraries
+# missing from compat16 on NetBSD>2.x.
+#
+.elif empty(OS_VERSION:M[0-1].*) && empty(OS_VERSION:M2.[0-9]) && \
+ empty(OS_VERSION:M2.[0-9].*) && empty(OS_VERSION:M2.[1-8][0-9].*) && \
+ empty(OS_VERSION:M2.9[0-8]*)
+DEPENDS+= compat20>=2.0:../../emulators/compat20
+.endif
.include "../../mk/bsd.pkg.mk"