diff options
author | stas <stas@FreeBSD.org> | 2011-10-08 00:01:17 +0000 |
---|---|---|
committer | stas <stas@FreeBSD.org> | 2011-10-08 00:01:17 +0000 |
commit | a554b0aa741ae980b6a410cc7d3a51367b9a6451 (patch) | |
tree | 624966be0b9f90191d6c6c429b247c1aa44733df /share/mk | |
parent | a4a1ec6b649211ccec5b5e059d0d278c5d62f08e (diff) | |
download | FreeBSD-src-a554b0aa741ae980b6a410cc7d3a51367b9a6451.zip FreeBSD-src-a554b0aa741ae980b6a410cc7d3a51367b9a6451.tar.gz |
- Add a couple of more sed subsitutions needed to get the correct
libtool.m4. With these fixes libtool will correctly indentify the
system as ELF (and not a.out).
- While here, change the substitutions so they're still correctly
match freebsd1.x, freebsd2.x etc.
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/bsd.port.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk index 96b1df2..f38c79e 100644 --- a/share/mk/bsd.port.mk +++ b/share/mk/bsd.port.mk @@ -20,8 +20,12 @@ _WITHOUT_SRCCONF= run-autotools-fixup: 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)/' {} + || /usr/bin/true + -exec sed -i '' -e 's|freebsd1\*)|freebsd1.\*)|g' \ + -e 's|freebsd\[12\]\*)|freebsd[12].*)|g' \ + -e 's|freebsd\[123\]\*)|freebsd[123].*)|g' \ + -e 's|freebsd\[\[12\]\]\*)|freebsd[[12]].*)|g' \ + -e 's|freebsd\[\[123\]\]\*)|freebsd[[123]].*)|g' \ + {} + || /usr/bin/true .ORDER: run-autotools run-autotools-fixup do-configure do-configure: run-autotools-fixup |