# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 114381 2013-12-06 19:18:18Z jeremyhu@macports.org $

PortSystem      1.0
PortGroup       muniversal 1.0

name            libopus
version         1.1
categories      audio
license         BSD
platforms       darwin
maintainers     jeremyhu openmaintainer
description     The Opus Audio Codec (IETF RFC 6716), refrence implementation

long_description \
    Opus is the first state-of-the-art, fully Free and Open audio codec \
    ratified by a major standards organization.  It is reportedly better than \
    all pre-existing codecs across the spectrum for voice, audio, archival, \
    and real-time uses.

homepage        http://www.opus-codec.org
master_sites    http://downloads.xiph.org/releases/opus

distname        opus-${version}

depends_build   port:pkgconfig

checksums           sha1    35005f5549e2583f5770590135984dcfce6f3d58 \
                    rmd160  01945dc82b7573f1d8b706bd82a4cb3fda57da35 \
                    sha256  b9727015a58affcf3db527322bf8c4d2fcf39f5f6b8f15dbceca20206cbe1d95

use_parallel_build  yes

livecheck.type  regex
livecheck.url   ${master_sites}
livecheck.regex opus-(\[\\d.\]+)${extract.suffix}
