graphics/ttyplot: Embrace pkgconfig, reduce local patches, strip binaries
PR: 281659 Co-authored-by: mew14930xvi <mew14930xvi@inbox.lv>
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user