# $Id$

PortSystem          1.0

name                ocaml-ao
version             0.1.9
revision            4
categories          devel ml
license             LGPL-2.1
maintainers         rastageeks.org:toots
description         OCaml bindings for the libao audio output library
long_description    This port contains an O'Caml interface for the \
                    cross-platform audio output library, otherwise known as \
                    libao.
homepage            http://savonet.sf.net/
platforms           darwin
master_sites        sourceforge:savonet

checksums           md5  1ed967e98df567d628d539d1dfb53744 \
                    sha1  9b5b113449dd7bf027b1078ef9339c376c2f8a1c \
                    rmd160  7e00cb46fa290050f81fa333d79a7b562c271d48

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

configure.pkg_config    ${prefix}/bin/pkg-config

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
}