# $Id: Portfile,v 1.6 2005/04/04 10:08:39 jkh Exp $

PortSystem          1.0
name                sablotron
version             1.0.1 
categories          textproc
maintainers         bchesneau@mac.com
description         XSLT, DOM and XPath processor 
long_description    Sablotron is a fast, compact and portable XML toolkit \
    implementing XSLT 1.0, DOM Level2 and XPath 1.0. Sablotron is an open \
    project. The goal of this project is to create a \
    lightweight, reliable and fast XML library processor conforming to the W3C \
    specification, which is available for public and can be used as a base for \
    multi-platform XML applications. 

platforms           darwin
distname            Sablot-${version}
distfiles	    Sablot-${version}.tar.gz
worksrcdir          Sablot-${version}
master_sites        http://download-1.gingerall.cz/download/sablot/
checksums	    md5 8d06392ef2e46652bce1c5e2b68d0662
depends_lib         lib:libiconv.2:libiconv \
                    lib:libexpat.0.4:expat

platform darwin 6   { depends_lib-append lib:libdl:dlcompat }
				
platform darwin {
	configure.env       LDFLAGS="-L${prefix}/lib -liconv -lexpat -no-undefined" \
                        CPPFLAGS="-I${prefix}/include -no-cpp-precomp -undefined error" \
                        CC=g++
}
