Build: fix hardcoded pkg-config invocation
This fixes #89.
Julian Ospald authored 7 years ago
William Hubbs committed 7 years ago
10 | 10 | |
11 | 11 | AR?= ar |
12 | 12 | CP?= cp |
13 | PKG_CONFIG?= pkg-config | |
13 | 14 | ECHO?= echo |
14 | 15 | INSTALL?= install |
15 | 16 | RANLIB?= ranlib |
0 | 0 | ifeq (${MKTERMCAP},ncurses) |
1 | TERMCAP_CFLAGS:= $(shell pkg-config ncurses --cflags 2> /dev/null) | |
2 | LTERMCAP:= $(shell pkg-config ncurses --libs 2> /dev/null) | |
1 | TERMCAP_CFLAGS:= $(shell ${PKG_CONFIG} ncurses --cflags 2> /dev/null) | |
2 | LTERMCAP:= $(shell ${PKG_CONFIG} ncurses --libs 2> /dev/null) | |
3 | 3 | ifeq ($(LTERMCAP),) |
4 | 4 | LIBTERMCAP?= -lncurses |
5 | 5 | else |