-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathsys-unix-hints-linuxf.patch
More file actions
52 lines (42 loc) · 1.67 KB
/
Copy pathsys-unix-hints-linuxf.patch
File metadata and controls
52 lines (42 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
--- ./nethack-3.6.0/sys/unix/hints/linux 2015-11-16 23:47:05.000000000 +1100
+++ ./sys/unix/hints/linux 2017-05-17 12:59:56.077999917 +1000
@@ -10,9 +10,8 @@
#PREFIX=/usr
-PREFIX=$(wildcard ~)/nh/install
-HACKDIR=$(PREFIX)/games/lib/$(GAME)dir
-SHELLDIR = $(PREFIX)/games
+HACKDIR=$(PREFIX)/share/$(GAME)
+#SHELLDIR = $(PREFIX)/games
INSTDIR=$(HACKDIR)
VARDIR = $(HACKDIR)
@@ -20,8 +19,8 @@
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\"
+CFLAGS=-g -Os -I../include -DNOTPARMDECL $(CFLAGS1) -DDLB
+CFLAGS1=-DCOMPRESS=\"/data/data/com.termux/files/usr/bin/applets/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
CFLAGS+=-DSYSCF -DSYSCF_FILE=\"$(HACKDIR)/sysconf\" -DSECURE
CFLAGS+=-DHACKDIR=\"$(HACKDIR)\"
@@ -33,7 +32,7 @@
WINOBJ = $(WINTTYOBJ)
WINLIB = $(WINTTYLIB)
-WINTTYLIB=-lcurses
+WINTTYLIB=-lncurses
CHOWN=true
CHGRP=true
--- ../nethacktest/nethack-3.6.0/sys/unix/Makefile.utl 2015-12-07 19:26:01.000000000 +1100
+++ ./sys/unix/Makefile.utl 2017-05-18 09:58:56.480817652 +1000
@@ -104,11 +104,11 @@
# yacc/lex programs to use to generate *_comp.h, *_lex.c, and *_yacc.c.
# if, instead of yacc/lex you have bison/flex, comment/uncomment the following.
-YACC = yacc
-LEX = lex
-# YACC = bison -y
+#YACC = yacc
+#LEX = lex
+YACC = bison -y
# YACC = byacc
-# LEX = flex
+LEX = flex
# these are the names of the output files from YACC/LEX. Under MS-DOS
# and similar systems, they may differ