svn commit: r404382 - head/shells/zsh
Adam Weinberger
adamw at FreeBSD.org
Thu Dec 24 17:50:57 UTC 2015
Author: adamw
Date: Thu Dec 24 17:50:56 2015
New Revision: 404382
URL: https://svnweb.freebsd.org/changeset/ports/404382
Log:
Fix ncurses detection properly. Now zsh builds and packages properly with
base and ports ncurses, static or non-static.
Many thanks to bapt for showing me the magic trick here!
Modified:
head/shells/zsh/Makefile
Modified: head/shells/zsh/Makefile
==============================================================================
--- head/shells/zsh/Makefile Thu Dec 24 17:48:11 2015 (r404381)
+++ head/shells/zsh/Makefile Thu Dec 24 17:50:56 2015 (r404382)
@@ -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="ncursesw ncurses" --with-tcsetpgrp \
+CONFIGURE_ARGS= --with-tcsetpgrp \
--enable-function-subdirs --enable-multibyte \
--sysconfdir=${PREFIX}/etc
@@ -76,8 +76,8 @@ MEM_CONFIGURE_ENABLE= zsh-mem
SECURE_FREE_CONFIGURE_ENABLE= zsh-secure-free
MAILDIR_CONFIGURE_ENABLE= maildir-support
STATIC_LDFLAGS= -static
-STATIC_CONFIGURE_ON= --disable-dynamic
-STATIC_CONFIGURE_OFF= --enable-dynamic
+STATIC_CONFIGURE_ON= --disable-dynamic --with-term-lib="tinfow tinfo"
+STATIC_CONFIGURE_OFF= --enable-dynamic --with-term-lib="ncursesw ncurses"
DEBUG_CONFIGURE_ENABLE= zsh-debug
.include <bsd.port.pre.mk>
@@ -86,10 +86,6 @@ 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
More information about the svn-ports-all
mailing list