git: 7bcdcaa5437f - main - comms/predict: fix ncurses with ports and futur split in base

Baptiste Daroussin bapt at FreeBSD.org
Fri Sep 24 13:11:59 UTC 2021


The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7bcdcaa5437f420895609d977bdea0f6e8589e9d

commit 7bcdcaa5437f420895609d977bdea0f6e8589e9d
Author:     Baptiste Daroussin <bapt at FreeBSD.org>
AuthorDate: 2021-09-24 09:10:35 +0000
Commit:     Baptiste Daroussin <bapt at FreeBSD.org>
CommitDate: 2021-09-24 13:11:52 +0000

    comms/predict: fix ncurses with ports and futur split in base
    
    While here, avoid useless call on sed where easily possible
---
 comms/predict/Makefile       | 5 ++---
 comms/predict/files/Makefile | 7 +------
 2 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/comms/predict/Makefile b/comms/predict/Makefile
index 138e6d343db2..7212cf4a9822 100644
--- a/comms/predict/Makefile
+++ b/comms/predict/Makefile
@@ -14,12 +14,11 @@ LIB_DEPENDS=	libasound.so:audio/alsa-lib
 
 USES=		ncurses
 INSTALL_TARGET=	install install.man
+MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}" PREFIX="${PREFIX}" STAGEDIR="${STAGEDIR}"
 
 post-patch:
 	@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' ${FILESDIR}/predict.h > ${WRKSRC}/predict.h
 	@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' ${FILESDIR}/vocalizer.h > ${WRKSRC}/vocalizer/vocalizer.h
-	@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' -e 's|%%STAGEDIR%%|${STAGEDIR}|g' \
-		-e 's|%%CC%%|${CC}|g' -e 's|%%CFLAGS%%|${CFLAGS}|g' \
-			${FILESDIR}/Makefile > ${WRKSRC}/Makefile
+	@${CP} ${FILESDIR}/Makefile ${WRKSRC}/Makefile
 
 .include <bsd.port.mk>
diff --git a/comms/predict/files/Makefile b/comms/predict/files/Makefile
index 07935eae81d0..cf449317fbe5 100644
--- a/comms/predict/files/Makefile
+++ b/comms/predict/files/Makefile
@@ -1,12 +1,7 @@
-PREFIX=		%%PREFIX%%
-STAGEDIR=	%%STAGEDIR%%
-CC=			%%CC%%
-CFLAGS=		%%CFLAGS%%
-
 default:	all
 all:		predict vocalizer/vocalizer
 
-LIBS = ${LDFLAGS} -pthread -lm -lncurses
+LIBS = ${LDFLAGS} -pthread -lm -lncursesw
 predict:	predict.c predict.h
 		${CC} ${CFLAGS} -o predict predict.c ${LIBS}
 


More information about the dev-commits-ports-all mailing list