summaryrefslogtreecommitdiff
path: root/sysutils/top/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/top/Makefile')
-rw-r--r--sysutils/top/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/sysutils/top/Makefile b/sysutils/top/Makefile
index e159f7a4b97..d020721887b 100644
--- a/sysutils/top/Makefile
+++ b/sysutils/top/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 1999/02/15 04:36:31 simonb Exp $
+# $NetBSD: Makefile,v 1.17 1999/03/17 10:47:42 agc Exp $
# FreeBSD Id: Makefile,v 1.14 1997/04/30 23:49:14 asami Exp
#
@@ -12,7 +12,17 @@ HOMEPAGE= http://www.groupsys.com/topinfo/
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= Configure
-CONFIGURE_ARGS+= netbsd13
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+CONF= netbsd13
+.elif ${OPSYS} == "SunOS"
+CONF+= sunos5
+MAKE_ENV+= CPPFLAGS=
+.endif
+
+CONFIGURE_ARGS+= ${CONF}
.if exists(/usr/bin/top)
IGNORE= "is part of your NetBSD distribution"
@@ -25,7 +35,7 @@ MAKE_ENV+= INSTALL_MAN="${INSTALL_MAN}" \
UVM=${UVM}
pre-configure:
- ${CP} ${FILESDIR}/defaults ${WRKSRC}/.defaults
+ ${CP} ${FILESDIR}/defaults.${CONF} ${WRKSRC}/.defaults
chmod a-x ${WRKSRC}/install
.include "../../mk/bsd.pkg.mk"