# $Id: Portfile,v 1.39 2006/07/16 06:55:39 mij Exp $

PortSystem 1.0
name		xchat2
version		2.6.4
revision	1
categories	irc
maintainers	mij@opendarwin.org
description	GTK+2 IRC client
homepage	http://www.xchat.org/
platforms	darwin

long_description XChat2 is a graphical IRC client based on GTK2 that has \
		 many features and can be scripted with Perl and/or Python.

master_sites	http://xchat.org/files/source/2.6/

distname	xchat-${portversion}
checksums	md5 358f6cec635eab49fca99d324f76e065 \
		sha1 84bb9e2b3f8eef03c199208c81520c20a172e825 \
		rmd160 998069aa49e7b26dd98d53173e9dc67f947f95a2

patchfiles	xc264-fix-cursor.diff xc264-fix-proxy.diff

use_bzip2	yes

depends_lib	lib:libgtk.2:gtk2

configure.env	LDFLAGS="-L${prefix}/lib -L${x11prefix}/lib" \
		CFLAGS="-I${prefix}/include" CPPFLAGS="-I${prefix}/include \
		-I${x11prefix}/include -no-cpp-precomp"

configure.args	--disable-python --disable-mmx

platform darwin 6 { configure.args-append --enable-tcl=/System/Library/Tcl/8.3 }
platform darwin 7 { configure.args-append --enable-tcl=/usr/lib }

variant xft	{ configure.args-append --enable-xft }
variant ssl	{ configure.args-append --enable-openssl }
variant ipv6	{ configure.args-append --enable-ipv6 }
