# -*- 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
PortGroup           meson 1.0

name                libdvdnav
version             7.0.0
categories          devel multimedia
license             GPL-2+
maintainers         nomaintainer

description         DVD navigation library

long_description    libdvdnav is a library that allows easy use of \
                    sophisticated DVD navigation features such as DVD menus, \
                    multiangle playback and even interactive DVD games. All \
                    this functionality is provided through a simple API which \
                    provides the DVD playback as a single logical stream of \
                    blocks, intermitted by special dvdnav events to report \
                    certain conditions. The main usage of libdvdnav is a loop \
                    regularly calling a function to get the next block, \
                    surrounded by additional calls to tell the library of \
                    user interaction. The whole DVD virtual machine and \
                    internal playback states are completely encapsulated.

platforms           darwin

depends_lib         port:libdvdread

homepage            http://dvdnav.mplayerhq.hu/
master_sites        https://download.videolan.org/pub/videolan/${name}/${version}/
use_xz              yes

checksums           rmd160  4ee2e9e505dc2771eff56487b1f496623445a7c1 \
                    sha256  a2a18f5ad36d133c74bf9106b6445806fa253b09141a46392550394b647b221e \
                    size    85132

depends_build-append \
                    port:pkgconfig

# Fix build failure when upgrading from previous version.
configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include

compiler.c_standard 2017

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