progress icon indicating copy to clipboard operation
progress copied to clipboard

Patch for Makefile for ncursesw

Open IronBug opened this issue 7 years ago • 0 comments

This is not a big issue. It's an useful utility, but on some Linux distros there's no ncurses, just ncursesw. So make fails. Here I offer a lil patch for the Makefile. It works. Maybe it could be added as variant, if ncurses library is not found, or as second Makefile for unicode systems.

diff --git a/Makefile b/Makefile
index 83ab136..3de3af0 100644
--- a/Makefile
+++ b/Makefile
@@ -8,13 +8,13 @@ ifeq ($(UNAME), Linux)
     ifeq (, $(shell which $(PKG_CONFIG) 2> /dev/null))
     $(error "pkg-config command not found")
     endif
-    ifeq (, $(shell $(PKG_CONFIG) ncurses --libs 2> /dev/null))
-    $(error "ncurses package not found")
+    ifeq (, $(shell $(PKG_CONFIG) ncursesw --libs 2> /dev/null))
+    $(error "ncursesw package not found")
     endif
-    override LDFLAGS += $(shell $(PKG_CONFIG) ncurses --libs)
+    override LDFLAGS += $(shell $(PKG_CONFIG) ncursesw --libs)
 endif
 ifeq ($(UNAME), Darwin)
-    override LDFLAGS += -lncurses
+    override LDFLAGS += -lncursesw
 endif
 PREFIX ?= /usr/local
 BINDIR = $(PREFIX)/bin

IronBug avatar Feb 10 '18 07:02 IronBug