From befa2ce3e20a240dc454561a2c371cbac20c3b25 Mon Sep 17 00:00:00 2001 From: Ted Hess Date: Tue, 8 Dec 2015 17:18:16 -0500 Subject: zile: Remove unecessary dependence on libncurses (non-w) version Signed-off-by: Ted Hess --- utils/zile/Makefile | 8 +++++--- .../patches/005-fix_configure_checking_for_ncursesw.patch | 11 +++++++++++ utils/zile/patches/020-build_with_ncursesw.patch | 15 +++++++++++++++ 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 utils/zile/patches/005-fix_configure_checking_for_ncursesw.patch create mode 100644 utils/zile/patches/020-build_with_ncursesw.patch (limited to 'utils/zile') diff --git a/utils/zile/Makefile b/utils/zile/Makefile index 73b7d1979..c9ab03af7 100644 --- a/utils/zile/Makefile +++ b/utils/zile/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=zile PKG_VERSION:=2.3.24 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@GNU/zile @@ -22,8 +22,6 @@ PKG_LICENSE_FILES:=COPYING PKG_FIXUP:=autoreconf PKG_INSTALL:=1 -PKG_BUILD_DEPENDS += libncurses - include $(INCLUDE_DIR)/package.mk define Package/zile @@ -46,6 +44,10 @@ CONFIGURE_VARS += \ gl_cv_warn__Wmudflap=no \ gl_cv_warn__fmudflap=no +CONFIGURE_ARGS += \ + --with-ncursesw \ + + define Package/zile/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/ diff --git a/utils/zile/patches/005-fix_configure_checking_for_ncursesw.patch b/utils/zile/patches/005-fix_configure_checking_for_ncursesw.patch new file mode 100644 index 000000000..26ef0ab33 --- /dev/null +++ b/utils/zile/patches/005-fix_configure_checking_for_ncursesw.patch @@ -0,0 +1,11 @@ +--- a/m4/ax_with_curses.m4 ++++ b/m4/ax_with_curses.m4 +@@ -72,7 +72,7 @@ AC_DEFUN([AX_WITH_CURSES], + AC_CACHE_CHECK([for working ncursesw], ax_cv_ncursesw, + [LIBS="$ax_save_LIBS -lncursesw" + AC_TRY_LINK( +- [#include ], ++ [#include ], + [chtype a; int b=A_STANDOUT, c=KEY_LEFT; initscr(); ], + ax_cv_ncursesw=yes, ax_cv_ncursesw=no)]) + if test "$ax_cv_ncursesw" = yes diff --git a/utils/zile/patches/020-build_with_ncursesw.patch b/utils/zile/patches/020-build_with_ncursesw.patch new file mode 100644 index 000000000..9a4cffbcb --- /dev/null +++ b/utils/zile/patches/020-build_with_ncursesw.patch @@ -0,0 +1,15 @@ +--- a/src/term_curses.c ++++ b/src/term_curses.c +@@ -23,7 +23,11 @@ + + #include + #ifdef HAVE_NCURSES_H +-#include ++# ifdef HAVE_NCURSESW ++# include ++# else ++# include ++# endif + #else + #include + #endif -- cgit v1.2.3