# $Id: Portfile 111008 2013-09-13 12:35:03Z mww@macports.org $

PortSystem          1.0
PortGroup ocaml 1.0

name                ocaml-flac
version             0.1.1
revision            2
categories          audio devel ml multimedia
maintainers         mww
license             LGPL-2
description         OCaml bindings for the flac library
long_description    ${description}
homepage            http://savonet.sf.net/
platforms           darwin
master_sites        sourceforge:savonet

checksums           rmd160  445cbdedf93ee1cccffe8ce1ee9beb7f8bf94020 \
                    sha256  9f22dce6ad947fc436992eeb71a19bd9bb7c173543132c2b605fa3a7b02ac74a

depends_build       port:pkgconfig
depends_lib         port:ocaml \
                    port:ocaml-findlib \
                    port:flac \
                    port:ocaml-ogg

configure.pkg_config ${prefix}/bin/pkg-config
configure.env-append OCAMLFIND=${ocamlfind_wrapper} USER=macports

use_parallel_build  no
build.args          LIBDIRS=${prefix}/lib

livecheck.type      regex
livecheck.url       http://sf.net/api/file/index/project-id/89802/rss?path=%2Focaml-flac
livecheck.regex     {ocaml-flac-(.*)\.tar\.gz}

