summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-08-27 09:54:11 +0200
committerJustin Lecher <jlec@gentoo.org>2015-08-27 09:55:30 +0200
commit0d69c92bbae1266d7dd6130ef924861d0a73fe9f (patch)
tree520cbe9f5c8905c496ef2c9d3fcfa7f5928b3855 /net-wireless/spectools/files
parentmedia-sound/yoshimi: remove old (diff)
downloadgentoo-0d69c92bbae1266d7dd6130ef924861d0a73fe9f.tar.gz
gentoo-0d69c92bbae1266d7dd6130ef924861d0a73fe9f.tar.bz2
gentoo-0d69c92bbae1266d7dd6130ef924861d0a73fe9f.zip
net-wireless/spectools: Add fix for ncurses[tinfo]
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=490976 Package-Manager: portage-2.2.20.1 Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'net-wireless/spectools/files')
-rw-r--r--net-wireless/spectools/files/spectools-2011.08.1_p20140618-tinfo.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/net-wireless/spectools/files/spectools-2011.08.1_p20140618-tinfo.patch b/net-wireless/spectools/files/spectools-2011.08.1_p20140618-tinfo.patch
new file mode 100644
index 000000000000..c5ef3480d01c
--- /dev/null
+++ b/net-wireless/spectools/files/spectools-2011.08.1_p20140618-tinfo.patch
@@ -0,0 +1,41 @@
+ configure.in | 21 +++++++++++----------
+ 1 file changed, 11 insertions(+), 10 deletions(-)
+
+diff --git a/configure.in b/configure.in
+index a15258c..af4ae57 100644
+--- a/configure.in
++++ b/configure.in
+@@ -131,22 +131,23 @@ AC_CHECK_LIB([usb], [usb_init], AC_DEFINE(HAVE_LIBUSB, 1, LibUSB) LIBS="$LIBS -l
+ dnl Look for curses/libcurses
+ termcontrol="none";
+
+-AC_CHECK_LIB([ncurses], [initscr],
++PKG_CHECK_MODULES([NCURSES], [ncurses], [foundhcurses=yesyes curseaux="${NCURSES_LIBS}" termcontrol="ncurses"], [
++ AC_CHECK_LIB([ncurses], [initscr],
+ AC_DEFINE(HAVE_LIBNCURSES, 1, NCurses terminal lib) \
+ foundlcurses=yes curseaux="-lncurses" termcontrol="ncurses" )
+
+-if test "$foundlcurses" != "yes"; then
+- AC_CHECK_LIB([curses], [initscr],
++ if test "$foundlcurses" != "yes"; then
++ AC_CHECK_LIB([curses], [initscr],
+ AC_DEFINE(HAVE_LIBCURSES, 1, Curses terminal lib) \
+ foundlcurses=yes curseaux="-lcurses" termcontrol="curses" )
+-fi
+-
+-if test "$termcontrol" = "ncurses"; then
+- AC_CHECK_HEADER([ncurses.h], [foundhcurses=yes])
+-elif test "$termcontrol" = "curses"; then
+- AC_CHECK_HEADER([curses.h], [foundhcurses=yes])
+-fi
++ fi
+
++ if test "$termcontrol" = "ncurses"; then
++ AC_CHECK_HEADER([ncurses.h], [foundhcurses=yes])
++ elif test "$termcontrol" = "curses"; then
++ AC_CHECK_HEADER([curses.h], [foundhcurses=yes])
++ fi
++])
+ if test "$foundhcurses$foundlcurses" != "yesyes"; then
+ AC_MSG_WARN(*** Could not find curses library. Curses grapher will not be built.)
+ else