# $Id: Portfile,v 1.5 2006/05/28 10:57:05 rhwood Exp $
PortSystem 1.0
name		gnome-libs
version		1.4.2
revision	2
description	These are the GNOME libraries.
long_description        These are the GNOME libraries, the foundation for \
			most of the application of the GNOME project.
maintainers	gnome-darwinports@opendarwin.org
categories	gnome
platforms	darwin 
homepage	http://www.gnome.org/
master_sites    gnome:sources/gnome-libs/1.4/
use_bzip2	yes
checksums	md5 6111e91b143a90afb30f7a8c1e6cbbd6
depends_lib     lib:liboaf:oaf lib:libgtk.1:gtk1 lib:libghttp:libghttp \
		lib:imlib:imlib
patchfiles	patch_configure patch_ltmain.sh patch-XmHTMLP.h patch-XmHTMLI.h
configure.args  --mandir=${prefix}/share/man --disable-gtk-doc --disable-test-gnome
configure.env   CPPFLAGS="-L${prefix}/lib -I${prefix}/include" \
		CFLAGS="-fstrict-aliasing -funroll-loops"

pre-destroot {
	addgroup games
	adduser games gid=[existsgroup games]
}

post-destroot {
	file rename ${destroot}${prefix}/share/pixmaps/gnome-error.png \
		 ${destroot}${prefix}/share/pixmaps/gnome-error-1.png
	file rename ${destroot}${prefix}/share/pixmaps/gnome-question.png \
		${destroot}${prefix}/share/pixmaps/gnome-question-1.png
	file rename ${destroot}${prefix}/share/pixmaps/gnome-default-dlg.png \
		${destroot}${prefix}/share/pixmaps/gnome-default-dlg-1.png
	file rename ${destroot}${prefix}/share/pixmaps/gnome-info.png \
		${destroot}${prefix}/share/pixmaps/gnome-info-1.png
	file rename ${destroot}${prefix}/share/pixmaps/gnome-warning.png \
		${destroot}${prefix}/share/pixmaps/gnome-warning-1.png
}
