# $Id: Portfile,v 1.6 2006/07/15 16:07:52 rhwood Exp $
PortSystem 1.0
name		poppler	
version		0.5.3
description	Poppler is a PDF rendering library based on the xpdf-3.0 code base.
long_description        ${description}
maintainers	darwinports@opendarwin.org
categories	graphics
platforms	darwin 
homepage	http://${name}.freedesktop.org/
master_sites    ${homepage}
checksums	md5 d06207536555f5711e7bc61711c1b8a0 \
		sha1 e197f5cf56f0676b5ca313577dd6456a393c46ec \
		rmd160 3456de23955fc4001842c76d32deba308bd7f968
depends_lib	lib:libcairo:cairo lib:gtk.2:gtk2
configure.args  --mandir=${prefix}/share/man
configure.env	CPPFLAGS="-I${prefix}/include -L${prefix}/lib"

#platform darwin 8 {
#	configure.env-append	CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
#}

pre-configure {
	reinplace "s|-flat_namespace -undefined suppress||g" \
		${worksrcpath}/configure 
}
