Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/gstreamer
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gstreamer')
-rw-r--r--extra/gstreamer/PKGBUILD65
1 files changed, 65 insertions, 0 deletions
diff --git a/extra/gstreamer/PKGBUILD b/extra/gstreamer/PKGBUILD
index 5cc84344..7442af2c 100644
--- a/extra/gstreamer/PKGBUILD
+++ b/extra/gstreamer/PKGBUILD
@@ -66,3 +66,68 @@ eval "$(
s/\(meson test.*\)/\1 || true/
'
)"
+
+# FS32#245: cannot rebuild opencv on i486 currently due to python issues
+if [ "$CARCH" == 'i486' ]; then
+ makedepends=(${makedepends[@]//opencv/})
+
+ eval "$(
+ declare -f build | \
+ sed '
+ /local meson_options.*/ a \
+ meson_options+=(-D gst-plugins-bad:opencv=disabled)
+ '
+ declare -f package_gst-plugin-opencv | \
+ sed '
+ /local files/ a \
+ files=()
+ /depends/ a \
+ depends=(${depends[@]//opencv/})
+ '
+ )"
+fi
+
+# break dependency cycle with wpewebkit
+if [ "$CARCH" == 'i486' ]; then
+ makedepends=(${makedepends[@]//wpewebkit/})
+ eval "$(
+ declare -f build | \
+ sed '
+ /local meson_options.*/ a \
+ meson_options+=(-D gst-plugins-bad:wpe=disabled)
+ '
+ declare -f package_gst-plugin-wpe | \
+ sed '
+ /local files/ a \
+ files=()
+ /depends/ a \
+ depends=(${depends[@]//wpewebkit/})
+ '
+ )"
+fi
+
+# we have libdc1394, but it's not recognized on i486, it's not installed
+# (maybe it's only a transitive dependency and we removed something..)
+# gst-plugins-bad| Run-time dependency libdc1394-2 found: NO (tried pkgconfig)
+if [ "$CARCH" == 'i486' ]; then
+ makedepends+=(libdc1394)
+ eval "$(
+ declare -f package_gst-plugins-bad | \
+ sed '
+ /depends/ a \
+ depends=(${depends[@]//libdc1394/})
+ '
+ )"
+fi
+
+# gstreamer/subprojects/gst-plugins-bad/ext/openexr/meson.build:1:0: ERROR: Dependency "OpenEXR" not found, tried pkgconfig
+if [ "$CARCH" == 'i486' ]; then
+ makedepends+=(openexr)
+ eval "$(
+ declare -f package_gst-plugins-bad | \
+ sed '
+ /depends/ a \
+ depends=(${depends[@]//openexr/})
+ '
+ )"
+fi