summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorschmonz <schmonz>2002-07-16 15:02:01 +0000
committerschmonz <schmonz>2002-07-16 15:02:01 +0000
commitdb50507d3dff8d279b436c4a6bac1a83a229dc5a (patch)
tree872d73a4abdf156bbb478a74b06e3e49d96231e6 /mk
parent8d3f14fae299930026fcbd0fdd2c4eab733e9a89 (diff)
downloadpkgsrc-db50507d3dff8d279b436c4a6bac1a83a229dc5a.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.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk21
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