# -*- 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                libwebm
version             1.0.0.32
revision            0

fetch.type          git
git.url             https://chromium.googlesource.com/webm/libwebm
git.branch          libwebm-${version}

categories          multimedia
license             BSD

description         WebM File Parser
long_description    This library provides WebM parser and related tools.

homepage            https://www.webmproject.org/

maintainers         {@dpogue dpogue.ca:darryl} openmaintainer

compiler.cxx_standard 2011

configure.args-append \
                    -DBUILD_SHARED_LIBS=ON \
                    -DENABLE_WEBM_PARSER=ON \
                    -DENABLE_TESTS=OFF

variant tests description {Enable test support} {
    configure.args-replace \
                    -DENABLE_TESTS=OFF \
                    -DENABLE_TESTS=ON

    test.run        yes
    test.target     test
}

livecheck.type      regex
livecheck.url       https://chromium.googlesource.com/webm/libwebm
livecheck.regex     ">libwebm-(\\d+(?:\\.\\d+)*)<"
