# -*- 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                libdvdcss
version             1.4.3
categories          devel multimedia
platforms           darwin freebsd
maintainers         nomaintainer
license             GPL-2+

description         portable abstraction library for DVD decryption

long_description    libdvdcss 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_bzip2           yes
checksums           rmd160  ec0001ff925075037740ab0871979a974fd2305b \
                    sha256  233cc92f5dc01c5d3a96f5b3582be7d5cee5a35a52d3a08158745d3d86070079 \
                    size    388404

configure.args      --disable-doc

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

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