aboutsummaryrefslogtreecommitdiff
path: root/shells/zsh
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2015-12-15 04:02:17 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2015-12-15 04:02:17 +0000
commitab9cfed5a59f8c676ec06eb83ad0dcda69284a82 (patch)
tree4705996cc8fbae7bb7170268e5fbd8f7354181e7 /shells/zsh
parent8df76d479ea4fe8783d3a283228bf52c88862362 (diff)
downloadports-ab9cfed5a59f8c676ec06eb83ad0dcda69284a82.tar.gz
ports-ab9cfed5a59f8c676ec06eb83ad0dcda69284a82.zip
Fix static build against devel/ncurses by correcting how zsh tries to link
against the terminal libraries. No PORTREVISION bump as this shouldn't really change the generated packages. PR: 181720 Submitted by: wulf@mail.mipt.ru While here, fix a spacing nit and wrap compound commands in parens.
Notes
Notes: svn path=/head/; revision=403755
Diffstat (limited to 'shells/zsh')
-rw-r--r--shells/zsh/Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/shells/zsh/Makefile b/shells/zsh/Makefile
index 85e3c8dd52fb..bebc9657da26 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="ncursesw ncurses" --with-tcsetpgrp \
+CONFIGURE_ARGS= --with-term-lib="tinfow tinfo" --with-tcsetpgrp \
--enable-function-subdirs --enable-multibyte \
--sysconfdir=${PREFIX}/etc
@@ -51,7 +51,7 @@ EXTRA_PATCHES= ${FILESDIR}/extra-patch-bsdtar
OPTIONS_DEFINE= GDBM MEM SECURE_FREE MAILDIR PCRE STATIC DOCS DEBUG \
EXAMPLES
-OPTIONS_DEFAULT= SECURE_FREE MAILDIR
+OPTIONS_DEFAULT=SECURE_FREE MAILDIR
GDBM_DESC= Enable GDBM support (GPL)
MEM_DESC= Enable zsh-mem options
@@ -112,28 +112,28 @@ post-build:
# Fix ".so" macro problem by using "soelim" command.
${LN} -sf ${WRKSRC}/Doc ${WRKSRC}/man1
${MV} ${WRKSRC}/Doc/zshall.1 ${WRKSRC}/Doc/zshall.1.source
- cd ${WRKSRC} && ${SOELIM} -r ${WRKSRC}/Doc/zshall.1.source > \
- ${WRKSRC}/Doc/zshall.1
+ (cd ${WRKSRC} && ${SOELIM} -r ${WRKSRC}/Doc/zshall.1.source > \
+ ${WRKSRC}/Doc/zshall.1)
post-install:
${LN} -f ${STAGEDIR}${PREFIX}/bin/zsh ${STAGEDIR}${PREFIX}/bin/rzsh
- ${STAGEDIR}${PREFIX}/bin/zsh -fc ' \
+ (${STAGEDIR}${PREFIX}/bin/zsh -fc ' \
setopt extendedglob nomark_dirs; \
cd ${STAGEDIR}/${DATADIR}/${ZSH_VER} ; \
for i in functions/**/*(/) ; do \
zcompile -U -M $$i.zwc $$i/*~*.zwc(^/) ; \
${CHMOD} 644 $$i.zwc ; \
- done'
+ done')
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
- cd ${WRKSRC}/StartupFiles && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKSRC}/StartupFiles && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR})
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR})
regression-test:
- @cd ${WRKSRC}; ${SETENV} -i ${MAKE} check
+ @(cd ${WRKSRC}; ${SETENV} -i ${MAKE} check)
.include <bsd.port.post.mk>