svn commit: r536422 - head/shells/fish
Alan Somers
asomers at FreeBSD.org
Sun May 24 20:57:47 UTC 2020
Author: asomers (src committer)
Date: Sun May 24 20:57:47 2020
New Revision: 536422
URL: https://svnweb.freebsd.org/changeset/ports/536422
Log:
shells/fish: link against devel/ncurses if it's installed at build time
shells/fish is built using CMake and requires the FindCurses module. Unless
CURSES_NEED_NCURSES=TRUE, shells/fish will always be built against ncurses
from base, even when devel/ncurses is already installed.
This change has no effect for packages built from Poudriere, which will not
install devel/ncurses when building fish.
PR: 246365
Submitted by: Dustin Boyd <memreflect at pm.me>
Modified:
head/shells/fish/Makefile
Modified: head/shells/fish/Makefile
==============================================================================
--- head/shells/fish/Makefile Sun May 24 20:48:02 2020 (r536421)
+++ head/shells/fish/Makefile Sun May 24 20:57:47 2020 (r536422)
@@ -38,6 +38,14 @@ NLS_CMAKE_BOOL= WITH_GETTEXT
PORTDOCS= *
+.include <bsd.port.pre.mk>
+
+.if ${NCURSESBASE:M${LOCALBASE}}
+CMAKE_ARGS+= -DCURSES_NEED_NCURSES=TRUE
+.else
+.info NCURSES BASE
+.endif
+
post-install:
.for i in fish fish_indent fish_key_reader
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${i}
@@ -50,4 +58,4 @@ post-stage-MANPAGES-off:
@${RM} -rf ${STAGEDIR}${MANPREFIX}/man/man1
@${RM} -rf ${STAGEDIR}${DATADIR}/man
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-head
mailing list