# -*- 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

PortSystem      1.0
PortGroup       muniversal 1.0

name            libvorbis
version         1.3.7
revision        0
categories      audio
license         BSD
platforms       darwin
maintainers     nomaintainer
description     The Vorbis General Audio Compression Codec

long_description \
    Ogg Vorbis is a fully open, non-proprietary, \
    patent-and-royalty-free, general-purpose compressed audio format for \
    audio and music at fixed and variable bitrates from 16 to 128 \
    kbps/channel.

homepage        https://xiph.org/vorbis/
master_sites    https://downloads.xiph.org/releases/vorbis/

depends_lib     port:libogg

checksums       rmd160  dc894b201bcf253c54b3e8468c656987ea9f97c8 \
                sha256  0e982409a9c3fc82ee06e08205b1355e5c6aa4c36bca58146ef399621b0ce5ab \
                size    1658963

patchfiles          patch-docdir.diff

configure.args  --disable-oggtest

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} AUTHORS CHANGES COPYING \
        ${destroot}${docdir}
}

livecheck.type  regex
livecheck.url   https://www.xiph.org/downloads/
livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
