# -*- 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.2
revision            0
categories          multimedia
maintainers         {ryandesign @ryandesign} openmaintainer
license             LGPL-2.1+

description         Matroska is an extensible open standard audio/video container format
long_description    {*}${description}. 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
checksums           rmd160  9f1eb010f0432b61b992725cd82f58ad6b88d7c2 \
                    sha256  f3e4d406daf7f1399962c43940e4a87de089474d5bcfbf2e6ca516e98bb87cfc \
                    size    63016

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}
