# -*- 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
version             1.6.6
revision            0
license             LGPL
set branch          [join [lrange [split ${version} .] 0 1] .]
description         GUPnP is an elegant, object-oriented open source framework for creating UPnP devices and control points.

long_description    GUPnP is an elegant, object-oriented open source framework for creating UPnP devices and control points, \
                    written in C using GObject and libsoup. The GUPnP API is intended to be easy to use, efficient and flexible. \
                    It provides the same set of features as libupnp, but shields the developer from most of UPnP's internals.

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  e809d1e4514c4cab0ecdc73dda3802989ab1b45b \
                    sha256  c9dc50e8c78b3792d1b0e6c5c5f52c93e9345d3dae2891e311a993a574f5a04f \
                    size    245860

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

depends_lib-append  path:lib/pkgconfig/gobject-introspection-1.0.pc:gobject-introspection \
                    port:gssdp \
                    path:lib/pkgconfig/libsoup-3.0.pc:libsoup \
                    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 \
                    -Dexamples=false

configure.cppflags-append \
                    -I/usr/include/uuid

livecheck.type      gnome
