summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpho <pho@pkgsrc.org>2015-02-11 14:04:16 +0000
committerpho <pho@pkgsrc.org>2015-02-11 14:04:16 +0000
commit651b742113e36ae4670225238b1d9536d4f680fe (patch)
treeb672e5aa10f1ecda97a4cb25cb57160cdbdfa2bb
parent7b93c06d25d25c4c355536086af1127862331964 (diff)
downloadpkgsrc-651b742113e36ae4670225238b1d9536d4f680fe.tar.gz
Mark Darwin 9 and later as broken
${WRKSRC}/machine/m_macosx.c uses kvm_* interfaces, which have been dropped since Darwin 9. I've not tested it on Darwin <= 8 though.
-rw-r--r--sysutils/top/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/sysutils/top/Makefile b/sysutils/top/Makefile
index ffb1cce6a2b..a1205416135 100644
--- a/sysutils/top/Makefile
+++ b/sysutils/top/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.38 2012/10/23 19:51:27 asau Exp $
+# $NetBSD: Makefile,v 1.39 2015/02/11 14:04:16 pho Exp $
DISTNAME= top-3.6.1
PKGREVISION= 1
@@ -15,6 +15,19 @@ CONFIGURE_ENV+= SET_OWNER=${BINOWN}
CONFIGURE_ENV+= SET_GROUP=${BINGRP}
CONFIGURE_ENV+= SET_MODE=${BINMODE}
+# ${WRKSRC}/machine/m_macosx.c uses kvm_* interfaces, which have been
+# dropped since Darwin 9.
+BROKEN_ON_PLATFORM+= Darwin-9.*-*
+BROKEN_ON_PLATFORM+= Darwin-[1-9][0-9]*-*
+
+.include "../../mk/bsd.prefs.mk"
+
+.if empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
+# ${WRKSRC}/configure emits an error saying "macosx module
+# unsupported" without this option.
+CONFIGURE_ARGS+= --with-module=macosx
+.endif
+
post-extract:
${CP} ${FILESDIR}/m_dragonfly.c ${WRKSRC}/machine