# -*- 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
PortGroup           cmake 1.1

name                libmatroska
version             1.7.1
revision            0
checksums           rmd160  7fe239dd4f7902bd706218b695f33d8e1bb69ec6 \
                    sha256  572a3033b8d93d48a6a858e514abce4b2f7a946fe1f02cbfeca39bfd703018b3 \
                    size    61416

categories          multimedia
maintainers         {ryandesign @ryandesign} openmaintainer
license             LGPL-2.1+

description         Matroska is an extensible open standard audio/video container format.
long_description    \
                    Matroska is an extensible open standard audio/video container \
                    format. This library is there to support this format and has \
                    been written by the Matroska project team.

homepage            https://www.matroska.org
master_sites        https://dl.matroska.org/downloads/${name}/
use_xz              yes

depends_lib         port:libebml

# https://github.com/Matroska-Org/libmatroska/issues/60
compiler.cxx_standard 2011

configure.args      -DBUILD_SHARED_LIBS=ON

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     >${name}-(\[0-9.\]+)${extract.suffix}
