termux-packages/packages/nethack/sys-unix-hints-linux.patch

40 lines
1.2 KiB
Diff
Raw Normal View History

2020-10-11 15:28:55 +02:00
--- ../NetHack-NetHack-3.6.6_Released/sys/unix/hints/linux 2020-03-08 18:29:31.000000000 +0100
+++ ./sys/unix/hints/linux 2020-10-11 15:24:45.859200937 +0200
@@ -9,20 +9,20 @@
# for Ubuntu dapper.
2019-03-01 02:31:13 +01:00
-#PREFIX=/usr
2019-03-01 02:31:13 +01:00
-PREFIX=$(wildcard ~)/nh/install
+GAME=nethack
2019-03-01 02:31:13 +01:00
+PREFIX=@TERMUX_PREFIX@
HACKDIR=$(PREFIX)/games/lib/$(GAME)dir
2020-10-11 13:25:55 +02:00
-SHELLDIR = $(PREFIX)/games
-INSTDIR=$(HACKDIR)
-VARDIR = $(HACKDIR)
+SHELLDIR = $(DESTDIR)$(PREFIX)/games
2020-10-11 15:28:55 +02:00
+INSTDIR = $(DESTDIR)$(HACKDIR)
2020-10-11 13:25:55 +02:00
+VARDIR = $(DESTDIR)$(HACKDIR)
2019-03-01 02:31:13 +01:00
POSTINSTALL=cp -n sys/unix/sysconf $(INSTDIR)/sysconf; $(CHOWN) $(GAMEUID) $(INSTDIR)/sysconf; $(CHGRP) $(GAMEGRP) $(INSTDIR)/sysconf; chmod $(VARFILEPERM) $(INSTDIR)/sysconf;
2020-01-13 14:36:08 +01:00
-CFLAGS=-g -O -I../include -DNOTPARMDECL
2020-10-11 15:28:55 +02:00
+CFLAGS+= -I../include -DNOTPARMDECL
2020-01-13 14:36:08 +01:00
CFLAGS+=-DDLB
2019-03-01 02:31:13 +01:00
-CFLAGS+=-DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
2020-01-13 14:36:08 +01:00
+CFLAGS+=-DCOMPRESS=\"@TERMUX_PREFIX@/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
2019-03-01 02:31:13 +01:00
CFLAGS+=-DSYSCF -DSYSCF_FILE=\"$(HACKDIR)/sysconf\" -DSECURE
CFLAGS+=-DTIMED_DELAY
CFLAGS+=-DHACKDIR=\"$(HACKDIR)\"
@@ -37,7 +37,7 @@
LINK=$(CC)
# Only needed for GLIBC stack trace:
-LFLAGS=-rdynamic
+LFLAGS+=-rdynamic
WINSRC = $(WINTTYSRC) $(WINCURSESSRC)
WINOBJ = $(WINTTYOBJ) $(WINCURSESOBJ)