slackbuilds_ponce/games/pushover/luajit.diff
B. Watson b3b7cd9459
games/pushover: Build with lua51.
Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2024-11-02 19:28:34 +07:00

22 lines
958 B
Diff

diff -Naur pushover-0.0.3/configure.ac pushover-0.0.3.patched/configure.ac
--- pushover-0.0.3/configure.ac 2011-05-11 18:54:33.000000000 -0000
+++ pushover-0.0.3.patched/configure.ac 2024-10-18 20:03:50.231244910 -0000
@@ -35,8 +35,7 @@
# Checks for libraries.
AC_MSG_CHECKING([for Lua package name])
-PKG_CHECK_EXISTS([lua5.1], [LUA="lua5.1"],
- [PKG_CHECK_EXISTS([lua-5.1], [LUA="lua-5.1"], [LUA="lua"])])
+PKG_CHECK_EXISTS([luajit], [LUA="luajit"])
AC_MSG_RESULT([$LUA])
PKG_CHECK_EXISTS([zlib], [ZLIB="zlib >= 1.2.3"],
@@ -48,7 +47,7 @@
PKG_CHECK_EXISTS([SDL_ttf], [SDL_TTF="SDL_ttf >= 2.0.0"],
[AC_CHECK_LIB([SDL_ttf], [main], [], [AC_MSG_ERROR([Unable to find SDL_ttf.])])])
-PKG_CHECK_MODULES([DEPS], [$ZLIB libpng >= 1.2.40 sdl >= 1.2.0 $SDL_MIXER $SDL_TTF $LUA >= 5.1])
+PKG_CHECK_MODULES([DEPS], [$ZLIB libpng >= 1.2.40 sdl >= 1.2.0 $SDL_MIXER $SDL_TTF $LUA >= 2.0])
CPPFLAGS="$CPPFLAGS $DEPS_CFLAGS"
LIBS="$LIBS $DEPS_LIBS"