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

# getline
legacysupport.newest_darwin_requires_legacy 10

github.setup    gobby libinfinity 0.7.2
revision        0
checksums       rmd160  ca6bd1a7b4c1cac48c184fc0b44015bbba7a4159 \
                sha256  6e7029375a81c5e3dbcdf23b69402d220b124ac83e349f07fd37fd0e8379239e \
                size    2069487

categories      comms
license         LGPL-2+
maintainers     nomaintainer

description     libinfinity is an implementation of the Infinote protocol written in GObject-based C.
long_description ${description}

github.tarball_from \
                releases

gobject_introspection \
                yes

depends_build   port:pkgconfig

depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2 \
                path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                port:libxml2 \
                path:lib/pkgconfig/gnutls.pc:gnutls \
                port:libgsasl \
                port:libdaemon

patchfiles      implicit.patch

configure.args  --disable-silent-rules \
                --with-libdaemon \
                --without-avahi

# /usr/bin/ranlib: library member: libinftestutil.a(libinfinity-0.5.la) is not an object file (not allowed in a library with multiple architectures)
universal_variant no

if {${os.platform} eq "darwin" && ${os.major} < 10} {
    patchfiles-append patch-infinoted-infinoted-pam.c.diff
}
