# -*- 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                libbluray
version             1.3.4

checksums           rmd160  108a271b5ed32e90a6b9404f51e6abbe232a4b48 \
                    sha256  478ffd68a0f5dde8ef6ca989b7f035b5a0a22c599142e5cd3ff7b03bbebe5f2b \
                    size    756323

categories          multimedia
license             LGPL-2.1
platforms           darwin
maintainers         {jeremyhu @jeremyhu} openmaintainer

description         an open-source library designed for Blu-Ray Discs playback
long_description    {*}${description}

homepage            https://www.videolan.org/developers/libbluray.html
master_sites        https://download.videolan.org/pub/videolan/${name}/${version}

use_bzip2           yes

depends_build       port:pkgconfig \
                    port:perl5

depends_lib         port:libxml2 \
                    port:fontconfig \
                    port:freetype

platform darwin 8 {
    patchfiles-append patch-libbluray-disable-POSIX-Tiger.diff
}

configure.perl      ${prefix}/bin/perl5

configure.args      --disable-doxygen-doc \
                    --disable-bdjava-jar \
                    --disable-examples

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     libbluray (\[0-9.]+)
