# -*- 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
PortGroup           gobject_introspection 1.0

name                gupnp
version             1.6.9
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  111b07cc8d4ae269048852c4589eec101d4a3c54 \
                    sha256  2edb6ee3613558e62f538735368aee27151b7e09d4e2e2c51606833da801869b \
                    size    1289220

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

depends_lib-append  path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:gssdp \
                    path:lib/pkgconfig/libsoup-3.0.pc:libsoup \
                    port:libxml2

gobject_introspection   yes

# 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

pre-configure {
    configure.args-replace  -Dintrospection=enabled -Dintrospection=true
}

livecheck.type      gnome
