# -*- 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 77775 2011-04-12 14:32:41Z devans@macports.org $

PortSystem 1.0

name            farsight2
version         0.0.26
description     Farsight - Audio/Video Communications Framework
long_description \
                The Farsight project is an effort to create a framework \
                to deal with all known audio/video conferencing protocols. \
                On one side it offers a generic API that makes it possible \
                to write plugins for different streaming protocols, on the \
                other side it offers an API for clients to use those plugins.
maintainers     devans openmaintainer
categories      comms
platforms       darwin
homepage        http://farsight.freedesktop.org/wiki/
master_sites    http://farsight.freedesktop.org/releases/${name}/

checksums       md5     7756d910687dd2abd455fd68e83f125c \
                sha1    4d0e105a807075dd2a5c837aca92febdef6229a4 \
                rmd160  62e7b6f114040e0cd3e995439532a6937e0dbafa

depends_build   port:pkgconfig \
                port:gtk-doc

depends_lib     port:libnice

patchfiles      patch-python-pyfarsightmodule.c.diff \
                patch-configure.diff

configure.python ${prefix}/bin/python2.6

configure.args  --disable-gupnp \
                --disable-python \
                --disable-silent-rules \
                --disable-valgrind

variant python description {Enable bulding of Python bindings} {
                configure.args-delete       --disable-python
                depends_lib-append          port:py26-gst-python
                set python_prefix           ${frameworks_dir}/Python.framework/Versions/2.6
                set python_pkg_config_path  ${python_prefix}/lib/pkgconfig
                configure.args-append       --with-pkg-config-path=${python_pkg_config_path}
                build.env-append            PKG_CONFIG_PATH=${python_pkg_config_path} \
                                            PATH=${python_prefix}/bin:$env(PATH)
}

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