2016-09-08 16:28:12 +02:00
|
|
|
# $NetBSD: Makefile,v 1.52 2016/09/08 14:28:12 joerg Exp $
|
2006-07-15 01:13:00 +02:00
|
|
|
|
2016-09-08 16:28:12 +02:00
|
|
|
PKGNAME= bootstrap-mk-files-20160908
|
2006-07-15 01:13:00 +02:00
|
|
|
CATEGORIES= pkgtools
|
|
|
|
|
|
|
|
CONFLICTS+= mk-files-[0-9]*
|
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.pkgsrc.org/
|
|
|
|
COMMENT= *.mk files for the bootstrap bmake utility
|
2016-01-28 14:39:44 +01:00
|
|
|
LICENSE= original-bsd
|
2006-07-15 01:13:00 +02:00
|
|
|
|
|
|
|
NO_PKGTOOLS_REQD_CHECK= # defined
|
2008-06-19 20:36:51 +02:00
|
|
|
BOOTSTRAP_PKG= yes
|
2006-07-15 01:13:00 +02:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
USE_TOOLS+= sed
|
|
|
|
|
2007-09-21 19:14:39 +02:00
|
|
|
INSTALLATION_DIRS= share/mk
|
2006-07-15 01:13:00 +02:00
|
|
|
|
|
|
|
do-extract:
|
|
|
|
@${CP} -R ${FILESDIR} ${WRKSRC}
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
cd ${WRKSRC}; for file in bsd.* sys.mk; do \
|
|
|
|
${TEST} ! -f mods/${OPSYS}.$$file || \
|
|
|
|
${CP} -f mods/${OPSYS}.$$file ${WRKSRC}/$$file; \
|
|
|
|
done
|
|
|
|
cd ${WRKSRC}; \
|
|
|
|
if ${TEST} -f mods/${OPSYS}.bsd.own.mk.in; then \
|
|
|
|
own_mk=mods/${OPSYS}.bsd.own.mk.in; \
|
|
|
|
else \
|
|
|
|
own_mk=mods/bsd.own.mk.in; \
|
|
|
|
fi; \
|
2009-02-17 18:08:13 +01:00
|
|
|
${SED} -e 's|@ROOT_GROUP@|'${REAL_ROOT_GROUP}'|g' \
|
|
|
|
-e 's|@ROOT_USER@|'${REAL_ROOT_USER}'|g' \
|
2006-07-15 01:13:00 +02:00
|
|
|
-e 's|@SYSCONFDIR@|'${PKG_SYSCONFDIR}'|g' \
|
|
|
|
$$own_mk > bsd.own.mk
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC} && for file in bsd.* sys.mk; do \
|
2007-09-21 19:14:39 +02:00
|
|
|
${INSTALL_DATA} $$file ${DESTDIR}${PREFIX}/share/mk/$$file; \
|
2006-07-15 01:13:00 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|