# -*- 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 101863 2013-01-20 20:23:29Z jeremyhu@macports.org $

PortSystem      1.0
PortGroup       muniversal 1.0

name            libopus
version         1.0.2
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    37dd3d69b10612cd513ccf26675ef6d61eda24b4 \
                    rmd160  d1aa4c534cd7dc629e3ac155866bba810bb6ce42 \
                    sha256  da615edbee5d019c1833071d69a4782c19f178cf9ca1401375036ecef25cd78a

use_parallel_build  yes

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