diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2008-05-06 11:52:45 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2008-05-06 11:52:45 +0000 |
commit | 897e6fca5b4d80cb0ec8761395a3ff0e2d308234 (patch) | |
tree | 7c3d1c245f41ad891018d2c9fe00ed2619b1e7ed /shells/zsh | |
parent | e4491d60f43a02e33f7ab1d49e44c1671572fd59 (diff) |
Better version of the previous commit, with an unconditional patch this
time. The patch has been submitted upstream.
Notes
Notes:
svn path=/head/; revision=212723
Diffstat (limited to 'shells/zsh')
-rw-r--r-- | shells/zsh/Makefile | 9 | ||||
-rw-r--r-- | shells/zsh/files/patch-ncurses (renamed from shells/zsh/files/extra-patch-ncurses) | 8 |
2 files changed, 7 insertions, 10 deletions
diff --git a/shells/zsh/Makefile b/shells/zsh/Makefile index 7172e8c95c7f..48182f50650e 100644 --- a/shells/zsh/Makefile +++ b/shells/zsh/Makefile @@ -35,7 +35,7 @@ ZSH_VER= ${PORTVERSION} USE_BZIP2= yes USE_ICONV= yes -USE_AUTOTOOLS= autoconf:261:env +USE_AUTOTOOLS= autoconf:261 GNU_CONFIGURE= yes USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME} @@ -73,11 +73,6 @@ SHELLS= /etc/shells .include <bsd.port.pre.mk> -.if ${OSVERSION} < 602107 -# also needed for early versions of 7.0-CURRENT, but we don't care -EXTRA_PATCHES+= ${FILESDIR}/extra-patch-ncurses -.endif - .if defined(WITH_ZSH_PCRE) CONFIGURE_ARGS+= --enable-pcre LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre @@ -109,7 +104,7 @@ CONFIGURE_ARGS+= --enable-multibyte .endif .if ${OSVERSION} >= 503000 -EXTRA_PATCHES+= ${FILESDIR}/extra-patch-bsdtar +EXTRA_PATCHES= ${FILESDIR}/extra-patch-bsdtar .endif post-patch: diff --git a/shells/zsh/files/extra-patch-ncurses b/shells/zsh/files/patch-ncurses index f0a1bc2c7f28..6a84cac3a901 100644 --- a/shells/zsh/files/extra-patch-ncurses +++ b/shells/zsh/files/patch-ncurses @@ -12,17 +12,19 @@ +[Define if _XOPEN_SOURCE_EXTENDED should not be defined to avoid clashes]) +AC_CACHE_CHECK(if _XOPEN_SOURCE_EXTENDED should not be defined, +zsh_cv_no_xopen, - [case "$host_os" in +-[case "$host_os" in - *openbsd*) - zsh_cv_curses_needs_xopen=no -+ *openbsd*|*freebsd*) ++[[case "$host_os" in ++ *openbsd*|*freebsd5*|*freebsd6.[012]*) + zsh_cv_no_xopen=yes ;; *) - zsh_cv_curses_needs_xopen=yes + zsh_cv_no_xopen=no ;; - esac]) +-esac]) ++esac]]) -if test x$zsh_cv_curses_needs_xopen = xyes; then - AC_DEFINE(ZSH_CURSES_NEEDS_XOPEN) +if test x$zsh_cv_no_xopen = xyes; then |