void-packages/srcpkgs/ifstatus/patches/ifstatus-1.1.0-tinfo.patch
2016-06-19 00:00:36 +02:00

22 lines
470 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,7 @@
# Makefile for IFStatus
# Gabriel Montenegro
-GCC = g++
-LDFLAGS = -lncurses
-CFLAGS = -O2 -Wall
+LDLIBS = $(shell pkg-config --libs ncursesw)
BIN = ifstatus
OBJ = BorderDecorator.o\
@@ -30,7 +28,7 @@
all : ifstatus printdone
ifstatus : $(OBJ)
- $(GCC) $(CFLAGS) $(LDFLAGS) $^ -o $@
+ $(LINK.cc) $^ $(LDLIBS) -o $@
printdone:
@if [ -e "./${BIN}" ]; then echo "Compiled.."; else echo "Error compiling!"; fi