aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2021-03-30 14:48:43 +0200
committerRobby Workman <rworkman@slackbuilds.org>2021-04-17 23:27:29 -0500
commit159dd2507ba56c7080463957ae0b105b93829423 (patch)
tree8316d5b0b41eb9826afadb77f275fc918b646b7a
parent6c0db6127edef25007050502482231672d46dbe8 (diff)
multimedia/gst0-ffmpeg: Patch for orc >= 0.4.30.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--multimedia/gst0-ffmpeg/gst0-ffmpeg.SlackBuild2
-rw-r--r--multimedia/gst0-ffmpeg/gst0-ffmpeg.info2
-rw-r--r--multimedia/gst0-ffmpeg/orc-0.4.30.patch26
3 files changed, 29 insertions, 1 deletions
diff --git a/multimedia/gst0-ffmpeg/gst0-ffmpeg.SlackBuild b/multimedia/gst0-ffmpeg/gst0-ffmpeg.SlackBuild
index bf58d16c6d4c0..eb150777245f8 100644
--- a/multimedia/gst0-ffmpeg/gst0-ffmpeg.SlackBuild
+++ b/multimedia/gst0-ffmpeg/gst0-ffmpeg.SlackBuild
@@ -71,6 +71,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+patch -p1 < $CWD/orc-0.4.30.patch
+
# Fix for gcc-4.7.x
sed -i -e 's/"g"/"rm"/' gst-libs/ext/libav/libavcodec/x86/h264_qpel_mmx.c
diff --git a/multimedia/gst0-ffmpeg/gst0-ffmpeg.info b/multimedia/gst0-ffmpeg/gst0-ffmpeg.info
index fd7d309624115..117e2baae0d5a 100644
--- a/multimedia/gst0-ffmpeg/gst0-ffmpeg.info
+++ b/multimedia/gst0-ffmpeg/gst0-ffmpeg.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://gstreamer.freedesktop.org/src/gst-ffmpeg/gst-ffmpeg-0.10.13.ta
MD5SUM="3e52d69a15d42f0a11abfc02f80effa1"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="gst0-plugins-base"
MAINTAINER="Juan Valencia Escalante"
EMAIL="jvalenciae@gmail.com"
diff --git a/multimedia/gst0-ffmpeg/orc-0.4.30.patch b/multimedia/gst0-ffmpeg/orc-0.4.30.patch
new file mode 100644
index 0000000000000..8ad9796c07ece
--- /dev/null
+++ b/multimedia/gst0-ffmpeg/orc-0.4.30.patch
@@ -0,0 +1,26 @@
+https://anonhg.netbsd.org/pkgsrc/rev/b7ba46cae228
+
+diff -Naur gst-ffmpeg-0.10.13.orig/ext/libpostproc/gstpostproc.c gst-ffmpeg-0.10.13/ext/libpostproc/gstpostproc.c
+--- gst-ffmpeg-0.10.13.orig/ext/libpostproc/gstpostproc.c 2011-07-12 16:35:27.000000000 +0200
++++ gst-ffmpeg-0.10.13/ext/libpostproc/gstpostproc.c 2019-11-17 20:04:03.283000000 +0100
+@@ -299,7 +299,7 @@
+ ppflags = (mmx_flags & ORC_TARGET_MMX_MMX ? PP_CPU_CAPS_MMX : 0)
+ | (mmx_flags & ORC_TARGET_MMX_MMXEXT ? PP_CPU_CAPS_MMX2 : 0)
+ | (mmx_flags & ORC_TARGET_MMX_3DNOW ? PP_CPU_CAPS_3DNOW : 0)
+- | (altivec_flags & ORC_TARGET_ALTIVEC_ALTIVEC ? PP_CPU_CAPS_ALTIVEC :
++ | (altivec_flags & ORC_TARGET_POWERPC_ALTIVEC ? PP_CPU_CAPS_ALTIVEC :
+ 0);
+ #else
+ mmx_flags = 0;
+diff -Naur gst-ffmpeg-0.10.13.orig/ext/libswscale/gstffmpegscale.c gst-ffmpeg-0.10.13/ext/libswscale/gstffmpegscale.c
+--- gst-ffmpeg-0.10.13.orig/ext/libswscale/gstffmpegscale.c 2011-11-02 14:04:05.000000000 +0100
++++ gst-ffmpeg-0.10.13/ext/libswscale/gstffmpegscale.c 2019-11-17 20:05:18.947000000 +0100
+@@ -638,7 +638,7 @@
+ swsflags = (mmx_flags & ORC_TARGET_MMX_MMX ? SWS_CPU_CAPS_MMX : 0)
+ | (mmx_flags & ORC_TARGET_MMX_MMXEXT ? SWS_CPU_CAPS_MMX2 : 0)
+ | (mmx_flags & ORC_TARGET_MMX_3DNOW ? SWS_CPU_CAPS_3DNOW : 0)
+- | (altivec_flags & ORC_TARGET_ALTIVEC_ALTIVEC ? SWS_CPU_CAPS_ALTIVEC : 0);
++ | (altivec_flags & ORC_TARGET_POWERPC_ALTIVEC ? SWS_CPU_CAPS_ALTIVEC : 0);
+ #else
+ mmx_flags = 0;
+ altivec_flags = 0;