# $Id: Portfile,v 1.11 2006/04/15 15:38:12 mww Exp $

PortSystem 1.0

name			bitlbee
version			1.0.2
categories		irc net
platforms		darwin
maintainers		mww@opendarwin.org
description		An IRC to other chat networks gateway
long_description	bitlbee is an IRC server that can connect to IM \
				networks such as AIM and MSN. Its intention is you \
				only have to use one client application for all your \
				instant messaging.

homepage		http://www.bitlbee.org/
master_sites	http://get.bitlbee.org/src/
checksums		sha1 dd9658bacf921cfecd3bfa0da0dfb3fa06179c4f

depends_lib		port:gnutls port:gettext port:glib2 port:libgcrypt \
				port:libgpg-error port:libiconv port:libtasn1

configure.args	--config=${prefix}/var/lib/bitlbee/ --ssl=gnutls

destroot.target	install install-etc

post-destroot {
	destroot.keepdirs ${destroot}${prefix}/var/lib/bitlbee
	cd ${destroot}${prefix}/etc/bitlbee/
	file rename bitlbee.conf bitlbee.conf.sample
	file rename motd.txt motd.txt.sample
}

platform darwin 8 {
	build.args	CC=/usr/bin/gcc-4.0
}
