# $Id: Portfile 43797 2008-12-15 05:33:02Z toby@macports.org $

PortSystem 1.0

name			libstree
version			0.4.2
categories		science
platforms		darwin
maintainers		nomaintainer
description		generic suffix tree implementation, written in C
long_description	${description}

homepage		http://www.cl.cam.ac.uk/~cpk25/libstree/
master_sites	http://www.cl.cam.ac.uk/~cpk25/downloads/
checksums		sha1 b35bc18fbbc43bec1415bc1d884708e1df7bf2c6

patchfiles		patch-src__lst_string.h

post-build {
	system "cd ${worksrcpath}/src/.libs && \
		/bin/sh ${filespath}/create-dylib.sh libstree.a 1.0.0 ${prefix}/lib"
}

post-destroot {
	xinstall -m 644 -W ${worksrcpath}/src/.libs/ libstree.1.0.0.dylib \
		libstree.dylib ${destroot}${prefix}/lib
}

