progress: Add package

Signed-off-by: Nikil Mehta nikil.mehta@gmail.com
This commit is contained in:
Nikil Mehta
2016-11-26 01:31:31 -08:00
parent cce1bfbfb8
commit 98791614b8
2 changed files with 77 additions and 0 deletions
@@ -0,0 +1,23 @@
--- a/Makefile 2016-11-26 01:24:23.392903433 -0800
+++ b/Makefile 2016-11-26 01:24:41.084939184 -0800
@@ -1,19 +1,6 @@
OBJ = progress
override CFLAGS += -g -Wall -D_FILE_OFFSET_BITS=64
-override LDFLAGS += -lm
-UNAME := $(shell uname)
-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")
- endif
- override LDFLAGS += $(shell pkg-config ncurses --libs)
-endif
-ifeq ($(UNAME), Darwin)
- override LDFLAGS += -lncurses
-endif
+override LDFLAGS += -lm -lncursesw
PREFIX ?= /usr/local
BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/share/man/man1