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

name                telepathy-qt
version             0.9.8
categories          comms
maintainers         nomaintainer
license             LGPL-2.1+
description         The ${name} component of Telepathy - a Flexible \
                    Communications Framework.
long_description    Telepathy is a D-Bus framework for unifying real time \
                    communication, including instant messaging, voice calls \
                    and video calls. It abstracts differences between protocols \
                    to provide a unified interface for applications.
platforms           darwin
homepage            https://telepathy.freedesktop.org/wiki
master_sites        https://telepathy.freedesktop.org/releases/${name}/

checksums           rmd160  52f5ab2f9491d4f80648a44497dba298b9a30d45 \
                    sha256  bf8e2a09060addb80475a4938105b9b41d9e6837999b7a00e5351783857e18ad \
                    size    6448686

cmake.out_of_source yes

configure.cxxflags-append   -I${prefix}/lib/gstreamer-1.0/include/
configure.args-append       -DFORCE_STATIC_SERVICE_LIBRARY=TRUE \
                            -DENABLE_TESTS=FALSE

depends_lib-append  path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    bin:perl:perl5 \
                    port:dbus-glib \
                    port:telepathy-glib \
                    port:telepathy-farstream \
                    port:gstreamer1 \
                    port:libxml2


variant python27 description {Build using Python 2.7} {
        depends_build-append port:python27
        configure.python ${prefix}/bin/python2.7
        configure.args-append   -DPYTHON_EXECUTABLE:FILEPATH=${prefix}/bin/python2.7
}

default_variants +python27

livecheck.type  regex
livecheck.url   ${master_sites}
livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
