# $Id: Portfile,v 1.3 2006/02/28 19:39:56 ben Exp $
PortSystem 1.0
name		libwpd
version		0.8.4
description	A general purpose library for reading WordPerfect files.
long_description	${description}
maintainers	darwinports@opendarwin.org
categories	textproc
platforms	darwin 
homepage	${name}.sf.net
master_sites	sourceforge
checksums	md5 0461d4bf2da534b4bed041b67d7f7064
depends_lib	lib:libglib-2:glib2 lib:libgsf-1:libgsf

patch		{
		reinplace "s|need_relink=yes|need_relink=no|g" ${worksrcpath}/ltmain.sh
}
configure.args	--mandir=${prefix}/share/man 
configure.env   CPPFLAGS="-I${prefix}/include -L${prefix}/lib" \
                CFLAGS="-no-cpp-precomp -flat_namespace -undefined suppress" 
