From 651b742113e36ae4670225238b1d9536d4f680fe Mon Sep 17 00:00:00 2001 From: pho Date: Wed, 11 Feb 2015 14:04:16 +0000 Subject: 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. --- sysutils/top/Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3