# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                libogg
version             1.3.5
revision            1
categories          multimedia
license             BSD
maintainers         {judaew @judaew} openmaintainer

description         Ogg Bitstream Library
long_description    Libogg is a library for manipulating ogg \
                    bitstreams. It handles both making ogg \
                    bitstreams and getting packets from ogg bitstreams.
homepage            http://www.vorbis.com/

master_sites        https://ftp.osuosl.org/pub/xiph/releases/ogg/
use_xz              yes

checksums           rmd160  cb84ce28673cd2fe398b8a70826674a6e6e49365 \
                    sha256  c4d91be36fc8e54deae7575241e03f4211eb102afb3fc0775fbbc1b740016705 \
                    size    429076

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

livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
