summaryrefslogtreecommitdiff
path: root/games/xnethack/files/patch-sys-unix-Makefile.utl
diff options
context:
space:
mode:
Diffstat (limited to 'games/xnethack/files/patch-sys-unix-Makefile.utl')
-rw-r--r--games/xnethack/files/patch-sys-unix-Makefile.utl33
1 files changed, 33 insertions, 0 deletions
diff --git a/games/xnethack/files/patch-sys-unix-Makefile.utl b/games/xnethack/files/patch-sys-unix-Makefile.utl
new file mode 100644
index 000000000000..10fd6bc5aa42
--- /dev/null
+++ b/games/xnethack/files/patch-sys-unix-Makefile.utl
@@ -0,0 +1,33 @@
+--- sys/unix/Makefile.utl.orig 2021-03-22 22:28:14 UTC
++++ sys/unix/Makefile.utl
+@@ -93,18 +93,25 @@ NHSROOT=..
+ # flags for debugging:
+ # CFLAGS = -g -I../include
+
+-#CFLAGS = -O -I../include
+-#LFLAGS =
++CFLAGS += -I../include -I${LUA_INCDIR}
++ifeq ("$(GRAPHICS)","X11_GRAPHICS")
++CFLAGS += -DX11_GRAPHICS
++endif
++ifeq ("$(GRAPHICS)","QT_GRAPHICS")
++CFLAGS += -DQT_GRAPHICS
++endif
++ifeq ("$(GRAPHICS)","GNOME_GRAPHICS")
++CFLAGS += -DGNOME_GRAPHICS
++endif
+
+-# -lm required by lua
+-LFLAGS += -lm
++LFLAGS = -L${LUA_LIBDIR}
+
+ # we specify C preprocessor flags via CFLAGS; files built with default rules
+ # might include $(CPPFLAGS) which could get a value from user's environment;
+ # we avoid that by forcing it empty rather than by overriding default rules
+ CPPFLAGS =
+
+-LIBS =
++LIBS = -llua-${LUA_VER} -lm
+
+ OBJDIR = ../src
+