# $Id: Portfile,v 1.4 2005/09/03 21:39:03 toby Exp $

PortSystem 1.0

name            teg
version         0.11.1
categories      games
maintainers     pguyot@kallisys.net
description     Tenes Empanadas Graciela - A risk clone
homepage        http://www.freeciv.org/
platforms	    darwin

master_sites    sourceforge:teg
checksums       md5 85db29710452c3c4829e506481deaca0 \
				sha1 dce0e76d3e45390c04bb2fac6f21693d467e48ad
#				rmd160 77ca993f3b38309d5f255a709aa0064b11e2139a

configure.args	--sysconfdir=${destroot}${prefix}/etc

depends_lib	\
	bin:autoconf:autoconf \
	bin:gettext:gettext \
	bin:makeinfo:texinfo \
	bin:perl:perl5.8 \
	bin:pkg-config:pkgconfig \
	lib:fontconfig:fontconfig \
	lib:libart_lgpl_2:libart_lgpl \
	lib:libatk-1.0:atk \
	lib:libbonoboui-2:libbonoboui \
	lib:libbonono-2:libbonobo \
	lib:libexpat:expat \
	lib:libgconf-2:gconf \
	lib:libglib-2.0:glib2 \
	lib:libgnome-2:libgnome \
	lib:libgnomecanvas-2:libgnomecanvas \
	lib:libgnomeui-2:libgnomeui \
	lib:libgnomevfs-2:gnome-vfs \
	lib:libgtk-x11-2.0:gtk2 \
	lib:libintl:libiconv \
	lib:libjpeg:jpeg \
	lib:libORBit-2:orbit2 \
	lib:libpango-1.0:pango \
	lib:libpng12.0:libpng \
	lib:libpopt:popt \
	lib:libreadline:readline \
	lib:libtiff.3:tiff \
	lib:libXft2:Xft2 \
	lib:libxml2:libxml2 \
	lib:libXrender:xrender \
	lib:libz:zlib \
	lib:ligtiff:tiff \
	port:audiofile \
	port:esound \
	port:freetype \
	port:gnome-keyring \
	port:openssl \
	port:p5-xml-parser \
	port:scrollkeeper

pre-destroot {
	file mkdir "${destroot}${prefix}/etc/gconf/gconf.xml.defaults/"
	file mkdir "${destroot}${prefix}/etc/gconf/gconf.xml.defaults/apps/"
	file mkdir "${destroot}${prefix}/etc/gconf/gconf.xml.defaults/shemas/apps/"
}

post-destroot {
	file delete -force ${destroot}${prefix}/etc/gconf/gconf.xml.defaults/apps/%gconf.xml
	file delete -force ${destroot}${prefix}/etc/gconf/gconf.xml.defaults/schemas/%gconf.xml
}
