void-packages/srcpkgs/ifstatus/patches/ifstatus-1.1.0-tinfo.patch
2020-03-20 08:07:55 +01:00

23 lines
487 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
+all : ifstatus
ifstatus : $(OBJ)
- $(GCC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
+ $(LINK.cc) $^ $(LDLIBS) -o $@
printdone:
@if [ -e "./${BIN}" ]; then echo "Compiled.."; else echo "Error compiling!"; fi