# Enabling OpenSSL, Tukaani has OpenSSL as a base part of the
# the distribution, shouldn't be a problem with GPL.

NAME=xchat
VERSION=2.6.2
SOURCE=http://www.xchat.org/files/source/${VERSION%.*}/xchat-$VERSION.tar.bz2
#PATCH=http://www.xchat.org/files/source/2.4/patches/xc245-fix-te-notify.diff
BUILD=${BUILD:-1}
OPTIMIZE=${OPTIMIZE:-"-Os -pipe"}

build() {
	_explode 0
	cd xchat-$VERSION
#	_patch 0 -p1
	LOCALSTATEDIR=$LOCALSTATEDIR/lib
	$CONFIGURE \
		--enable-ipv6 \
		--enable-shm \
		--with-openssl \
		--disable-dbus
	make -j$NUMOBJS
	make install DESTDIR=$PKG
	_doc 0 xchat-$VERSION  AUTHORS COPYING HACKING INSTALL README
	_chfix
	_chgrp_bin
}
