termux-packages/x11-packages/openttd/config.lib.patch

28 lines
1.0 KiB
Diff
Raw Normal View History

2020-04-27 16:35:20 +02:00
diff -uNr OpenTTD-1.10.1/config.lib OpenTTD-1.10.1.mod/config.lib
--- OpenTTD-1.10.1/config.lib 2020-04-13 20:39:51.000000000 +0300
+++ OpenTTD-1.10.1.mod/config.lib 2020-04-27 17:34:56.453223975 +0300
@@ -1579,10 +1579,6 @@
2019-06-30 00:08:05 +02:00
fi
fi
2020-04-27 16:35:20 +02:00
- if [ "$os" != "CYGWIN" ] && [ "$os" != "HAIKU" ] && [ "$os" != "OPENBSD" ] && [ "$os" != "MINGW" ] && [ "$os" != "OSX" ] && [ "$os" != "OS2" ]; then
2019-06-30 00:08:05 +02:00
- LIBS="$LIBS -lpthread"
- fi
-
2020-04-27 16:35:20 +02:00
if [ "$os" != "CYGWIN" ] && [ "$os" != "HAIKU" ] && [ "$os" != "MINGW" ]; then
2019-06-30 00:08:05 +02:00
LIBS="$LIBS -lc"
fi
2020-04-27 16:35:20 +02:00
@@ -2608,10 +2604,10 @@
2019-06-30 00:08:05 +02:00
log 2 "detecting $2"
if [ "$1" = "1" ] || [ "$1" = "" ] || [ "$1" = "2" ]; then
- eval "$2=`ls -1 /usr/include/$4*.h 2>/dev/null | egrep \"\/$5\$\"`"
+ eval "$2=`ls -1 @TERMUX_PREFIX@/include/$4*.h 2>/dev/null | egrep \"\/$5\$\"`"
eval "res=\$$2"
if [ -z "$res" ]; then
2020-04-27 16:35:20 +02:00
- log 2 " trying /usr/include/$4$5... no"
+ log 2 " trying @TERMUX_PREFIX@/include/$4$5... no"
eval "$2=`ls -1 /usr/local/include/$4*.h 2>/dev/null | egrep \"\/$5\$\"`"
fi
eval "res=\$$2"