# -*- 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-igd
version             1.6.0
revision            0
license             LGPL
set branch          [join [lrange [split ${version} .] 0 1] .]
description         GUPnP-IGD is a library to handle UPnP IGD port mapping.
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  306f4be3a44a18d31eb1533ba2199416a4cd78b2 \
                    sha256  4099978339ab22126d4968f2a332b6d094fc44c78797860781f1fc2f11771b74 \
                    size    29220

depends_build-append \
                    port:pkgconfig

depends_lib-append  path:lib/pkgconfig/gobject-introspection-1.0.pc:gobject-introspection \
                    port:gupnp

# 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}

livecheck.type      gnome
