001_set-ncurses-lib.patch (736B)
1 --- a/Makefile 2016-11-26 01:24:23.392903433 -0800 2 +++ b/Makefile 2016-11-26 01:24:41.084939184 -0800 3 @@ -1,19 +1,6 @@ 4 OBJ = progress 5 override CFLAGS += -g -Wall -D_FILE_OFFSET_BITS=64 6 -override LDFLAGS += -lm 7 -UNAME := $(shell uname) 8 -ifeq ($(UNAME), Linux) 9 - ifeq (, $(shell which pkg-config 2> /dev/null)) 10 - $(error "pkg-config command not found") 11 - endif 12 - ifeq (, $(shell pkg-config ncurses --libs 2> /dev/null)) 13 - $(error "ncurses package not found") 14 - endif 15 - override LDFLAGS += $(shell pkg-config ncurses --libs) 16 -endif 17 -ifeq ($(UNAME), Darwin) 18 - override LDFLAGS += -lncurses 19 -endif 20 +override LDFLAGS += -lm -lncursesw 21 PREFIX ?= /usr/local 22 BINDIR = $(PREFIX)/bin 23 MANDIR = $(PREFIX)/share/man/man1