mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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.
This commit is contained in:
parent
db1fda10b4
commit
df8d253fb4
1 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue