# $Id$

PortSystem 1.0

name			hoard
version			3.7.1
categories		devel
license			GPL-2+
platforms		darwin
maintainers		nomaintainer
description		A drop-in replacement for malloc that is very fast on \
			multiprocessor machines.
long_description	${description}
homepage		http://www.hoard.org/
distfiles		${name}-[strsed ${version} {g/[.]//}]${extract.suffix}
master_sites	http://www.cs.umass.edu/~emery/hoard/hoard-${version}/
checksums		sha1 69e19f4985e806c25d037c5d181a52f2d69e7c0c

use_configure	no
worksrcdir      ${name}-[strsed ${version} {g/[.]//}]

build.dir       ${worksrcpath}/src
build.target    darwin

post-build {
    system "install_name_tool -id ${prefix}/lib/libhoard.dylib ${worksrcpath}/src/libhoard.dylib"
}

destroot {
    xinstall -m 755 ${worksrcpath}/src/libhoard.dylib ${destroot}${prefix}/lib/libhoard.dylib
}