From 9b1ae764a6c40a58ca034bc9534df3ba574b554b Mon Sep 17 00:00:00 2001 From: stas Date: Fri, 7 Oct 2011 23:43:51 +0000 Subject: - ${WRKSRC} might be missing when the autotools fixup is running. Account for this. Reported by: Mykola Dzham --- share/mk/bsd.port.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share/mk') 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 -- cgit v1.1