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

name                telepathy-qt
version             0.9.7
revision            1
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.
homepage            https://telepathy.freedesktop.org/wiki
master_sites        https://telepathy.freedesktop.org/releases/${name}/

checksums           rmd160  97d979a4874be5385792b0d45d27dc16d0e88bfd \
                    sha256  21bad30be7ebc4ba667d53d92cd1cec1be23114103f2149404d9740721693d4f \
                    size    6213405

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

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

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}
