summaryrefslogtreecommitdiff
path: root/sysutils/skill/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/skill/Makefile')
-rw-r--r--sysutils/skill/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/sysutils/skill/Makefile b/sysutils/skill/Makefile
index eae201aa7da..84fd6ade7a8 100644
--- a/sysutils/skill/Makefile
+++ b/sysutils/skill/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 1999/01/05 19:12:00 kim Exp $
+# $NetBSD: Makefile,v 1.4 1999/09/27 13:28:56 agc Exp $
#
# The version number for skill does not match the @P number.
# This is normal.
@@ -13,14 +13,22 @@ EXTRACT_SUFX= _tar.Z
MAINTAINER= kim@tac.nyc.ny.us
BINMODE= 02555
-BINGRP= kmem
+
+.include "../../mk/bsd.prefs.mk"
MAKE_ENV+= UVM=${UVM}
+.if ${OPSYS} == "NetBSD"
+MAKE_ENV+= OSTYPE=bsd-4.4 BINGRP=kmem
+.elif ${OPSYS} == "SunOS"
+MAKE_ENV+= OSTYPE=sys-5r4 BINGRP=sys CPPFLAGS=
+.endif
+
pre-install:
${INSTALL_PROGRAM} ${WRKSRC}/skill ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/skill.1 ${PREFIX}/man/man1
- ln -s skill ${PREFIX}/bin/snice
- ln -s skill.1 ${PREFIX}/man/man1/snice.1
+ ${RM} -f ${PREFIX}/bin/snice ${PREFIX}/man/man1/snice.1
+ ${LN} -s skill ${PREFIX}/bin/snice
+ ${LN} -s skill.1 ${PREFIX}/man/man1/snice.1
.include "../../mk/bsd.pkg.mk"