--- a/crawl-ref/source/Makefile.orig 2020-03-22 05:52:08.000000000 +0100
+++ b/crawl-ref/source/Makefile 2020-04-30 22:26:21.726752647 +0200
@@ -610,33 +610,33 @@
BUILD_LUA = yes
endif
else
- ifneq ($(shell $(PKGCONFIG) lua5.1 --exists || echo no),)
- ifneq ($(shell $(PKGCONFIG) lua-5.1 --exists || echo no),)
- ifneq ($(shell $(PKGCONFIG) lua51 --exists || echo no),)
+ ifneq ($(shell $(PKGCONFIG) lua --exists || echo no),)
+ ifneq ($(shell $(PKGCONFIG) lua --exists || echo no),)
+ ifneq ($(shell $(PKGCONFIG) lua --exists || echo no),)
ifneq ($(shell $(PKGCONFIG) lua --exists || echo no),)
BUILD_LUA = yes
else
- ifeq ($(shell $(PKGCONFIG) lua --modversion | head -c 3),5.1)
+ ifeq ($(shell $(PKGCONFIG) lua --modversion | head -c 3),5.3)
LUA_PACKAGE = lua
else
BUILD_LUA = yes
endif
endif
else
- LUA_PACKAGE = lua51
+ LUA_PACKAGE = lua
endif
else
- LUA_PACKAGE = lua-5.1
+ LUA_PACKAGE = lua
endif
else
- LUA_PACKAGE = lua5.1
+ LUA_PACKAGE = lua
endif
endif
endif
endif
ifndef BUILD_LUA
ifndef LUA_PACKAGE
- LUA_PACKAGE = lua5.1
+ LUA_PACKAGE = lua
endif
INCLUDES_L += $(shell $(PKGCONFIG) $(LUA_PACKAGE) --cflags-only-I | sed -e 's/-I/-isystem /')
CFLAGS_L += $(shell $(PKGCONFIG) $(LUA_PACKAGE) --cflags-only-other)