diff options
author | stas <stas@FreeBSD.org> | 2011-10-07 23:43:51 +0000 |
---|---|---|
committer | stas <stas@FreeBSD.org> | 2011-10-07 23:43:51 +0000 |
commit | 9b1ae764a6c40a58ca034bc9534df3ba574b554b (patch) | |
tree | e806b45a3f8af651541f1960eaa38d85cbed0f40 /share | |
parent | 5364f6538033447b7b9b35cf3597fe59b0453392 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | share/mk/bsd.port.mk | 4 |
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 |