Fix building with ports ncurses.

This commit is contained in:
Vanilla I. Shu 2013-10-21 14:42:24 +00:00
parent 1e6e862325
commit 3117796d00
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331144
2 changed files with 20 additions and 0 deletions

View file

@ -16,6 +16,7 @@ CONFLICTS= irssi-devel-[0-9]* zh-irssi-[0-9]*
USES= pkgconfig ncurses gmake
USE_BZIP2= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-ncurses=${NCURSESBASE}
OPTIONS_DEFINE= PERL PROXY SOCKS IPV6 BOT DOCS
SOCKS_DESC= Socks proxy support

View file

@ -0,0 +1,19 @@
--- configure.orig 2010-04-04 00:21:26.000000000 +0800
+++ configure 2013-10-21 22:33:39.000000000 +0800
@@ -12982,12 +12982,12 @@ if test "${with_ncurses+set}" = set; the
if $search_ncurses
then
- if test -f $withval/include/ncurses.h
+ if test -f $withval/include/ncurses/ncurses.h
then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: Found ncurses on $withval/include/ncurses.h" >&5
-$as_echo "Found ncurses on $withval/include/ncurses.h" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: Found ncurses on $withval/include/ncurses/ncurses.h" >&5
+$as_echo "Found ncurses on $withval/include/ncurses/ncurses.h" >&6; }
- CURSES_LIBS="-L$withval/lib -lncurses"
+ CURSES_LIBS="-L$withval/lib -lncurses -ltinfo"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
$as_echo_n "checking for initscr in -lncurses... " >&6; }
if test "${ac_cv_lib_ncurses_initscr+set}" = set; then :