dvtm: Switch to github
[termux-packages] / packages / ne / src-makefile.patch
CommitLineData
35b4ba65
FF
1diff -u -r ../ne-3.1.0/src/makefile ./src/makefile
2--- ../ne-3.1.0/src/makefile 2017-04-04 12:35:59.000000000 +0200
3+++ ./src/makefile 2017-05-04 23:26:27.136260906 +0200
4@@ -28,7 +28,7 @@
5 # where ne tries to read system-wide information (configuration
6 # files, etc.).
7
8-NE_GLOBAL_DIR = /usr/local/share/ne
9+NE_GLOBAL_DIR = $(PREFIX)/share/ne
10
11 PROGRAM = ne
12
13@@ -81,13 +81,14 @@
14 NE_DEBUG=
15 NE_TEST=
16
17-CC=c99
18+CC?=c99
19
20 ifeq ($(CC),gcc)
21 GCCFLAGS=-std=c99 -Wall -Wno-parentheses
22 endif
23
24 CFLAGS=$(OPTS) $(GCCFLAGS) \
25+ $(CPPFLAGS) \
26 -D_REGEX_LARGE_OFFSETS -D_GNU_SOURCE -DSTDC_HEADERS -Dinline=__inline__ \
27 $(if $(NE_NOWCHAR), -DNOWCHAR,) \
28 $(if $(NE_TEST), -DNE_TEST -coverage,) \
29@@ -96,7 +97,7 @@
30 $(if $(NE_ANSI), -DTERMCAP -DANSI,)
31
32
33-LIBS=$(if $(NE_TERMCAP)$(NE_ANSI),,-lcurses)
34+LIBS=$(if $(NE_TERMCAP)$(NE_ANSI),,-lncurses)
35
36 ne: $(OBJS) $(if $(NE_TERMCAP)$(NE_ANSI),$(TERMCAPOBJS),)
37 $(CC) $(OPTS) $(LDFLAGS) $(if $(NE_TEST), -coverage -lefence,) $^ -lm $(LIBS) -o $(PROGRAM)