diff options
author | jlam <jlam@pkgsrc.org> | 2008-04-12 22:42:57 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-04-12 22:42:57 +0000 |
commit | 841dfa0e7aaa6a0f0cce2901291d1d938dd0fc0a (patch) | |
tree | fdd67c81079412bf94013749a954125434a9baca /pkgtools/bootstrap-extras/Makefile | |
parent | 6874584eae20f517f70816571f6d4ac696db16b3 (diff) | |
download | pkgsrc-841dfa0e7aaa6a0f0cce2901291d1d938dd0fc0a.tar.gz |
Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.
Diffstat (limited to 'pkgtools/bootstrap-extras/Makefile')
-rw-r--r-- | pkgtools/bootstrap-extras/Makefile | 80 |
1 files changed, 43 insertions, 37 deletions
diff --git a/pkgtools/bootstrap-extras/Makefile b/pkgtools/bootstrap-extras/Makefile index 7954bd485ac..4ef3af6a7da 100644 --- a/pkgtools/bootstrap-extras/Makefile +++ b/pkgtools/bootstrap-extras/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2007/07/02 13:34:14 tnn Exp $ +# $NetBSD: Makefile,v 1.5 2008/04/12 22:43:09 jlam Exp $ DISTNAME= bootstrap-extra-files-20070702 CATEGORIES= pkgtools @@ -15,49 +15,55 @@ NO_BUILD= yes .include "../../mk/bsd.prefs.mk" -OPSYSVARS+= NEED_FAKELDD -NEED_FAKELDD.IRIX= # empty -NEED_FAKELDD.*= "@comment " -PLIST_SUBST+= NEED_FAKELDD=${NEED_FAKELDD} +EXTRA_FILES= fakeldd mkdir strip xargs +PLIST_VARS+= ${EXTRA_FILES} -OPSYSVARS+= NEED_MKDIR -NEED_MKDIR.UnixWare= # empty -NEED_MKDIR.*= "@comment " -PLIST_SUBST+= NEED_MKDIR=${NEED_MKDIR} +.PHONY: ${EXTRA_FILES:S/^/do-install-/} -OPSYSVARS+= NEED_STRIP -NEED_STRIP.AIX= # empty -NEED_STRIP.*= "@comment " -PLIST_SUBST+= NEED_STRIP=${NEED_STRIP} +NEED_FAKELDD= IRIX +.if !empty(NEED_FAKELDD:M${OPSYS}) +PLIST.fakeldd= yes +do-install: do-install-fakeldd +.endif -OPSYSVARS+= NEED_XARGS -NEED_XARGS.Interix= # empty -NEED_XARGS.*= "@comment " -PLIST_SUBST+= NEED_XARGS=${NEED_XARGS} +NEED_MKDIR= UnixWare +.if !empty(NEED_MKDIR:M${OPSYS}) +PLIST.mkdir= yes +do-install: do-install-mkdir +.endif + +NEED_STRIP= AIX +.if !empty(NEED_STRIP:M${OPSYS}) +PLIST.strip= yes +do-install: do-install-strip +.endif + +NEED_XARGS= Interix +.if !empty(NEED_XARGS:M${OPSYS}) +PLIST.xargs= yes +do-install: do-install-xargs +.endif do-extract: ${CP} -R ${FILESDIR} ${WRKSRC} do-install: - if ${TEST} -z ${NEED_FAKELDD:M*:Q}""; then \ - ${INSTALL_SCRIPT_DIR} ${PREFIX}/sbin; \ - ${INSTALL_SCRIPT} ${WRKSRC}/fakeldd \ - ${PREFIX}/sbin/fakeldd; \ - fi - if ${TEST} -z ${NEED_MKDIR:M*:Q}""; then \ - ${INSTALL_SCRIPT_DIR} ${PREFIX}/bin; \ - ${INSTALL_SCRIPT} ${WRKSRC}/mkdir-sh \ - ${PREFIX}/bin/mkdir-sh; \ - fi - if ${TEST} -z ${NEED_STRIP:M*:Q}""; then \ - ${INSTALL_SCRIPT_DIR} ${PREFIX}/bin; \ - ${INSTALL_SCRIPT} ${WRKSRC}/strip-sh \ - ${PREFIX}/bin/strip; \ - fi - if ${TEST} -z ${NEED_XARGS:M*:Q}""; then \ - ${INSTALL_SCRIPT_DIR} ${PREFIX}/bin; \ - ${INSTALL_SCRIPT} ${WRKSRC}/xargs-sh \ - ${PREFIX}/bin/xargs; \ - fi + @${ECHO} ${.ALLSRC} + +do-install-fakeldd: + ${INSTALL_SCRIPT_DIR} ${PREFIX}/sbin + ${INSTALL_SCRIPT} ${WRKSRC}/fakeldd ${PREFIX}/sbin/fakeldd + +do-install-mkdir: + ${INSTALL_SCRIPT_DIR} ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/mkdir-sh ${PREFIX}/bin/mkdir-sh + +do-install-strip: + ${INSTALL_SCRIPT_DIR} ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/strip-sh ${PREFIX}/bin/strip + +do-install-xargs: + ${INSTALL_SCRIPT_DIR} ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/xargs-sh ${PREFIX}/bin/xargs .include "../../mk/bsd.pkg.mk" |