# -*- 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                libdvbpsi
version             1.3.3
revision            0
categories          devel multimedia
license             LGPL-2.1+
maintainers         nomaintainer

description         library to decode / generate MPEG TS & DVB PSI tables

long_description \
    libdvbpsi is a set of tools which allows to decode and generate all \
    the Program specific Information ( PSI ) present in a MPEG2 TS or a \
    DVB stream. The two keywords are portability and simplicity .

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

use_bzip2           yes

checksums           rmd160  3d809e73776d3ac3426efdbe327780c55292284e \
                    sha256  02b5998bcf289cdfbd8757bedd5987e681309b0a25b3ffe6cebae599f7a00112 \
                    size    488020

# examples currently fail for different on different OS versions
# disable everywhere, for now
# also need to enable some newer automake versions now
patchfiles-append   patch-no_examples.diff \
                    patch-bootstrap-add-automake-versions.diff

depends_build-append \
                    port:automake port:autoconf port:libtool

pre-configure {
    system -W ${worksrcpath} "/bin/sh bootstrap"
}

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

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