# -*- 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
# https://bugzilla.gnome.org/show_bug.cgi?id=636134
PortGroup compiler_blacklist_versions 1.0
name gstreamer1-gst-libav
# please only commit stable updates (even numbered releases)
description This is gst-libav, a set of plug-ins for GStreamer.
long_description ${description}
homepage https://gstreamer.freedesktop.org/
master_sites https://gstreamer.freedesktop.org/src/${my_name}/
distname ${my_name}-${version}
checksums rmd160 f75dd6d412d746feff85b6b6f469cc783f5694e9 \
sha256 eff80a02d2f2fb9f34b67e9a26e9954d3218c7aa18e863f2a47805fa7066029d \
depends_build port:pkgconfig \
depends_lib port:gstreamer1-gst-plugins-base
# This will cause the installed ffmpeg headers to be used, remove it.
configure.cppflags-delete -I${prefix}/include
if {[lsearch [get_canonical_archs] i386] != -1} {
# clang-139 hits https://trac.macports.org/ticket/38141
compiler.blacklist-append {clang < 422.1.7}
# https://trac.macports.org/ticket/37802
compiler.blacklist-append gcc-4.2 apple-gcc-4.2 llvm-gcc-4.2 macports-llvm-gcc-4.2
--disable-fatal-warnings \
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_host(ppc64) powerpc64-apple-${os.platform}${os.major}
set merger_host(ppc) powerpc-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}"
set merger_configure_args(ppc) "--build=powerpc-apple-${os.platform}${os.major}"
set merger_configure_args(ppc64) "--build=powerpc64-apple-${os.platform}${os.major}"
} elseif {${build_arch} eq "i386"} {
--host=i686-apple-${os.platform}${os.major} \
--build=i686-apple-${os.platform}${os.major}