void-packages/srcpkgs/gtypist/patches/ncurses.patch

97 lines
2.4 KiB
Diff

diff --git configure.ac configure.ac
index 8742d93..cb0c62c 100644
--- configure.ac
+++ configure.ac
@@ -44,20 +44,20 @@ AC_TYPE_SIGNAL
AC_FUNC_STRTOD
AC_CHECK_FUNCS([__argz_count __argz_next __argz_stringify dcgettext getcwd getwd mempcpy memset munmap nl_langinfo setlocale stpcpy strcasecmp strchr strcspn strdup strstr strtoul])
-# check for libncursesw
+# check for libncurses
-AC_CHECK_HEADER(ncursesw/ncurses.h, HAVE_NCURSESW_H=1)
-AC_CHECK_LIB(ncursesw, add_wch, HAVE_LIBNCURSESW=1)
+AC_CHECK_HEADER(ncurses.h, HAVE_NCURSESW_H=1)
+AC_CHECK_LIB(ncurses, add_wch, HAVE_LIBNCURSESW=1)
if test -n "$HAVE_NCURSESW_H" -a -n "$HAVE_LIBNCURSESW"; then
- LIBS="-lncursesw $LIBS"
+ LIBS="-lncurses $LIBS"
else
- echo -e "Error: both library and header files for the ncursesw library\n"\
+ echo -e "Error: both library and header files for the ncurses library\n"\
"are required to build this package. See INSTALL file for"\
"further information. On Debian/Ubuntu you need to install libncursesw5-dev."
exit 1;
fi
AC_SEARCH_LIBS(cbreak, tinfo, [],
- [AC_MSG_ERROR([Can't find cbreak() in -lncursesw or -ltinfo])])
+ [AC_MSG_ERROR([Can't find cbreak() in -lncurses or -ltinfo])])
# iconv
diff --git src/cursmenu.c src/cursmenu.c
index 1c3990e..f0fc21a 100644
--- src/cursmenu.c
+++ src/cursmenu.c
@@ -24,7 +24,7 @@
#ifdef HAVE_PDCURSES
#include <curses.h>
#else
-#include <ncursesw/ncurses.h>
+#include <ncurses.h>
#endif
#include "error.h"
diff --git src/error.c src/error.c
index 2022f2b..4ab6741 100644
--- src/error.c
+++ src/error.c
@@ -25,7 +25,7 @@
#ifdef HAVE_PDCURSES
#include <curses.h>
#else
-#include <ncursesw/ncurses.h>
+#include <ncurses.h>
#endif
#include <stdlib.h>
diff --git src/gtypist.c src/gtypist.c
index 7328ac6..cb9dd61 100644
--- src/gtypist.c
+++ src/gtypist.c
@@ -32,7 +32,7 @@
#ifdef HAVE_PDCURSES
#include <curses.h>
#else
-#include <ncursesw/ncurses.h>
+#include <ncurses.h>
#endif
#include <time.h>
diff --git src/script.c src/script.c
index ce04d68..f4032e2 100644
--- src/script.c
+++ src/script.c
@@ -24,7 +24,7 @@
#ifdef HAVE_PDCURSES
#include <curses.h>
#else
-#include <ncursesw/ncurses.h>
+#include <ncurses.h>
#endif
#include "error.h"
diff --git src/utf8.c src/utf8.c
index 8eab3d3..e3194df 100644
--- src/utf8.c
+++ src/utf8.c
@@ -23,7 +23,7 @@
#ifdef HAVE_PDCURSES
#include <curses.h>
#else
-#include <ncursesw/ncurses.h>
+#include <ncurses.h>
#endif
#include <stdlib.h>