diff options
Diffstat (limited to 'sysutils/top/Makefile')
-rw-r--r-- | sysutils/top/Makefile | 15 |
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 |