Tue Mar 3 00:38:08 2015 UTC ()
Simplify the conditional block for Darwin


(pho)
diff -r1.40 -r1.41 pkgsrc/sysutils/top/Makefile

cvs diff -r1.40 -r1.41 pkgsrc/sysutils/top/Makefile (expand / switch to unified diff)

--- pkgsrc/sysutils/top/Makefile 2015/03/01 20:03:52 1.40
+++ pkgsrc/sysutils/top/Makefile 2015/03/03 00:38:08 1.41
@@ -1,34 +1,34 @@ @@ -1,34 +1,34 @@
1# $NetBSD: Makefile,v 1.40 2015/03/01 20:03:52 joerg Exp $ 1# $NetBSD: Makefile,v 1.41 2015/03/03 00:38:08 pho Exp $
2 2
3DISTNAME= top-3.6.1 3DISTNAME= top-3.6.1
4PKGREVISION= 1 4PKGREVISION= 1
5CATEGORIES= sysutils 5CATEGORIES= sysutils
6MASTER_SITES= ftp://ftp.groupsys.com/pub/top/ 6MASTER_SITES= ftp://ftp.groupsys.com/pub/top/
7 7
8MAINTAINER= agc@NetBSD.org 8MAINTAINER= agc@NetBSD.org
9HOMEPAGE= http://www.groupsys.com/topinfo/ 9HOMEPAGE= http://www.groupsys.com/topinfo/
10COMMENT= The ubiquitous system monitoring utility 10COMMENT= The ubiquitous system monitoring utility
11 11
12GNU_CONFIGURE= yes 12GNU_CONFIGURE= yes
13 13
14CONFIGURE_ENV+= SET_OWNER=${BINOWN} 14CONFIGURE_ENV+= SET_OWNER=${BINOWN}
15CONFIGURE_ENV+= SET_GROUP=${BINGRP} 15CONFIGURE_ENV+= SET_GROUP=${BINGRP}
16CONFIGURE_ENV+= SET_MODE=${BINMODE} 16CONFIGURE_ENV+= SET_MODE=${BINMODE}
17 17
18# ${WRKSRC}/machine/m_macosx.c uses kvm_* interfaces, which have been 18# ${WRKSRC}/machine/m_macosx.c uses kvm_* interfaces, which have been
19# dropped since Darwin 9. 19# dropped since Darwin 9.
20BROKEN_ON_PLATFORM+= Darwin-9.*-* 20BROKEN_ON_PLATFORM+= Darwin-9.*-*
21BROKEN_ON_PLATFORM+= Darwin-[1-9][0-9]*-* 21BROKEN_ON_PLATFORM+= Darwin-[1-9][0-9]*-*
22 22
23.include "../../mk/bsd.prefs.mk" 23.include "../../mk/bsd.prefs.mk"
24 24
25.if ${OPSYS} == "Darwin" && empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*) 25.if ${OPSYS} == "Darwin"
26# ${WRKSRC}/configure emits an error saying "macosx module 26# ${WRKSRC}/configure emits an error saying "macosx module
27# unsupported" without this option. 27# unsupported" without this option.
28CONFIGURE_ARGS+= --with-module=macosx 28CONFIGURE_ARGS+= --with-module=macosx
29.endif 29.endif
30 30
31post-extract: 31post-extract:
32 ${CP} ${FILESDIR}/m_dragonfly.c ${WRKSRC}/machine 32 ${CP} ${FILESDIR}/m_dragonfly.c ${WRKSRC}/machine
33 33
34.include "../../mk/bsd.pkg.mk" 34.include "../../mk/bsd.pkg.mk"