diff options
Diffstat (limited to 'net-misc/urlview/files/urlview-0.9-tinfo.patch')
-rw-r--r-- | net-misc/urlview/files/urlview-0.9-tinfo.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/net-misc/urlview/files/urlview-0.9-tinfo.patch b/net-misc/urlview/files/urlview-0.9-tinfo.patch new file mode 100644 index 00000000000..e8f3886a4d0 --- /dev/null +++ b/net-misc/urlview/files/urlview-0.9-tinfo.patch @@ -0,0 +1,21 @@ +--- a/configure.in ++++ b/configure.in +@@ -3,6 +3,8 @@ + dnl AM_CONFIG_HEADER(config.h) + AM_PROG_CC_STDC + CFLAGS="$CFLAGS -DURLVIEW -Dunix" ++ ++PKG_CHECK_MODULES(ncurses,ncurses) + AC_ARG_WITH(slang, [ --with-slang[=DIR] use S-Lang instead of curses], + [AC_DEFINE(USE_SLANG) + if test $withval = yes -a -d ../slang; then +@@ -22,8 +24,7 @@ + fi + LIBS="$LIBS -lslang -lm" + fi], +- +- [AC_CHECK_LIB(ncurses, initscr, [LIBS="$LIBS -lncurses"], [LIBS="$LIBS -lcurses"]) ++ [LIBS="$LIBS $ncurses_LIBS" + AC_CHECK_FUNCS(curs_set) + AC_CHECK_HEADERS(ncurses.h) + AC_CHECK_HEADER(ncurses/curses.h, [CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"])]) |