# -*- 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
# $Id$

PortSystem          1.0

name                libdvdcss
version             1.4.0
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            http://www.videolan.org/developers/libdvdcss.html
master_sites        http://download.videolan.org/pub/${name}/${version}/
use_bzip2           yes
checksums           rmd160  a90a9b40bf1313fe8d3561b39183a34f1ff3844d \
                    sha256  2089375984800df29a4817b37f3123c1706723342d6dab4d0a8b75c25c2c845a

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       http://download.videolan.org/pub/${name}/
livecheck.regex     {>([0-9.]+)/<}