summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authorstas <stas@FreeBSD.org>2011-10-07 23:43:51 +0000
committerstas <stas@FreeBSD.org>2011-10-07 23:43:51 +0000
commit9b1ae764a6c40a58ca034bc9534df3ba574b554b (patch)
treee806b45a3f8af651541f1960eaa38d85cbed0f40 /share/mk
parent5364f6538033447b7b9b35cf3597fe59b0453392 (diff)
downloadFreeBSD-src-9b1ae764a6c40a58ca034bc9534df3ba574b554b.zip
FreeBSD-src-9b1ae764a6c40a58ca034bc9534df3ba574b554b.tar.gz
- ${WRKSRC} might be missing when the autotools fixup is running.
Account for this. Reported by: Mykola Dzham <i@levsha.me>
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.port.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk
index f5b98e2..96b1df2 100644
--- a/share/mk/bsd.port.mk
+++ b/share/mk/bsd.port.mk
@@ -18,10 +18,10 @@ _WITHOUT_SRCCONF=
.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 \
+ test -d ${WRKSRC} && 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)/' {} +
+ -e 's/freebsd\[123\]\*)/SHOULDNOTMATCHANYTHING2)/' {} + || /usr/bin/true
.ORDER: run-autotools run-autotools-fixup do-configure
do-configure: run-autotools-fixup
OpenPOWER on IntegriCloud