diff options
author | jlam <jlam> | 2004-02-12 13:30:04 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-02-12 13:30:04 +0000 |
commit | ad456a61f0276e47e65e63ca545563adcc71d7e0 (patch) | |
tree | 3f772c48d2ea1426e8446a62c7b94cd2dfa6be3f | |
parent | ee31c7e3f732d3999a716f22871b83b40d49a4e1 (diff) | |
download | pkgsrc-ad456a61f0276e47e65e63ca545563adcc71d7e0.tar.gz |
GNU_MISSING_OVERRIDE is a list of files relative to ${WRKSRC} that are
replaced by pkgsrc/mk/gnu-config/missing. This avoids requiring
autoconf and automake as hidden build dependencies when they're not ever
invoked by the build process.
-rw-r--r-- | mk/bsd.pkg.mk | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 9a53155402a..b2a8b19589f 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1389 2004/02/12 13:16:02 jlam Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1390 2004/02/12 13:30:04 jlam Exp $ # # This file is in the public domain. # @@ -2455,6 +2455,18 @@ do-config-status-override: . endfor .endif +.if defined(GNU_MISSING_OVERRIDE) +_CONFIGURE_POSTREQ+= do-gnu-missing-override +.PHONY: do-gnu-missing-override +do-gnu-missing-override: +. for file in ${GNU_MISSING_OVERRIDE} + ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${WRKSRC}/${file} + ${_PKG_SILENT}${_PKG_DEBUG} \ + ${CP} ${_PKGSRCDIR}/mk/gnu-config/missing ${WRKSRC}/${file} + ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${WRKSRC}/${file} +. endfor +.endif + .PHONY: post-configure post-configure: ${_CONFIGURE_POSTREQ} |