# $Id: Portfile,v 1.4 2006/01/28 14:28:27 rhwood Exp $
PortSystem 1.0
name		stardict
version		2.4.5
categories	textproc
maintainers	alexandernx@gmail.com
description	A full featured gtk2 dictionary
long_description \
	Very nice gnome dictionary. \
	Can handle both local and web dictionaries. \
	Though it needs a handful of gnome libraries for \
	installation.
#I changed the portfile so by default it builds stardict without gnome support.

homepage	http://stardict.sf.net
master_sites	sourceforge
use_bzip2	yes
checksums	md5 78543ca107bf7a70a96ba41313de8883
depends_lib	lib:libgtk-x11-2:gtk2 \
		lib:libpopt:popt \
		port:p5-xml-parser
configure.env	LDFLAGS="-L${prefix}/lib" \
		CPPFLAGS="-I${prefix}/include"
configure.args	--disable-gnome-support

variant with-gnome {
#Should be more stable slower and with gnome deps.
configure.args-delete	--disable-gnome-support
depends_lib-append	lib:libgnome-2:libgnome lib:libgnomeui-2:libgnomeui
}
