summaryrefslogtreecommitdiff
path: root/app-admin/conky/files/conky-1.9.0-tinfo.patch
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/conky/files/conky-1.9.0-tinfo.patch')
-rw-r--r--app-admin/conky/files/conky-1.9.0-tinfo.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/app-admin/conky/files/conky-1.9.0-tinfo.patch b/app-admin/conky/files/conky-1.9.0-tinfo.patch
new file mode 100644
index 00000000000..0018a726f3f
--- /dev/null
+++ b/app-admin/conky/files/conky-1.9.0-tinfo.patch
@@ -0,0 +1,22 @@
+--- a/configure.ac.in
++++ b/configure.ac.in
+@@ -134,7 +134,7 @@
+
+ AM_CONDITIONAL(BUILD_NCURSES, test x$want_ncurses = xyes)
+ if test x$want_ncurses = xyes; then
+- conky_LIBS="$conky_LIBS -lncurses"
++ PKG_CHECK_MODULES(ncurses,ncurses,conky_LIBS="$conky_LIBS $ncurses_LIBS",AC_MSG_ERROR([ncurses not found]))
+ AC_DEFINE(NCURSES, 1, [Define for ncurses support])
+ AC_CHECK_HEADERS([ncurses.h], [], AC_MSG_ERROR([required header(s) not found]))
+ fi
+--- a/configure.ac
++++ b/configure.ac
+@@ -134,7 +134,7 @@
+
+ AM_CONDITIONAL(BUILD_NCURSES, test x$want_ncurses = xyes)
+ if test x$want_ncurses = xyes; then
+- conky_LIBS="$conky_LIBS -lncurses"
++ PKG_CHECK_MODULES(ncurses,ncurses,conky_LIBS="$conky_LIBS $ncurses_LIBS",AC_MSG_ERROR([ncurses not found]))
+ AC_DEFINE(NCURSES, 1, [Define for ncurses support])
+ AC_CHECK_HEADERS([ncurses.h], [], AC_MSG_ERROR([required header(s) not found]))
+ fi