aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2013-10-21 22:42:24 +0800
committervanilla <vanilla@FreeBSD.org>2013-10-21 22:42:24 +0800
commit84ccabbd8c4642b3b216ae93a1f51959f635d939 (patch)
tree8ab06825e8a3730f704bf95a264eb5c36abe2d21
parentb8ef8ee11d3792ca9fbba85ba804e0683852fcdb (diff)
downloadfreebsd-ports-gnome-84ccabbd8c4642b3b216ae93a1f51959f635d939.tar.gz
freebsd-ports-gnome-84ccabbd8c4642b3b216ae93a1f51959f635d939.tar.zst
freebsd-ports-gnome-84ccabbd8c4642b3b216ae93a1f51959f635d939.zip
Fix building with ports ncurses.
-rw-r--r--irc/irssi/Makefile1
-rw-r--r--irc/irssi/files/patch-configure19
2 files changed, 20 insertions, 0 deletions
diff --git a/irc/irssi/Makefile b/irc/irssi/Makefile
index 0bb31ca2b5da..690e37eda30d 100644
--- a/irc/irssi/Makefile
+++ b/irc/irssi/Makefile
@@ -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
diff --git a/irc/irssi/files/patch-configure b/irc/irssi/files/patch-configure
new file mode 100644
index 000000000000..04228a606f57
--- /dev/null
+++ b/irc/irssi/files/patch-configure
@@ -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 :