# -*- 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
# $Id: Portfile 55198 2009-08-07 12:40:51Z rmsfisher@macports.org $

PortSystem 1.0

name		gstreamer
version		0.10.24
description	A framework for streaming media.
long_description	This is GStreamer, a framework for streaming media. \
			The fundamental design comes from the video pipeline at \
			Oregon Graduate Institute, as well as some ideas from \
			DirectMedia.  It's based on plug-ins that will provide \
			the various codec and other functionality. The \
			interface hopefully is generic enough for various \
			companies (ahem, Apple) to release binary codecs for \
			Linux, until such time as they get a clue and \
			release the source.
maintainers	rmsfisher openmaintainer
categories	gnome
platforms	darwin
homepage	http://www.gnome.org/

master_sites	gnome:sources/gstreamer/[join [lrange [split ${version} .] 0 1] .]/ \
	http://gstreamer.freedesktop.org/src/${name}/

checksums           md5     178d3326c96c360c9a15751bd5d73a6c \
                    sha1    bb93174f1c19560e119092a16e8acc3a905b6bb4 \
                    rmd160  f77e4d1585567c0e4dd61c1301ba2032b2a04177

depends_build   \
    port:gzip \
    port:m4 \
    path:bin/perl:perl5 \
    port:pkgconfig
depends_lib \
    port:bison \
    port:flex \
    port:gettext \
    path:lib/pkgconfig/glib-2.0.pc:glib2 \
    port:libiconv \
    port:libxml2 \
    port:zlib

use_bzip2 	yes

configure.env-append  PERL_PATH=${prefix}/bin/perl

configure.cflags-append -funroll-loops -fstrict-aliasing -fno-common

pre-build	{
	ui_msg "It is likely that this port will fail to build if the 'check'"
	ui_msg "port is active. If this port fails to build, deactive 'check'"
	ui_msg "by running:"
	ui_msg "port deactivate check"
	ui_msg "Reactivate 'check' after successfully installing gstreamer"
	ui_msg "by running:"
	ui_msg "port activate check"
	ui_msg "If you do not have 'check' installed, ignore this message."
}

livecheck.check regex
livecheck.url   http://gstreamer.freedesktop.org/src/${name}/
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
