git: 23fa17f9e65a - main - graphics/ttyplot: Embrace pkgconfig, reduce local patches, strip binaries

From: Mateusz Piotrowski <0mp_at_FreeBSD.org>
Date: Wed, 02 Oct 2024 08:42:45 UTC
The branch main has been updated by 0mp:

URL: https://cgit.FreeBSD.org/ports/commit/?id=23fa17f9e65ad59f3246c01316e5fa6f3e2bb048

commit 23fa17f9e65ad59f3246c01316e5fa6f3e2bb048
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2024-10-02 08:39:29 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2024-10-02 08:42:07 +0000

    graphics/ttyplot: Embrace pkgconfig, reduce local patches, strip binaries
    
    PR:             281659
    Co-authored-by: mew14930xvi <mew14930xvi@inbox.lv>
---
 graphics/ttyplot/Makefile             |  5 ++++-
 graphics/ttyplot/files/patch-Makefile | 12 ------------
 2 files changed, 4 insertions(+), 13 deletions(-)

diff --git a/graphics/ttyplot/Makefile b/graphics/ttyplot/Makefile
index d3303760d85b..81d81e61764e 100644
--- a/graphics/ttyplot/Makefile
+++ b/graphics/ttyplot/Makefile
@@ -9,7 +9,7 @@ WWW=		https://github.com/tenox7/ttyplot
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		ncurses
+USES=		ncurses pkgconfig
 USE_GITHUB=	yes
 GH_ACCOUNT=	tenox7
 
@@ -17,4 +17,7 @@ MAKE_ARGS=	CFLAGS="${CFLAGS}" MANPREFIX="${PREFIX}/share/man"
 
 PLIST_FILES=	bin/${PORTNAME} share/man/man1/ttyplot.1.gz
 
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ttyplot
+
 .include <bsd.port.mk>
diff --git a/graphics/ttyplot/files/patch-Makefile b/graphics/ttyplot/files/patch-Makefile
deleted file mode 100644
index 442e508ff879..000000000000
--- a/graphics/ttyplot/files/patch-Makefile
+++ /dev/null
@@ -1,12 +0,0 @@
---- 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
-