# -*- 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                libaacs
version             0.12.0
revision            0
categories          multimedia
license             LGPL-2.1
maintainers         {i0ntempest @i0ntempest} openmaintainer
description         AACS support library for Blu-ray playback

long_description    Implementation of the Advanced Access Content System Specification

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

use_bzip2           yes

depends_build       port:bison \
                    port:flex \
                    port:gettext \
                    path:bin/perl:perl5

depends_lib         port:libgcrypt \
                    port:libgpg-error \
                    port:libiconv
                    
checksums           rmd160  5219a490d983c58d85cbb1f6b308be4465ce474b \
                    sha256  1996673a9fc45ee4a364c66ffa84756629bf3923e52346c7358b71becb8e4419 \
                    size    375051

patch.pre_args-replace  -p0 -p1
patchfiles-append   libaacs-0.12.0-macos-10.5-10.6-noblocks.patch

configure.perl      ${prefix}/bin/perl5

configure.args-append \
                    --disable-silent-rules

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