# -*- 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 119878 2014-05-08 21:54:46Z devans@macports.org $

PortSystem 1.0

name            libnice
version         0.1.7
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        http://nice.freedesktop.org/wiki/
master_sites    http://nice.freedesktop.org/releases/

checksums       rmd160  a925423f373182e328c9c765c65451897f4f4ac4 \
                sha256  4ed165aa2203136dce548c7cef735d8becf5d9869793f96b99dcbbaa9acf78d8

depends_build   port:pkgconfig

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

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   ${master_sites}
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
