# -*- 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$

PortSystem          1.0
PortGroup           gobject_introspection 1.0

name                libnice
version             0.1.13
license             MPL-1.1 LGPL-2.1
description         Libnice is an implementation of the IETF's draft Interactice \
                    Connectivity Establishment standard (ICE).
long_description    Libnice is an implementation of the IETF's draft Interactice \
                    Connectivity Establishment standard (ICE). It provides a GLib-based \
                    library, libnice and GStreamer elements.
maintainers         devans openmaintainer
categories          net comms
platforms           darwin
homepage            https://nice.freedesktop.org/wiki/
master_sites        https://nice.freedesktop.org/releases/

checksums           rmd160  6294317aebb0fb7e5a5f76448172a2cc3ad97ac6 \
                    sha256  61112d9f3be933a827c8365f20551563953af6718057928f51f487bfe88419e1

depends_build       port:pkgconfig

depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:gstreamer1-gst-plugins-base \
                    port:gupnp-igd

gobject_introspection yes

configure.args      --enable-gupnp \
                    --with-gstreamer=yes \
                    --with-gstreamer-0.10=no \
                    --enable-compile-warnings=minimum

variant gst010 description {Enable support for deprecated gstreamer-0.10} {
    depends_lib-append      port:gstreamer010-gst-plugins-base
    configure.args-replace  --with-gstreamer-0.10=no --with-gstreamer-0.10=yes
}

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