graphics/ttyplot: Embrace pkgconfig, reduce local patches, strip binaries

PR:		281659
Co-authored-by:	mew14930xvi <mew14930xvi@inbox.lv>
This commit is contained in:
Mateusz Piotrowski
2024-10-02 10:39:29 +02:00
parent abcda10061
commit 23fa17f9e6
2 changed files with 4 additions and 13 deletions

View File

@@ -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>

View File

@@ -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