PortSystem 1.0

name			ustl
version			1.5
categories		devel
platforms		darwin
license			MIT
maintainers		nomaintainer
description		micro-STL is a partial implementation of the STL specification
long_description	uSTL (micro-STL) is a partial implementation of the STL \
				specification intended to reduce code size of the derivative \
				programs.

homepage		http://ustl.sourceforge.net/
master_sites	sourceforge
checksums		md5 df48fd261e38ccb906c08bcb393af877 \
			sha1 8e31aa4c0b1d6ca640444678a8f7d0d3cc464015 \
			rmd160 0dd0fd1d2236ad86f8a20e220b0efeda48fa02bb
use_bzip2		yes

depends_build		port:gsed

patchfiles		configure.diff Makefile.diff
platform darwin {
    patchfiles-append Config.mk.in.diff
}

configure.env   	SED=${prefix}/bin/gsed

pre-destroot {
	reinplace "s|${prefix}|${destroot}${prefix}|g" ${worksrcpath}/Config.mk
	xinstall -d ${destroot}${prefix}/include/${name}
}
post-destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} LICENSE \
		${destroot}${prefix}/share/doc/${name}
}