summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2011-10-04 22:23:00 +0000
committerjilles <jilles@FreeBSD.org>2011-10-04 22:23:00 +0000
commit943e8837f549e88b65ea32d48427753e05e6a31a (patch)
treed4b815c3b6451ee822f3949265b3a92bb869ff21 /share
parent9da6f154d20f9979b10969ef3d1775c66118abf1 (diff)
downloadFreeBSD-src-943e8837f549e88b65ea32d48427753e05e6a31a.zip
FreeBSD-src-943e8837f549e88b65ea32d48427753e05e6a31a.tar.gz
Work around the autotools problem with the 10.0 version.
With this, I can build various ports on a 10.0-CURRENT system without hacking or hiding the version number. This commit should be reverted when there is a cleaner fix in autotools and/or ports/Mk/bsd.port.mk. The original patch is from Ed Schouten but needed some additions.
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.port.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk
index 87e4935..f5b98e2 100644
--- a/share/mk/bsd.port.mk
+++ b/share/mk/bsd.port.mk
@@ -14,3 +14,15 @@ _WITHOUT_SRCCONF=
.include <bsd.own.mk>
.include "${BSDPORTMK}"
+
+.if !defined(BEFOREPORTMK) && !defined(INOPTIONSMK)
+# Work around an issue where FreeBSD 10.0 is detected as FreeBSD 1.x.
+run-autotools-fixup:
+ find ${WRKSRC} -type f \( -name config.libpath -o \
+ -name config.rpath -o -name configure -o -name libtool.m4 \) \
+ -exec sed -i '' -e 's/freebsd1\*)/SHOULDNOTMATCHANYTHING1)/' \
+ -e 's/freebsd\[123\]\*)/SHOULDNOTMATCHANYTHING2)/' {} +
+
+.ORDER: run-autotools run-autotools-fixup do-configure
+do-configure: run-autotools-fixup
+.endif
OpenPOWER on IntegriCloud