chiark / gitweb /
Refactor build of tty-clock (#685)
[termux-packages] / packages / tty-clock / Makefile.patch
1 diff --git a/Makefile b/Makefile
2 index 5028ee4..f3ce14f 100644
3 --- a/Makefile
4 +++ b/Makefile
5 @@ -9,16 +9,8 @@ PREFIX ?= /usr/local
6  INSTALLPATH = ${DESTDIR}${PREFIX}/bin
7  MANPATH = ${DESTDIR}${PREFIX}/share/man/man1
8  
9 -ifeq ($(shell sh -c 'which ncurses5-config>/dev/null 2>/dev/null && echo y'), y)
10 -       CFLAGS += -Wall -g $$(ncurses5-config --cflags)
11 -       LDFLAGS += $$(ncurses5-config --libs)
12 -else ifeq ($(shell sh -c 'which ncursesw5-config>/dev/null 2>/dev/null && echo y'), y)
13 -               CFLAGS += -Wall -g $$(ncursesw5-config --cflags)
14 -               LDFLAGS += $$(ncursesw5-config --libs)
15 -else
16         CFLAGS += -Wall -g $$(pkg-config --cflags ncurses)
17         LDFLAGS += $$(pkg-config --libs ncurses)
18 -endif
19  
20  tty-clock : ${SRC}
21