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

26 lines
981 B
Diff
Raw Normal View History

2016-05-27 07:54:46 +02:00
diff -u -r ../nethack-3.6.0/sys/unix/hints/linux ./sys/unix/hints/linux
--- ../nethack-3.6.0/sys/unix/hints/linux 2015-11-16 07:47:05.000000000 -0500
+++ ./sys/unix/hints/linux 2016-05-21 20:41:10.277016227 -0400
@@ -10,9 +10,9 @@
#PREFIX=/usr
-PREFIX=$(wildcard ~)/nh/install
-HACKDIR=$(PREFIX)/games/lib/$(GAME)dir
-SHELLDIR = $(PREFIX)/games
+PREFIX=@TERMUX_PREFIX@
+HACKDIR=$(PREFIX)/share/$(GAME)
+#SHELLDIR = $(PREFIX)/games
INSTDIR=$(HACKDIR)
VARDIR = $(HACKDIR)
@@ -21,7 +21,7 @@
POSTINSTALL=cp -n sys/unix/sysconf $(INSTDIR)/sysconf; $(CHOWN) $(GAMEUID) $(INSTDIR)/sysconf; $(CHGRP) $(GAMEGRP) $(INSTDIR)/sysconf; chmod $(VARFILEPERM) $(INSTDIR)/sysconf;
CFLAGS=-g -O -I../include -DNOTPARMDECL $(CFLAGS1) -DDLB
-CFLAGS1=-DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
+CFLAGS1=-DCOMPRESS=\"@TERMUX_PREFIX@/bin/applets/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
CFLAGS+=-DSYSCF -DSYSCF_FILE=\"$(HACKDIR)/sysconf\" -DSECURE
CFLAGS+=-DHACKDIR=\"$(HACKDIR)\"