# -*- 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 149596 2016-06-27 20:45:11Z devans@macports.org $ PortSystem 1.0 PortGroup conflicts_build 1.0 PortGroup gobject_introspection 1.0 # https://bugzilla.gnome.org/show_bug.cgi?id=636134 PortGroup muniversal 1.0 name gstreamer1 set my_name gstreamer version 1.8.2 description GStreamer is a library for constructing graphs of media-handling components. long_description The applications it supports range from simple Ogg/Vorbis playback, audio/video \ streaming to complex audio (mixing) and video (non-linear editing) processing. maintainers nomaintainer categories gnome platforms darwin license LGPL-2+ homepage http://${my_name}.freedesktop.org/ distname ${my_name}-${version} master_sites http://gstreamer.freedesktop.org/src/${my_name}/ use_xz yes checksums rmd160 97adab1618e15a81a4872d8d17e9c1659643997f \ sha256 9dbebe079c2ab2004ef7f2649fa317cabea1feb4fb5605c24d40744b90918341 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:libxml2 gobject_introspection yes conflicts_build check # global_symbol_pipe gets set to "" on Leopard use_autoreconf yes autoreconf.args -fvi configure.env-append PERL_PATH=${prefix}/bin/perl configure.cflags-append -funroll-loops -fstrict-aliasing -fno-common if {[string match "*gcc-4.2" ${configure.compiler}]} { configure.cflags-append -std=c99 } configure.args-append \ --disable-fatal-warnings \ --disable-silent-rules if {[variant_isset universal]} { set merger_host(x86_64) x86_64-apple-${os.platform}${os.major} set merger_host(i386) i686-apple-${os.platform}${os.major} set merger_configure_args(x86_64) --build=x86_64-apple-${os.platform}${os.major} set merger_configure_args(i386) --build=i686-apple-${os.platform}${os.major} } else { if {${build_arch} eq "i386"} { configure.args-append \ --host=i686-apple-${os.platform}${os.major} \ --build=i686-apple-${os.platform}${os.major} } elseif {${build_arch} eq "x86_64"} { configure.args-append \ --host=${build_arch}-apple-${os.platform}${os.major} \ --build=${build_arch}-apple-${os.platform}${os.major} } } livecheck.type regex livecheck.url ${master_sites} livecheck.regex "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"