diff --git a/graphics/ttyplot/files/patch-Makefile b/graphics/ttyplot/files/patch-Makefile new file mode 100644 index 000000000000..442e508ff879 --- /dev/null +++ b/graphics/ttyplot/files/patch-Makefile @@ -0,0 +1,12 @@ +--- Makefile.orig 2024-09-20 14:10:26 UTC ++++ Makefile +@@ -2,8 +2,7 @@ CFLAGS += -Wall -Wextra + PREFIX ?= /usr/local + MANPREFIX ?= $(PREFIX)/man + CFLAGS += -Wall -Wextra +-CFLAGS += `pkg-config --cflags ncursesw` +-LDLIBS += `pkg-config --libs ncursesw` -lm ++LDLIBS += -lcurses -lm + + all: ttyplot stresstest + diff --git a/graphics/ttyplot/files/patch-ttyplot.c b/graphics/ttyplot/files/patch-ttyplot.c new file mode 100644 index 000000000000..d95551e375cb --- /dev/null +++ b/graphics/ttyplot/files/patch-ttyplot.c @@ -0,0 +1,11 @@ +--- ttyplot.c.orig 2024-08-02 02:32:02 UTC ++++ ttyplot.c +@@ -9,7 +9,7 @@ + + // This is needed on macOS to get the ncurses widechar API, and pkg-config fails to + // define it. +-#ifdef __APPLE__ ++#if defined (__APPLE__) || defined (__FreeBSD__) + #define _XOPEN_SOURCE_EXTENDED + #else + // This is needed for musl libc