Skip to content

Commit

Permalink
Revert gstreamer1 to version 1.16.2 which builds in aqua ocnfig.
Browse files Browse the repository at this point in the history
This makes webkit build so gnucash will build.  I don't think
gnucash actually needs gstreamer1.
  • Loading branch information
mtalexander committed Aug 19, 2024
1 parent aa3fd22 commit 48d55f0
Show file tree
Hide file tree
Showing 22 changed files with 1,377 additions and 468 deletions.
75 changes: 49 additions & 26 deletions gnome/gstreamer1-gst-libav/Portfile
Original file line number Diff line number Diff line change
@@ -1,57 +1,80 @@
# -*- 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
PortGroup compiler_blacklist_versions 1.0
PortGroup meson 1.0

# https://bugzilla.gnome.org/show_bug.cgi?id=636134
PortGroup muniversal 1.0

PortGroup compiler_blacklist_versions 1.0

name gstreamer1-gst-libav
set my_name gst-libav
# please only commit stable updates (even numbered releases)
version 1.24.5
revision 0
version 1.16.2
description This is gst-libav, a set of plug-ins for GStreamer.
long_description ${description}
maintainers nomaintainer
categories gnome
license GPL-2+
platforms darwin
homepage https://gstreamer.freedesktop.org/
master_sites https://gstreamer.freedesktop.org/src/${my_name}/
distname ${my_name}-${version}
use_xz yes

checksums rmd160 92ee589facd0f997ac853f1957e1c56f609aec48 \
sha256 7fd16bdfa56ed51c40b474648fc35c4edde3e8ac934b12b82b49727b5d703521 \
size 208704
checksums rmd160 fb8bdd29adba833ea8f2c9e618828ffdf19b82c8 \
sha256 c724f612700c15a933c7356fbeabb0bb9571fb5538f8b1b54d4d2d94188deef2 \
size 9466288

set py_ver 3.12
set py_ver_nodot [string map {. {}} ${py_ver}]
set python.bin ${prefix}/bin/python${py_ver}
depends_build port:gtk-doc \
port:nasm \
port:pkgconfig

set ffmpeg_ver 6
depends_lib port:gstreamer1-gst-plugins-base

depends_build-append \
port:gtk-doc \
path:bin/pkg-config:pkgconfig \
port:python${py_ver_nodot}
# 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}

depends_lib-append port:ffmpeg${ffmpeg_ver} \
port:gstreamer1-gst-plugins-base
# 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
}

configure.pkg_config_path ${prefix}/libexec/ffmpeg${ffmpeg_ver}/lib/pkgconfig
configure.args-append \
--disable-fatal-warnings \
--disable-silent-rules

post-patch {
reinplace "s|/usr/bin/env python3|${python.bin}|" \
${worksrcpath}/scripts/extract-release-date-from-doap-file.py \
${worksrcpath}/scripts/gen-changelog.py
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_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"} {
configure.args-append \
--host=i686-apple-${os.platform}${os.major} \
--build=i686-apple-${os.platform}${os.major}
} else {
configure.args-append \
--host=${os.arch}-apple-${os.platform}${os.major} \
--build=${os.arch}-apple-${os.platform}${os.major}
}

if {[lsearch [get_canonical_archs] i386] != -1} {
# https://trac.macports.org/ticket/37802
# clang-139 hits https://trac.macports.org/ticket/38141
compiler.blacklist-append *gcc-4.2 {clang < 422.1.7}
use_autoreconf yes
autoreconf.args -fvi

#
# embedded ffmpeg code requires gmake 3.81 to build properly
#
platform darwin 8 {
depends_build-append port:gmake
build.cmd gmake
}

livecheck.type regex
Expand Down
168 changes: 101 additions & 67 deletions gnome/gstreamer1-gst-plugins-bad/Portfile
Original file line number Diff line number Diff line change
@@ -1,59 +1,49 @@
# -*- 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
PortGroup active_variants 1.1
PortGroup compiler_blacklist_versions 1.0
PortGroup meson 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.24.5
revision 0
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.
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 bd447ac7145ebd3e75f9e8a1c8e0ca5efd3d9a64 \
sha256 3029bfd7265314d609dc8eab503675a344ea46e8274fd73ab34566c8442dc847 \
size 7061664
checksums rmd160 e42b51eee105a2c6181725ca801887ea64f3f4ce \
sha256 f1cb7aa2389569a5343661aae473f0a940a90b872001824bc47fa8072a041e74 \
size 4887812

set py_ver 3.12
set py_ver_nodot [string map {. {}} ${py_ver}]
set python.bin ${prefix}/bin/python${py_ver}
depends_build port:gtk-doc \
port:pkgconfig

depends_build-append \
port:gtk-doc \
path:bin/pkg-config:pkgconfig \
port:python${py_ver_nodot}

depends_lib-append port:aom \
depends_lib port:gstreamer1-gst-plugins-base \
port:curl \
port:faad2 \
port:fluidsynth \
path:lib/pkgconfig/gobject-introspection-1.0.pc:gobject-introspection \
port:gstreamer1-gst-plugins-base \
port:json-glib \
port:lcms2 \
path:lib/pkgconfig/libass.pc:libass \
port:libass \
port:libdca \
port:libde265 \
port:libdvdnav \
port:libdvdread \
port:libdvdnav \
port:libexif \
port:libGLU \
port:libgsm \
port:libmms \
port:libmodplug \
Expand All @@ -62,7 +52,7 @@ depends_lib-append port:aom \
path:lib/pkgconfig/librsvg-2.0.pc:librsvg \
port:libssh2 \
port:mesa \
port:neon \
port:libGLU \
port:nettle \
port:openal-soft \
port:openexr \
Expand All @@ -72,89 +62,133 @@ depends_lib-append port:aom \
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

post-patch {
reinplace "s|/usr/bin/env python3|${python.bin}|" \
${worksrcpath}/scripts/extract-release-date-from-doap-file.py \
${worksrcpath}/scripts/dist-translations.py \
${worksrcpath}/scripts/update-orc-dist-files.py \
${worksrcpath}/tests/check/media/download-media \
${worksrcpath}/gst-libs/gst/vulkan/vulkan_mkenum.py \
${worksrcpath}/ext/vulkan/shaders/bin2array.py
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

# fatal error: 'stdatomic.h' file not found
compiler.blacklist-append {clang < 700}
# requires support for C11 (redefinition of typedef ‘GstTestHTTPSrc’ at elements/test_http_src.c:101)
compiler.c_standard 2011
# OpenExr requires C++11
compiler.cxx_standard 2011
compiler.c_standard 2011

configure.args-append \
-Dapplemedia=disabled \
-Dexamples=disabled \
-Dfaac=disabled \
-Dfdkaac=disabled \
-Dopencv=disabled \
-Dsctp=disabled \
-Dsrtp=disabled \
-Dvulkan=disabled

configure.cppflags-append -L${prefix}/lib
configure.cflags-append -std=c11 -funroll-loops -fstrict-aliasing
# 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-replace -Dfaac=disabled \
-Dfaac=enabled
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-replace -Dfdkaac=disabled \
-Dfdkaac=enabled
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."
}

variant gpl description {Enable glp-licenced plugins} {
configure.args-append -Dgpl=enabled
}

# Window system is provided by gstreamer1-gst-plugins-base, so sync up.
variant x11 {
require_active_variants port:gstreamer1-gst-plugins-base x11
configure.args-append -Dx11=enabled
}

default_variants +x11
default_variants +x11

# plugin applemedia (Apple video) now only builds on darwin 18 and later
platform macosx {
if {![variant_isset x11] && ${os.major} >= 18} {
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 -Dapplemedia=disabled \
-Dapplemedia=enabled
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}
}
}

Expand Down
Loading

0 comments on commit 48d55f0

Please sign in to comment.