# $Id: Portfile 54208 2009-07-23 02:55:53Z toby@macports.org $

PortSystem 1.0

name		xchat2
version		2.8.6
revision	2
categories	irc
maintainers	afb openmaintainer
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.8/
patch_sites	http://xchat.org/files/source/2.8/patches/

distname	xchat-${version}

patchfiles	xc286-smallfixes.diff patch-xtext.h

checksums	xchat-${version}.tar.bz2 md5 1f2670865d43a23a9abc596dde999aca \
		xchat-${version}.tar.bz2 sha1 7a7463e65cb26c680ed70dd96cec98bcc05435a4 \
		xchat-${version}.tar.bz2 rmd160 bc199e3b58a9db3dfd9f2af6bac7fb6162c53d6e \
		xc286-smallfixes.diff md5 eb68b6261bf6740cb5f223627eb8f384 \
		xc286-smallfixes.diff sha1 b13eb421f6d72fca195b398c606d9413aec57fc4 \
		xc286-smallfixes.diff rmd160 91c654320b7b1f9d6b13f7b226fb4cec26054319
		
use_bzip2	yes

depends_lib	port:gtk2 path:bin/perl:perl5

patch.args	-p1

configure.cppflags-append -no-cpp-precomp

configure.args	--disable-python --disable-mmx --enable-ipv6

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

variant quartz conflicts xft	{ configure.args-append --disable-xlib }

livecheck.url	http://www.xchat.org/files/source/2.8/?S=D
livecheck.regex	xchat-(\[0-9.\]+)${extract.suffix}
