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

name                libdvdcss
version             1.6.0
revision            0
categories          devel multimedia
platforms           darwin freebsd
maintainers         nomaintainer
license             GPL-2+

description         Portable abstraction library for DVD decryption
long_description    ${name} is a simple library designed for accessing \
                    DVDs like a block device without having to bother \
                    about the decryption.

homepage            https://www.videolan.org/developers/libdvdcss.html
master_sites        https://download.videolan.org/pub/${name}/${version}/
use_xz              yes
checksums           rmd160  e4b752ae5d5774d620d894acf8f79d6396b7deef \
                    sha256  7ea556c846b7bfc32d47b41cae56d1863a6b6d5f706bb162778d6f298490977c \
                    size    83640

compiler.c_standard 2017

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

variant docs description "Include API documentation" {
    depends_build-append    path:bin/doxygen:doxygen
    configure.args-append   -Denable_docs=true
}

livecheck.type      regex
livecheck.url       https://download.videolan.org/pub/${name}/
livecheck.regex     {>([0-9.]+)/<}
