1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/lang/smlnj/files/do-patch-asdl_config.sh
Steve Wills 09b003ee49 lang/smlnj: Update to 110.98, unbreak build with Clang >= 10
PR:		248431
Submitted by:	Johannes 5 <joemann@beefree.free.de> (maintainer)
2020-08-02 13:30:50 +00:00

14 lines
465 B
Bash

--- asdl/config.sh.orig 2019-10-27 12:44:07 UTC
+++ asdl/config.sh
@@ -40,4 +40,10 @@ fi
SMLNJ_CMD=$INSTALLDIR/bin/sml
export SMLNJ_CMD
+# "convert" gmake -> bmake
+find . -name Makefile.in | \
+xargs sed -E -i "" \
+ -e 's/^include[[:space:]]+(.+)/.include "\1"/' \
+ -e 's@\$\(patsubst %,%/([^,]+),\$\(([^)]+)\)\)@${\2:C/(.+)\/\\1\\\/\1/}@' \
+ -e 's@\$\(patsubst %([^,]+),%([^,]+),\$\(([^)]+)\)\)@${\3:C/\1/\2/}@'
./configure $SIZE_OPT --prefix=$INSTALLDIR