# -*- 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 PortSystem 1.0 # https://bugzilla.gnome.org/show_bug.cgi?id=636134 PortGroup muniversal 1.0 PortGroup gobject_introspection 1.0 PortGroup active_variants 1.1 name gstreamer1-gst-plugins-bad set my_name gst-plugins-bad # please only commit stable updates (even numbered releases) version 1.16.2 revision 11 description A set of plug-ins for GStreamer that need more quality. long_description GStreamer Bad Plug-ins is a set of plug-ins that aren't up to par compared \ to the rest. They might be close to being good quality, but they're missing \ something - be it a good code review, some documentation, a set of tests, a \ real live maintainer, or some actual wide use. license GPL LGPL maintainers nomaintainer categories gnome platforms darwin homepage https://gstreamer.freedesktop.org/modules/${my_name}.html master_sites https://gstreamer.freedesktop.org/src/${my_name}/ distname ${my_name}-${version} use_xz yes checksums rmd160 e42b51eee105a2c6181725ca801887ea64f3f4ce \ sha256 f1cb7aa2389569a5343661aae473f0a940a90b872001824bc47fa8072a041e74 \ size 4887812 depends_build port:gtk-doc \ port:pkgconfig depends_lib port:gstreamer1-gst-plugins-base \ port:curl \ port:faad2 \ port:fluidsynth \ port:lcms2 \ port:libass \ port:libdca \ port:libde265 \ port:libdvdread \ port:libdvdnav \ port:libexif \ port:libgsm \ port:libmms \ port:libmodplug \ port:libmpcdec \ port:libnice \ path:lib/pkgconfig/librsvg-2.0.pc:librsvg \ port:libssh2 \ port:mesa \ port:libGLU \ port:nettle \ port:openal-soft \ port:openexr \ port:openjpeg \ port:orc \ port:rtmpdump \ port:soundtouch \ port:spandsp-devel \ port:tiff \ port:neon \ port:webp \ port:x265 gobject_introspection yes # Teach glibtool about -stdlib=libc++ use_autoreconf yes autoreconf.args -fvi patchfiles modplug.patch \ libressl.patch \ no_pqueue_size.patch \ patch-openexr3.diff platform darwin 8 { # Tiger uses a newer gmake. gmake >= 4.3 causes errors in this build #60721 # this patch can probably be used always, but is presently needed on Tiger only patchfiles-append patch-gstreamer1-gst-plugins-bad-newer-gmake.diff } # # could depend on tons for multimedia stuff +variants # the following ports are available but don't configure # and/or build correctly # # port:mjpegtools (mpeg2enc mplex build fails) need to disable mpeg2enc mplex explicitly in case mjpegtools is installed # port:faac has a restrictive license, disable faac plugin by default # port:libfdk-aac has a restrictive license, disable fdkaac plugin by default # plugin frei0r (no dependency, seqfaults on load) # path:lib/opencv3/libopencv_core.dylib:opencv3 (opencv plugin fails to configure with opencv 3.0.0+, can't find opencv2/bgsegm.hpp, now opencv2/video/background_segm.hpp) # plugin opus is now contained in gstreamer1-gst-plugins-base, disable this version # plugin ipcpipeline fails to build # requires support for C11 (redefinition of typedef ‘GstTestHTTPSrc’ at elements/test_http_src.c:101) compiler.c_standard 2011 # OpenExr required C++11 compiler.cxx_standard 2011 configure.cxxflags-append -std=gnu++11 configure.args --disable-silent-rules \ --disable-fatal-warnings \ --disable-dc1394 \ --disable-examples \ --disable-faac \ --disable-fdk_aac \ --disable-frei0r \ --disable-ipcpipeline \ --disable-lv2 \ --disable-mpeg2enc \ --disable-mplex \ --disable-opencv \ --disable-opus \ --disable-srtp \ --enable-static \ --with-hls-crypto=nettle \ --disable-apple_media # port:soundtouch (fails on autoreconf on darwin 8 & 9, see #27533) disable soundtouch on these platforms # plugin applemedia (Apple video) now only builds on darwin 14 and later due to use of # constant AVQueuedSampleBufferRenderingStatusFailed introduced in OSX 10.10 # chromaprint 1.4+ requires libc++ (see #53072) # port:openal-soft build fails on 10.6 and presumably earlier platform darwin { if {${os.major} < 11} { depends_lib-delete port:openal-soft configure.args-append --disable-openal } if {${os.major} < 10} { depends_lib-delete port:soundtouch port:x265 configure.args-append --disable-soundtouch --disable-x265 } if {${configure.cxx_stdlib} eq "libstdc++"} { configure.args-append --disable-chromaprint } else { depends_lib-append port:chromaprint } } configure.cppflags-append "-L${prefix}/lib" configure.cflags-append -std=c99 -funroll-loops -fstrict-aliasing configure.env-append "HAVE_CXX=yes" variant faac description {Enable faac AAC plugin} { depends_lib-append port:faac configure.args-delete --disable-faac notes-append "Use of the +faac variant may affect licensing due to the restrictive license of port faac itself." } variant fdkaac description {Enable fdkaac AAC plugin} { depends_lib-append port:libfdk-aac configure.args-delete --disable-fdkaac notes-append "Use of the +fdkaac variant may affect licensing due to the restrictive license of port libfdk-aac itself." } # Window system is provided by gstreamer1-gst-plugins-base, so sync up. variant x11 { require_active_variants port:gstreamer1-gst-plugins-base x11 } default_variants +x11 platform macosx { if {![variant_isset x11] && (!${universal_possible} || ![variant_isset universal]) && ${os.major} >= 13} { # Apple_Media requires CGL, which can only be provided on newer platforms and without X11 enabled. require_active_variants port:gstreamer1-gst-plugins-base {} x11 configure.args-replace --disable-apple_media \ --enable-apple_media } } if {${universal_possible} && [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*\[02468\](?:\\.\\d+)*)${extract.suffix}"