# -*- 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$ PortSystem 1.0 # https://bugzilla.gnome.org/show_bug.cgi?id=636134 PortGroup muniversal 1.0 name gstreamer010 set my_name gstreamer version 0.10.36 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 rmstonecipher openmaintainer categories gnome platforms darwin license LGPL-2+ homepage http://${my_name}.freedesktop.org/ distname ${my_name}-${version} master_sites \ gnome:sources/${my_name}/[join [lrange [split ${version} .] 0 1] .]/ \ http://${my_name}.freedesktop.org/src/${my_name}/ checksums rmd160 5dd01d8ea7afe98e96037bf73f995654f469096e \ sha256 e556a529e0a8cf1cd0afd0cab2af5488c9524e7c3f409de29b5d82bb41ae7a30 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 use_bzip2 yes build.env-append CC=${configure.cc} configure.env-append PERL_PATH=${prefix}/bin/perl configure.cflags-append -funroll-loops -fstrict-aliasing -fno-common 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} # g-ir-scanner does not honor CFLAGS configure.args-append --disable-introspection } elseif {${build_arch} == "i386"} { configure.args-append \ --host=i686-apple-${os.platform}${os.major} \ --build=i686-apple-${os.platform}${os.major} } elseif {${build_arch} == "x86_64"} { configure.args-append \ --host=${build_arch}-apple-${os.platform}${os.major} \ --build=${build_arch}-apple-${os.platform}${os.major} } pre-build { if {[file exists ${prefix}/lib/libcheck.dylib]} { ui_msg "Gstreamer will fail to build because the 'check' port is active. Deactivate" ui_msg "'check' by running 'port deactivate check' and try again. You may reactivate" ui_msg "'check' after installing gstreamer by running 'port activate check'." return -code error "check is installed" } } livecheck.type none