# $Id$

PortSystem          1.0

name                ocaml-lame
version             0.2.2
revision            4
categories          devel ml audio
license             GPL-2+
maintainers         rastageeks.org:toots
description         OCaml bindings for the lame MPEG encoding library
long_description    $description
homepage            http://savonet.sf.net/
platforms           darwin
master_sites        sourceforge:savonet

checksums           md5  144d0d85ed951d9808cabf6c19f4b760 \
                    sha1  8d74a3d487e519570100cba625acfd68c1cc60c2 \
                    rmd160  e067da327586d2183f0aa5ed9be518618533b3e4

depends_lib         port:ocaml \
                    port:ocaml-findlib \
                    port:lame

build.args          LIBDIRS=${prefix}/lib

pre-destroot {
  set ocamlfind_destdir "${destroot}[exec ${prefix}/bin/ocamlfind printconf destdir]"
  file mkdir $ocamlfind_destdir
  reinplace "s#\$(OCAMLFIND_INSTFLAGS)# -ldconf ignore -destdir '$ocamlfind_destdir'#g" \
    ${worksrcpath}/src/OCamlMakefile
}