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

PortSystem          1.0
PortGroup           gobject_introspection 1.0

name                libdmapsharing
version             3.9.12
categories          devel
license             LGPL-2+
maintainers         {devans @dbevans} openmaintainer

description         A DMAP client and server library

long_description    ${name} implements the DMAP protocols. \
                    This includes support for DAAP and DPAP.

homepage            https://www.flyn.org/projects/${name}/
master_sites        ${homepage}

checksums           rmd160  c4c6cb0fb224a66c0c379649226447d52ae15d5d \
                    sha256  aa47e405c5059ff35ff6fc447e497dc1ff15558859a57710a664350314abf750 \
                    size    801055

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

# gst-plugins-base for libgstapp.
depends_lib         port:avahi \
                    port:gstreamer1-gst-plugins-base \
                    path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    port:libgee \
                    path:lib/pkgconfig/libsoup-3.0.pc:libsoup

gobject_introspection   no

configure.args      --disable-silent-rules \
                    --disable-tests \
                    --with-mdns=avahi

# soup-message.h: error: redefinition of typedef 'SoupMessage'
compiler.blacklist-append \
                    *gcc-4.0 *gcc-4.2

livecheck.type      regex
livecheck.url       https://www.flyn.org/projects/${name}/
livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
