summaryrefslogtreecommitdiff
path: root/app-misc/cmatrix/files/cmatrix-1.2a-tinfo.patch
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/cmatrix/files/cmatrix-1.2a-tinfo.patch')
-rw-r--r--app-misc/cmatrix/files/cmatrix-1.2a-tinfo.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/app-misc/cmatrix/files/cmatrix-1.2a-tinfo.patch b/app-misc/cmatrix/files/cmatrix-1.2a-tinfo.patch
new file mode 100644
index 000000000000..60720c7da8b9
--- /dev/null
+++ b/app-misc/cmatrix/files/cmatrix-1.2a-tinfo.patch
@@ -0,0 +1,33 @@
+--- a/configure.in
++++ b/configure.in
+@@ -8,9 +8,7 @@
+ AC_PROG_INSTALL
+ AC_PROG_MAKE_SET
+
+-dnl Checks for libraries.
+-dnl Replace `main' with a function in -lncurses:
+-AC_CHECK_LIB(ncurses, main)
++PKG_PROG_PKG_CONFIG
+
+ dnl Checks for header files.
+ AC_HEADER_STDC
+@@ -26,18 +24,7 @@
+
+ AC_CHECK_HEADERS(curses.h ncurses.h)
+
+-CURSES_LIB_NAME=""
+-AC_CHECK_LIB(ncurses, tgetent, CURSES_LIB="-lncurses" CURSES_LIB_NAME=ncurses)
+-
+-if eval "test x$CURSES_LIB_NAME = x"
+-then
+- AC_CHECK_LIB(curses, tgetent, CURSES_LIB="-lcurses" CURSES_LIB_NAME=curses)
+-fi
+-
+-if eval "test x$CURSES_LIB_NAME = x"
+-then
+- AC_CHECK_LIB(termcap, tgetent, CURSES_LIB="-ltermcap" CURSES_LIB_NAME=termcap)
+-fi
++PKG_CHECK_MODULES(ncurses,ncurses,[LIBS="$LIBS $ncurses_LIBS";CURSES_LIB_NAME=ncurses])
+
+ if eval "test x$CURSES_LIB_NAME = x"
+ then