diff options
author | adamw <adamw@FreeBSD.org> | 2015-12-24 06:56:46 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2015-12-24 06:56:46 +0800 |
commit | b94c06ab885d4b3a1fb199b34d338c1b524b1ca6 (patch) | |
tree | 5885b525a59df4fafae85712c969449461cb8711 /shells | |
parent | f48f117ac78898e08fede72ebd900adbb0c61e8d (diff) | |
download | freebsd-ports-gnome-b94c06ab885d4b3a1fb199b34d338c1b524b1ca6.tar.gz freebsd-ports-gnome-b94c06ab885d4b3a1fb199b34d338c1b524b1ca6.tar.zst freebsd-ports-gnome-b94c06ab885d4b3a1fb199b34d338c1b524b1ca6.zip |
Partially revert r403755. It can't build the curses module against ncurses from
ports. It probably can, but configure is too smart to figure that out.
I have no confidence that linking against curses from ports results in a properly
working zshell. So, for now, back out the change. It will build a shared lib zsh
against ncurses from ports, but breaks statically-linked zsh's. Mark the port
as IGNORE if we're using ncurses from ports and building a static zsh.
Also, remove a regression-test target that isn't useful anymore (thanks to bapt
for the reminder about this).
I am not enthused about this change. It doesn't really "fix" the below PR, so
much as shoot ourselves in the other foot instead.
PR: 205500
Diffstat (limited to 'shells')
-rw-r--r-- | shells/zsh/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/shells/zsh/Makefile b/shells/zsh/Makefile index bebc9657da26..0b685a6ff5ed 100644 --- a/shells/zsh/Makefile +++ b/shells/zsh/Makefile @@ -41,7 +41,7 @@ TEST_TARGET= test CPPFLAGS+= -I${LOCALBASE}/include -DBOOL_DEFINED LDFLAGS+= -L${LOCALBASE}/lib -Wl,--as-needed CONFIGURE_ENV+= zsh_cv_sys_path_dev_fd=no -CONFIGURE_ARGS= --with-term-lib="tinfow tinfo" --with-tcsetpgrp \ +CONFIGURE_ARGS= --with-term-lib="ncursesw ncurses" --with-tcsetpgrp \ --enable-function-subdirs --enable-multibyte \ --sysconfdir=${PREFIX}/etc @@ -86,6 +86,10 @@ DEBUG_CONFIGURE_ENABLE= zsh-debug CONFIGURE_ENV+= ac_cv_lib_iconv_libiconv=no .endif +.if (${NCURSESBASE} == ${LOCALBASE}) && ${PORT_OPTIONS:MSTATIC} +IGNORE= cannot statically link against ncurses from ports. Either deinstall the ncurses port or turn off the STATIC option +.endif + post-patch: @${REINPLACE_CMD} -i '' -e '1s|zsh|${zsh_CMD}|' ${WRKSRC}/Functions/Misc/run-help-ip @${REINPLACE_CMD} -e '/LIBS/s/-lrt//' ${WRKSRC}/configure @@ -133,7 +137,4 @@ post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}) -regression-test: - @(cd ${WRKSRC}; ${SETENV} -i ${MAKE} check) - .include <bsd.port.post.mk> |