diff options
author | schmonz <schmonz@pkgsrc.org> | 2002-07-16 15:02:01 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2002-07-16 15:02:01 +0000 |
commit | f23c05c5e388796c2a40ef06964a97c566a497dc (patch) | |
tree | 872d73a4abdf156bbb478a74b06e3e49d96231e6 | |
parent | ad351a9bdd336efe6425459b4da85475a953864b (diff) | |
download | pkgsrc-f23c05c5e388796c2a40ef06964a97c566a497dc.tar.gz |
Add two knobs for packages: CONFIG_GUESS_OVERRIDE and CONFIG_SUB_OVERRIDE.
Example:
CONFIG_GUESS_OVERRIDE= ${WRKSRC}/config.guess
CONFIG_SUB_OVERRIDE= ${WRKSRC}/config.sub
Just before the bulk of the "configure" phase, the named files will be
replaced with symlinks to their canonical pkgsrc versions in
pkgsrc/mk/gnu-config.
-rw-r--r-- | mk/bsd.pkg.mk | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 7cf4b355887..7650df30677 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1005 2002/07/13 23:27:54 rh Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1006 2002/07/16 15:02:01 schmonz Exp $ # # This file is in the public domain. # @@ -1850,6 +1850,25 @@ do-ltconfig-override: ${_PKG_SILENT}${_PKG_DEBUG}${TRUE} .endif +.if defined(CONFIG_GUESS_OVERRIDE) || defined(CONFIG_SUB_OVERRIDE) +_CONFIGURE_PREREQ+= do-config-star-override +do-config-star-override: +. if defined(CONFIG_GUESS_OVERRIDE) + ${_PKG_SILENT}${_PKG_DEBUG} \ + for g in ${CONFIG_GUESS_OVERRIDE}; do \ + ${RM} -f $$g; \ + ${LN} -s ${_PKGSRCDIR}/mk/gnu-config/config.guess $$g; \ + done +. endif +. if defined(CONFIG_SUB_OVERRIDE) + ${_PKG_SILENT}${_PKG_DEBUG} \ + for s in ${CONFIG_SUB_OVERRIDE}; do \ + ${RM} -f $$s; \ + ${LN} -s ${_PKGSRCDIR}/mk/gnu-config/config.sub $$s; \ + done +. endif +.endif + # By default, prevent invocation of GNU "auto*" driven by the generated # Makefiles during the build process by touching various auto{conf,make} # source files to make them up-to-date. Packages that require regenerating |