# $Id$

PortSystem          1.0

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

checksums           md5  19c0287260b9c161ab05af16131de9a6 \
                    sha1  566debea660641679faa154bfaa17820394031f7 \
                    rmd160  e220599b32260d052c850366ece68d110b3fc1b4

depends_build       port:pkgconfig
depends_lib         port:ocaml \
                    port:ocaml-findlib \
                    port:libshout2

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
}