# $Id: Portfile,v 1.41 2005/10/02 08:05:59 mij Exp $

PortSystem 1.0
name		gaim
version		1.5.0
categories	net
maintainers	mij@opendarwin.org
description	AIM message service client with a gtk2 interface

long_description Gaim is an Open Source clone of America OnLine's \
		 Instant Messenger client that uses GTK+ version 2.  It \
		 features multiple groups, group chat, user information \
		 fetching and registration, time stamping, and more.  It \
		 also supports other IM protocols, including Yahoo!, \
		 MSN, ICQ, Jabber, Napster, IRC, and Zephyr via included \
		 plugins.

master_sites	sourceforge

checksums	md5 9205321ac11fad271c90f2f0d7c5e7ce

use_bzip2	yes

depends_lib	lib:libgtk.2:gtk2

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

configure.args	--disable-audio --disable-screensaver --disable-gtkspell \
		--mandir=${prefix}/share/man --enable-nss=no

platform darwin 6 { depends_lib-append lib:libdl:dlcompat }

default_variants +msn

variant msn	{ depends_lib-append lib:libgnutls.11:gnutls }

variant audio	{ depends_lib-append lib:libao.2:libao \
				     lib:libaudiofile:audiofile
		  configure.args-delete --disable-audio
		  configure.args-append	--enable-audio }
