git: 0256b0d8c17b - main - graphics/ttyplot: Add patches required for 1.7.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 30 Sep 2024 12:54:55 UTC
The branch main has been updated by 0mp: URL: https://cgit.FreeBSD.org/ports/commit/?id=0256b0d8c17be53a2ca88fc631b60098efc4cd8b commit 0256b0d8c17be53a2ca88fc631b60098efc4cd8b Author: Wolfgang Medina-Erhardt <medina-erhardt@punkt.de> AuthorDate: 2024-09-20 17:02:49 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2024-09-30 12:52:05 +0000 graphics/ttyplot: Add patches required for 1.7.0 The committer missed those two files when committing the original patch. PR: 281609 Fixes: 23ac00be48c4 graphics/ttyplot: Update version 1.4 => 1.7.0 --- graphics/ttyplot/files/patch-Makefile | 12 ++++++++++++ graphics/ttyplot/files/patch-ttyplot.c | 11 +++++++++++ 2 files changed, 23 insertions(+) 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