# $Id: Portfile,v 1.15 2006/06/24 12:33:37 rhwood Exp $
PortSystem 1.0
name		gnome-terminal
version		2.14.2
description	Terminal component for the GNOME 2 Desktop
long_description        Terminal component for the GNOME 2 Desktop
maintainers	gnome-darwinports@opendarwin.org
categories	gnome
platforms	darwin 
homepage	http://www.gnome.org/
master_sites    gnome:sources/gnome-terminal/2.14/

checksums	rmd160 cb91ce96bceca12abda7ec50e16b48759c7f38a1

patchfiles	patch_terminal-screen.c

depends_lib \
	port:gnome-platform-suite \
	bin:perl:perl5.8 lib:libexpat:expat port:freetype lib:libtiff:tiff \
	port:fontconfig port:zlib lib:libgettextlib:gettext \
	lib:libiconv:libiconv port:libart_lgpl \
	lib:libpng:libpng \
	lib:libjpeg:jpeg \
	port:Xft2 port:audiofile \
	port:libbonoboui \
	port:xrender port:zlib \
	port:popt port:scrollkeeper port:startup-notification port:vte

use_bzip2 	yes

configure.args \
	--mandir=${prefix}/share/man \
	--with-gconf-source="xml::${destroot}/${prefix}/etc/gconf/gconf.xml.defaults"
configure.env   CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib" \
                CFLAGS="-no-cpp-precomp -flat_namespace -undefined suppress"

pre-destroot	{ file mkdir -f ${destroot}${prefix}/etc/gconf/gconf.xml.defaults/ }
post-destroot	{
	file delete -force ${destroot}${prefix}/var/scrollkeeper
	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
	file delete -force ${destroot}${prefix}/etc/gconf/gconf.xml.defaults//schemas/apps/%gconf.xml
}
