# -*- 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: Portfile 96373 2012-08-08 02:37:11Z ryandesign@macports.org $

PortSystem          1.0

name                libdvdcss
version             1.2.12
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  6cb95c4ee3d3f2817cc6ba10210776648b687e91 \
                    sha256  72465395d494f609b180cab23f9679acf6083fb821bd84979a8e70f7b795db5d

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.]+)/<}
