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

name                gupnp-dlna
version             0.10.5
license             LGPL
set branch          [join [lrange [split ${version} .] 0 1] .]
description         GUPnP-DLNA is a small utility library that aims to ease DLNA-related tasks.

long_description    ${description}

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

use_xz              yes

checksums           rmd160  2c85c667c089ccdab2dd874e4523ecee1af4b63f \
                    sha256  123e368227c11d5c17fc1aa76cbdaffa345355eb51d172cd39fc74a5b468ff6a

depends_build       port:pkgconfig

depends_lib         port:gupnp \
                    port:gstreamer1-gst-plugins-base \
                    port:libxml2 \
                    port:vala

patchfiles          patch-metadata-backends-ldflags.diff \
                    patch-m4-ax_compiler_flags_ldflags.m4.diff

gobject_introspection yes

# autoreconf after patching m4 macros

use_autoreconf      yes
autoreconf.args     -fvi

configure.args      --disable-compile-warnings \
                    --disable-silent-rules

livecheck.type      gnome