mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
zile: Remove unecessary dependence on libncurses (non-w) version
Signed-off-by: Ted Hess <thess@kitschensync.net>
This commit is contained in:
+5
-3
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=zile
|
PKG_NAME:=zile
|
||||||
PKG_VERSION:=2.3.24
|
PKG_VERSION:=2.3.24
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=@GNU/zile
|
PKG_SOURCE_URL:=@GNU/zile
|
||||||
@@ -22,8 +22,6 @@ PKG_LICENSE_FILES:=COPYING
|
|||||||
PKG_FIXUP:=autoreconf
|
PKG_FIXUP:=autoreconf
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
PKG_BUILD_DEPENDS += libncurses
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/zile
|
define Package/zile
|
||||||
@@ -46,6 +44,10 @@ CONFIGURE_VARS += \
|
|||||||
gl_cv_warn__Wmudflap=no \
|
gl_cv_warn__Wmudflap=no \
|
||||||
gl_cv_warn__fmudflap=no
|
gl_cv_warn__fmudflap=no
|
||||||
|
|
||||||
|
CONFIGURE_ARGS += \
|
||||||
|
--with-ncursesw \
|
||||||
|
|
||||||
|
|
||||||
define Package/zile/install
|
define Package/zile/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
|
||||||
|
|||||||
@@ -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 <ncurses.h>],
|
||||||
|
+ [#include <ncursesw/ncurses.h>],
|
||||||
|
[chtype a; int b=A_STANDOUT, c=KEY_LEFT; initscr(); ],
|
||||||
|
ax_cv_ncursesw=yes, ax_cv_ncursesw=no)])
|
||||||
|
if test "$ax_cv_ncursesw" = yes
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
--- a/src/term_curses.c
|
||||||
|
+++ b/src/term_curses.c
|
||||||
|
@@ -23,7 +23,11 @@
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#ifdef HAVE_NCURSES_H
|
||||||
|
-#include <ncurses.h>
|
||||||
|
+# ifdef HAVE_NCURSESW
|
||||||
|
+# include <ncursesw/ncurses.h>
|
||||||
|
+# else
|
||||||
|
+# include <ncurses.h>
|
||||||
|
+# endif
|
||||||
|
#else
|
||||||
|
#include <curses.h>
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user