summaryrefslogtreecommitdiff
path: root/devel/mk-files/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/mk-files/Makefile')
-rw-r--r--devel/mk-files/Makefile27
1 files changed, 20 insertions, 7 deletions
diff --git a/devel/mk-files/Makefile b/devel/mk-files/Makefile
index 90df62c5e9f..6cf9ce73cf8 100644
--- a/devel/mk-files/Makefile
+++ b/devel/mk-files/Makefile
@@ -1,13 +1,13 @@
-# $NetBSD: Makefile,v 1.1.1.1 2001/05/25 12:33:34 agc Exp $
+# $NetBSD: Makefile,v 1.2 2001/10/18 21:38:32 sjg Exp $
#
-DISTNAME= mk-1.2.2
-PKGNAME= mk-files-1.2.2
+DISTNAME= mk-1.2.5
+PKGNAME= mk-files-1.2.5
CATEGORIES= devel
MASTER_SITES= ftp://ftp.netbsd.org/pub/incoming/sjg/
MAINTAINER= sjg@netbsd.org
-HOMEPAGE= http://www.quick.com.au/help/sjg/bmake.html
+HOMEPAGE= http://www.crufty.net/help/sjg/bmake.html
COMMENT= portable *.mk files for the NetBSD portable bmake utility
WRKSRC= ${WRKDIR}/mk
@@ -15,15 +15,28 @@ WRKSRC= ${WRKDIR}/mk
NO_CONFIGURE= yes
NO_BUILD= yes
-MKFILES= autodep.mk bsd.dep.mk bsd.doc.mk bsd.lib.mk bsd.man.mk
+MKFILES= autodep.mk dep.mk doc.mk lib.mk man.mk nls.mk
+MKFILES+= obj.mk own.mk prog.mk subdir.mk target-flags.mk
+.if !exists(/usr/share/mk/bsd.prog.mk)
+# we don't want to use these on BSD systems, since prog.mk and
+# lib.mk now rely on finding the correct bsd.prog.mk etc to
+# get the right magic on ELF systems.
+MKFILES+= bsd.dep.mk bsd.doc.mk bsd.lib.mk bsd.man.mk
MKFILES+= bsd.nls.mk bsd.obj.mk bsd.own.mk bsd.prog.mk bsd.subdir.mk
-MKFILES+= dep.mk doc.mk lib.mk man.mk nls.mk obj.mk own.mk prog.mk
-MKFILES+= subdir.mk
+
+# need to include the commented out guys
+PLIST_SRC=${WRKDIR}/.PLIST_SRC
+.endif
do-install:
+.if !exists(/usr/share/mk/sys.mk)
${BSD_INSTALL_DATA} ${WRKSRC}/`uname -s`.sys.mk ${PREFIX}/share/mk/sys.mk
+.endif
for f in ${MKFILES}; do \
${BSD_INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/share/mk/; \
done
.include "../../mk/bsd.pkg.mk"
+
+${WRKDIR}/.PLIST_SRC: ${PKGDIR}/PLIST
+ @sed 's,^@comment.*skip-on-BSD ,,' $> > $@