# -*- 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$

PortSystem      1.0

name            libdvbpsi
version         1.3.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        http://developers.videolan.org/libdvbpsi/
platforms       darwin
master_sites    http://download.videolan.org/pub/${name}/${version}/

use_bzip2       yes

checksums           rmd160  dbd946bc2a423b0351d34b360f505241219b7d45 \
                    sha256  a2fed1d11980662f919bbd1f29e2462719e0f6227e1a531310bd5a706db0a1fe

# examples currently fail for different on different OS versions
# disable everywhere, for now
patchfiles-append   patch-no_examples.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       http://download.videolan.org/pub/${name}/
livecheck.regex     {>([0-9.]+)/<}