# -*- 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
# $Id: Portfile 86765 2011-11-03 03:42:28Z ryandesign@macports.org $

PortSystem 1.0

name            libinfinity
version         0.5.1
description     libinfinity is an implementation of the Infinote protocol written in GObject-based C.
long_description ${description}
maintainers     phw openmaintainer
categories      comms
license         LGPL-2+
platforms       darwin
homepage        http://gobby.0x539.de/trac/wiki/Infinote/Libinfinity
master_sites    http://releases.0x539.de/libinfinity/

checksums       rmd160  12d57cbb12f961bea842a47bae9b7a83ea2f085b \
                sha256  783071349fc6e08e2af6564bc46b3d4a44122991c9330b26553e01bcc42cb573

depends_build   port:pkgconfig

depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2 \
                port:gtk2 \
                port:libxml2 \
                port:gnutls \
                port:libgsasl

# /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} == "darwin" && ${os.major} >= 10} {
    patchfiles-append patch-infinoted-infinoted-pam.c.diff
}

livecheck.type  regex
livecheck.url   ${master_sites}
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
