# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           meson 1.0

name                gupnp-av
version             0.14.1
revision            0
license             LGPL
set branch          [join [lrange [split ${version} .] 0 1] .]
description         GUPnP-AV is a collection of helpers for building AV (audio/video) applications using GUPnP.

long_description    ${description}

maintainers         {devans @dbevans} openmaintainer
categories          net gnome
homepage            https://wiki.gnome.org/Projects/GUPnP
master_sites        gnome:sources/${name}/${branch}/

use_xz              yes

checksums           rmd160  ea3ca7059cf1f312cd43552ede45630f991f001e \
                    sha256  b79ce0cc4b0c66d9c54bc22183a10e5709a0011d2af272025948efcab33a3e4f \
                    size    93484

# This causes a problem with the new clang: https://github.com/macports/macports-ports/pull/19914
patchfiles-append   patch-no-werror-deprecated.diff

depends_build-append \
                    port:gtk-doc \
                    port:pkgconfig \
                    path:bin/vala:vala

depends_lib-append  port:gobject-introspection \
                    port:gupnp \
                    port:libxml2

# blacklist compilers that do not support C11
# due to error: redefinition of typedef 'GUPnPService'
# build fix for SL and earlier

compiler.blacklist  *gcc-3.* *gcc-4.* {clang < 300}

configure.args-append \
                    -Dgtk_doc=false

livecheck.type      gnome
