summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--irc/xchat/Makefile121
-rw-r--r--irc/xchat/distinfo3
-rw-r--r--irc/xchat/files/patch-configure17
-rw-r--r--irc/xchat/files/patch-fixtabcomp24
-rw-r--r--irc/xchat/files/patch-src_fe-gtk_fe-gtk.c14
-rw-r--r--irc/xchat/pkg-descr5
-rw-r--r--irc/xchat/pkg-plist32
7 files changed, 216 insertions, 0 deletions
diff --git a/irc/xchat/Makefile b/irc/xchat/Makefile
new file mode 100644
index 000000000..110e3fb5f
--- /dev/null
+++ b/irc/xchat/Makefile
@@ -0,0 +1,121 @@
+# New ports collection makefile for: xchat2
+# Date created: 17 Aug 2002
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom$
+
+PORTNAME= xchat
+PORTVERSION= 2.6.4
+PORTREVISION= 2
+CATEGORIES= irc gnome ipv6
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
+ http://xchat.org/files/source/2.6/
+MASTER_SITE_SUBDIR= ${PORTNAME:S|2||}
+DISTNAME= xchat-${PORTVERSION}
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= An X11 IRC client using the GTK+ 2 toolkit
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_GNOME= gnomehack gtk20
+USE_GETTEXT= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
+ LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
+CONFIGURE_ARGS= --enable-nls \
+ --enable-ipv6
+
+CONFLICTS= xchat-1*
+
+.if defined(WITH_SOCKS)
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
+CONFIGURE_ARGS+= --enable-socks
+.endif
+
+# openssl in now default in configure
+
+.if defined(WITH_PYTHON)
+USE_PYTHON= yes
+CONFIGURE_ARGS+= --enable-python
+PLIST_SUB+= PYTHON=""
+.else
+CONFIGURE_ARGS+= --disable-python
+PLIST_SUB+= PYTHON="@comment "
+.endif
+
+.if defined(WITH_TCL)
+LIB_DEPENDS+= tcl83.1:${PORTSDIR}/lang/tcl83
+CONFIGURE_ARGS+=--enable-tcl=${LOCALBASE}/lib/tcl8.3
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS} \
+ -I${LOCALBASE}/include/tcl8.3" \
+ LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} \
+ -L${LOCALBASE}/lib/tcl8.3"
+PLIST_SUB+= TCL=""
+.else
+CONFIGURE_ARGS+=--enable-tcl=no
+PLIST_SUB+= TCL="@comment "
+.endif
+
+.if !defined(WITHOUT_DBUS)
+LIB_DEPENDS+= dbus-1.2:${PORTSDIR}/devel/dbus
+CONFIGURE_ARGS+=--enable-dbus
+USE_GNOME+= gconf2
+GCONF_SCHEMAS= apps_xchat_url_handler.schemas
+PLIST_SUB+= DBUS=""
+.else
+CONFIGURE_ARGS+=--disable-dbus
+PLIST_SUB+= DBUS="@comment "
+.endif
+
+.if !defined(WITHOUT_GTKSPELL)
+LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell
+.else
+CONFIGURE_ARGS+=--disable-spell
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600 || defined(WITHOUT_PERL)
+CONFIGURE_ARGS+=--disable-perl
+PLIST_SUB+= PERL="@comment "
+.else
+USE_PERL5= yes
+CONFIGURE_ARGS+=--enable-perl
+PLIST_SUB+= PERL=""
+.endif
+
+pre-everything::
+.if !defined(WITH_PYTHON) || !defined(WITH_SOCKS) || !defined(WITH_TCL) || !defined(WITHOUT_PERL) || !defined(WITHOUT_DBUS) || !defined(WITHOUT_GTKSPELL)
+ @${ECHO_MSG} "You may specify the following on the command line:"
+ @${ECHO_MSG} ""
+.endif
+.if !defined(WITH_PYTHON)
+ @${ECHO_MSG} "WITH_PYTHON=yes for Python support"
+.endif
+.if !defined(WITH_SOCKS)
+ @${ECHO_MSG} "WITH_SOCKS=yes for SOCKS5 proxy support"
+.endif
+.if !defined(WITH_TCL)
+ @${ECHO_MSG} "WITH_TCL=yes for tcl support"
+.endif
+.if !defined(WITHOUT_PERL)
+ @${ECHO_MSG} "WITHOUT_PERL=yes to disable Perl support"
+.endif
+.if !defined(WITHOUT_DBUS)
+ @${ECHO_MSG} "WITHOUT_DBUS=yes to disable dbus support"
+.endif
+.if !defined(WITHOUT_GTKSPELL)
+ @${ECHO_MSG} "WITHOUT_GTKSPELL=yes to disable spell check support"
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -E -e 's|PY_LIBS=.*|PY_LIBS="-L\$$PY_EXEC_PREFIX/lib/python\$$PY_VER/config -lpython\$$PY_VER ${PTHREAD_LIBS} -lutil"|' \
+ ${WRKSRC}/configure
+
+# Create plugins directory even when no plugins are installed
+post-install:
+ @${MKDIR} ${PREFIX}/lib/xchat/plugins
+
+.include <bsd.port.post.mk>
diff --git a/irc/xchat/distinfo b/irc/xchat/distinfo
new file mode 100644
index 000000000..818a1da3e
--- /dev/null
+++ b/irc/xchat/distinfo
@@ -0,0 +1,3 @@
+MD5 (xchat-2.6.4.tar.bz2) = 358f6cec635eab49fca99d324f76e065
+SHA256 (xchat-2.6.4.tar.bz2) = 76e67fc03d3318d6159d1f22408c607bfa72e5e7687ddcb8969c95a01bcf4222
+SIZE (xchat-2.6.4.tar.bz2) = 1083938
diff --git a/irc/xchat/files/patch-configure b/irc/xchat/files/patch-configure
new file mode 100644
index 000000000..a48d5cbc8
--- /dev/null
+++ b/irc/xchat/files/patch-configure
@@ -0,0 +1,17 @@
+--- configure.orig Sun Apr 2 19:17:32 2006
++++ configure Sun Apr 2 19:18:07 2006
+@@ -24741,12 +24741,12 @@ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+ #include <libintl.h>
+ extern int _nl_msg_cat_cntr;
+-extern int *_nl_domain_bindings;
++extern int *libintl_nl_domain_bindings;
+ int
+ main ()
+ {
+ bindtextdomain ("", "");
+-return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
++return * gettext ("") + _nl_msg_cat_cntr + *libintl_nl_domain_bindings
+ ;
+ return 0;
+ }
diff --git a/irc/xchat/files/patch-fixtabcomp b/irc/xchat/files/patch-fixtabcomp
new file mode 100644
index 000000000..9498dd636
--- /dev/null
+++ b/irc/xchat/files/patch-fixtabcomp
@@ -0,0 +1,24 @@
+# Fixes two tab-nick-completion bugs:
+# 1. Crash when you type space-tab
+# 2. Critical glib warning when completion in a dialog-tab.
+--- src/fe-gtk/fkeys.c.orig Thu Aug 5 07:49:06 2004
++++ src/fe-gtk/fkeys.c Mon Aug 16 22:54:58 2004
+@@ -1427,7 +1427,7 @@
+ skip_len++;
+ }
+ else
+- cursor_pos = g_utf8_pointer_to_offset(text, g_utf8_offset_to_pointer(ch, 1));
++ return 2;
+ }
+
+ comp = skip_len;
+@@ -1608,7 +1608,8 @@
+ list = list->next;
+ }
+ PrintText (sess, buf);
+- g_completion_free(gcomp);
++ if (gcomp)
++ g_completion_free(gcomp);
+ return 2;
+ }
+ /* Only one matching entry */
diff --git a/irc/xchat/files/patch-src_fe-gtk_fe-gtk.c b/irc/xchat/files/patch-src_fe-gtk_fe-gtk.c
new file mode 100644
index 000000000..9f81ae7a1
--- /dev/null
+++ b/irc/xchat/files/patch-src_fe-gtk_fe-gtk.c
@@ -0,0 +1,14 @@
+--- src/fe-gtk/fe-gtk.c 2006/06/07 06:16:51 1.66
++++ src/fe-gtk/fe-gtk.c 2006/06/12 03:23:23 1.67
+@@ -225,7 +225,11 @@
+ const char cursor_color_rc[] =
+ "style \"xc-ib-st\""
+ "{"
++#ifdef USE_GTKSPELL
++ "GtkTextView::cursor-color=\"#%02x%02x%02x\""
++#else
+ "GtkEntry::cursor-color=\"#%02x%02x%02x\""
++#endif
+ "}"
+ "widget \"*.xchat-inputbox\" style : application \"xc-ib-st\"";
+
diff --git a/irc/xchat/pkg-descr b/irc/xchat/pkg-descr
new file mode 100644
index 000000000..f93552a5a
--- /dev/null
+++ b/irc/xchat/pkg-descr
@@ -0,0 +1,5 @@
+XChat is a graphical IRC client. It requires a computer running a
+UNIX-like OS and the X Window System (X11), and the GTK 2 library. It can
+also use Perl and (optionally) Python scripts.
+
+WWW: http://xchat.org/
diff --git a/irc/xchat/pkg-plist b/irc/xchat/pkg-plist
new file mode 100644
index 000000000..78e25081a
--- /dev/null
+++ b/irc/xchat/pkg-plist
@@ -0,0 +1,32 @@
+bin/xchat
+%%DBUS%%bin/xchat-remote
+%%DBUS%%lib/xchat/plugins/dbus.la
+%%DBUS%%lib/xchat/plugins/dbus.so
+%%PERL%%lib/xchat/plugins/perl.la
+%%PERL%%lib/xchat/plugins/perl.so
+%%PYTHON%%lib/xchat/plugins/python.la
+%%PYTHON%%lib/xchat/plugins/python.so
+%%TCL%%lib/xchat/plugins/tcl.la
+%%TCL%%lib/xchat/plugins/tcl.so
+share/applications/xchat.desktop
+share/locale/de/LC_MESSAGES/xchat.mo
+share/locale/el/LC_MESSAGES/xchat.mo
+share/locale/es/LC_MESSAGES/xchat.mo
+share/locale/fi/LC_MESSAGES/xchat.mo
+share/locale/fr/LC_MESSAGES/xchat.mo
+share/locale/gl/LC_MESSAGES/xchat.mo
+share/locale/hu/LC_MESSAGES/xchat.mo
+share/locale/ja/LC_MESSAGES/xchat.mo
+share/locale/ko/LC_MESSAGES/xchat.mo
+share/locale/nl/LC_MESSAGES/xchat.mo
+share/locale/pa/LC_MESSAGES/xchat.mo
+share/locale/sq/LC_MESSAGES/xchat.mo
+share/locale/sr/LC_MESSAGES/xchat.mo
+share/locale/sv/LC_MESSAGES/xchat.mo
+share/locale/vi/LC_MESSAGES/xchat.mo
+share/locale/zh_TW/LC_MESSAGES/xchat.mo
+share/pixmaps/xchat.png
+@dirrmtry share/applications
+@exec mkdir -p %D/lib/xchat/plugins
+@dirrm lib/xchat/plugins
+@dirrm lib/xchat