summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2005-01-14 14:08:06 +0000
committertv <tv@pkgsrc.org>2005-01-14 14:08:06 +0000
commit7983e9bf352c397c58d12139cebded727d178717 (patch)
treedbe3e541a3721fd70c2d6a2fa8a3ee24c6b3efc0 /mk/bsd.pkg.mk
parentfc4b62d03043abc516dc0213cc4d3b6e85056747 (diff)
downloadpkgsrc-7983e9bf352c397c58d12139cebded727d178717.tar.gz
Only do the config.* overrides iff GNU_CONFIGURE. (defined() check needed
to make older bmakes happy.)
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r--mk/bsd.pkg.mk26
1 files changed, 14 insertions, 12 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index cec9deb613f..1c6029fbdfe 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1559 2005/01/14 00:10:01 tv Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1560 2005/01/14 14:08:06 tv Exp $
#
# This file is in the public domain.
#
@@ -2269,8 +2269,9 @@ do-ltconfig-override:
_CONFIGURE_PREREQ+= do-config-star-override
.PHONY: do-config-star-override
do-config-star-override:
-.if !empty(CONFIG_GUESS_OVERRIDE)
-. for _pattern_ in ${CONFIG_GUESS_OVERRIDE}
+.if defined(GNU_CONFIGURE)
+. if !empty(CONFIG_GUESS_OVERRIDE)
+. for _pattern_ in ${CONFIG_GUESS_OVERRIDE}
${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \
for file in ${_pattern_}; do \
if [ -f "$$file" ]; then \
@@ -2279,10 +2280,10 @@ do-config-star-override:
$$file; \
fi; \
done
-. endfor
-.endif
-.if !empty(CONFIG_SUB_OVERRIDE)
-. for _pattern_ in ${CONFIG_SUB_OVERRIDE}
+. endfor
+. endif
+. if !empty(CONFIG_SUB_OVERRIDE)
+. for _pattern_ in ${CONFIG_SUB_OVERRIDE}
${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \
for file in ${_pattern_}; do \
if [ -f "$$file" ]; then \
@@ -2291,10 +2292,10 @@ do-config-star-override:
$$file; \
fi; \
done
-. endfor
-.endif
-.if !empty(CONFIG_RPATH_OVERRIDE)
-. for _pattern_ in ${CONFIG_RPATH_OVERRIDE}
+. endfor
+. endif
+. if !empty(CONFIG_RPATH_OVERRIDE)
+. for _pattern_ in ${CONFIG_RPATH_OVERRIDE}
${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \
for file in ${_pattern_}; do \
if [ -f "$$file" ]; then \
@@ -2303,7 +2304,8 @@ do-config-star-override:
$$file; \
fi; \
done
-. endfor
+. endfor
+. endif
.endif
PKGCONFIG_OVERRIDE_SED= \