Skip to contentSkip to conversation

gstreamer1.0: upgrade to 1.2.0

PATCH New Carlos Rafael Giani 1 participant 1 message Nov 16, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 gstreamer1.0: upgrade to 1.2.0

starting with this version, the recipes enable Orc acceleration by default

---
 .../gstreamer/gstreamer1.0-libav.inc               |   2 +-
 .../gstreamer1.0-libav/libav_e500mc.patch          |  21 ----
 ...-libav_1.0.9.bb => gstreamer1.0-libav_1.2.0.bb} |  13 ++-
 .../gstreamer/gstreamer1.0-plugins-bad.inc         | 110 ++++++++++++---------
 ...uez-fix-compilation-on-big-endian-systems.patch |  35 +++++++
 ..._1.0.9.bb => gstreamer1.0-plugins-bad_1.2.0.bb} |   8 +-
 .../gstreamer/gstreamer1.0-plugins-base.inc        |   2 +-
 .../gstreamer/gstreamer1.0-plugins-base_1.0.9.bb   |  10 --
 .../gstreamer/gstreamer1.0-plugins-base_1.2.0.bb   |  10 ++
 .../gstreamer/gstreamer1.0-plugins-good.inc        |  13 ++-
 ...1.0.9.bb => gstreamer1.0-plugins-good_1.2.0.bb} |   6 +-
 .../gstreamer/gstreamer1.0-plugins-ugly.inc        |   2 +-
 ...1.0.9.bb => gstreamer1.0-plugins-ugly_1.2.0.bb} |   4 +-
 ...gstreamer1.0_1.0.9.bb => gstreamer1.0_1.2.0.bb} |   8 +-
 14 files changed, 141 insertions(+), 103 deletions(-)
 delete mode 100644 meta/recipes-multimedia/gstreamer/gstreamer1.0-libav/libav_e500mc.patch
 rename meta/recipes-multimedia/gstreamer/{gstreamer1.0-libav_1.0.9.bb => gstreamer1.0-libav_1.2.0.bb} (68%)
 create mode 100644 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/bluez-fix-compilation-on-big-endian-systems.patch
 rename meta/recipes-multimedia/gstreamer/{gstreamer1.0-plugins-bad_1.0.9.bb => gstreamer1.0-plugins-bad_1.2.0.bb} (61%)
 delete mode 100644 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.0.9.bb
 create mode 100644 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.2.0.bb
 rename meta/recipes-multimedia/gstreamer/{gstreamer1.0-plugins-good_1.0.9.bb => gstreamer1.0-plugins-good_1.2.0.bb} (62%)
 rename meta/recipes-multimedia/gstreamer/{gstreamer1.0-plugins-ugly_1.0.9.bb => gstreamer1.0-plugins-ugly_1.2.0.bb} (66%)
 rename meta/recipes-multimedia/gstreamer/{gstreamer1.0_1.0.9.bb => gstreamer1.0_1.2.0.bb} (52%)
meta/recipes-multimedia/gstreamer/gstreamer1.0-libav.inc +1 -1
index 3d996bc..ec5956a 100644
@@ -13,7 +13,7 @@ PR = "r1"
 # CAUTION: Using the system libav is not recommended. Since the libav API is changing all the time,
 # compilation errors (and other, more subtle bugs) can happen. It is usually better to rely on the
 # libav copy included in the gst-libav package.
-PACKAGECONFIG ??= " "
+PACKAGECONFIG ??= " orc "
 PACKAGECONFIG[libav] = "--with-system-libav,,libav"
 PACKAGECONFIG[lgpl]  = "--enable-lgpl,,"
 PACKAGECONFIG[yasm]  = "--enable-yasm,--disable-yasm,yasm-native"
meta/recipes-multimedia/gstreamer/gstreamer1.0-libav/libav_e500mc.patch deleted +0 -21
deleted file mode 100644
index eba4988..0000000
@@ -1,21 +0,0 @@
-diff --git a/gst-libs/ext/libav/configure b/gst-libs/ext/libav/configure
-index 8473069..4f74952 100755
---- a/gst-libs/ext/libav/configure
-+++ b/gst-libs/ext/libav/configure
-Fix gst-ffmpeg build issues for libav on e500mc (fsl-p4080)
-
-Upstream-Status: Backport
-
-Signed-off-by: Yao Zhao <[email protected]>
-
-@@ -2210,6 +2210,10 @@ elif enabled ppc; then
-             cpuflags="-mcpu=cell"
-             enable ldbrx
-         ;;
-+        e500mc)
-+            cpuflags="-mcpu=e500mc"
-+            disable altivec
-+        ;;
-         e500v2)
-             cpuflags="-mcpu=8548 -mhard-float -mfloat-gprs=double"
-             disable altivec
meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.2.0.bb renamed from meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.0.9.bb +6 -7
similarity index 68%
rename from meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.0.9.bb
rename to meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.2.0.bb
index 0b6bd50..66fe83b 100644
@@ -1,21 +1,20 @@
 include gstreamer1.0-libav.inc
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
-                    file://COPYING.LIB;md5=55ca817ccb7d5b5b66355690e9abc605 \
-                    file://ext/libav/gstav.h;beginline=1;endline=18;md5=ff65467b0c53cdfa98d0684c1bc240a9 \
-                    file://gst-libs/ext/libav/LICENSE;md5=abc3b8cb02856aa7823bbbd162d16232 \
+                    file://COPYING.LIB;md5=6762ed442b3822387a51c92d928ead0d \
+                    file://ext/libav/gstav.h;beginline=1;endline=18;md5=a752c35267d8276fd9ca3db6994fca9c \
+                    file://gst-libs/ext/libav/LICENSE;md5=23a54f59b82572c203a559346e89ed57 \
                     file://gst-libs/ext/libav/COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
                     file://gst-libs/ext/libav/COPYING.GPLv3;md5=d32239bcb673463ab874e80d47fae504 \
-                    file://gst-libs/ext/libav/COPYING.LGPLv2.1;md5=e344c8fa836c3a41c4cbd79d7bd3a379 \
+                    file://gst-libs/ext/libav/COPYING.LGPLv2.1;md5=bd7a443320af8c812e4c18d1b79df004 \
                     file://gst-libs/ext/libav/COPYING.LGPLv3;md5=e6a600fd5e1d9cbde2d983680233ad02"
 
 SRC_URI = " \
     http://gstreamer.freedesktop.org/src/gst-libav/gst-libav-${PV}.tar.xz \
     file://0001-Disable-yasm-for-libav-when-disable-yasm.patch \
-    file://libav_e500mc.patch \
     "
-SRC_URI[md5sum] = "8414f8d4c4a239a74a3d5eadf3d14875"
-SRC_URI[sha256sum] = "759641c0597c24191322f40945b363b75df299a539ff4086650be6193028189a"
+SRC_URI[md5sum] = "382bc5a99d22a4fbf8e971c42bb72c01"
+SRC_URI[sha256sum] = "48721eb318ffffdd134edea754d0b65d76b08c8209a8d2c8a42bca1f799f9099"
 
 LIBAV_EXTRA_CONFIGURE_COMMON_ARG = "--target-os=linux \
   --cc='${CC}' --as='${CC}' --ld='${CC}' --nm='${NM}' --ar='${AR}' \
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad.inc +64 -46

160 lines not on this page · raw message

meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/bluez-fix-compilation-on-big-endian-systems.patch new file +35 -0
new file mode 100644
index 0000000..6299a47
@@ -0,0 +1,35 @@
+commit 1ab90f259fee4fa9a7c10dac0a1e85799a15881b
+Author: Sebastian Dröge <[email protected]>
+Date:   Wed Sep 25 20:25:03 2013 +0200
+
+    bluez: Fix compilation on big endian systems
+
+Upstream-Status: Backport
+
+diff --git a/sys/bluez/gstavdtputil.c b/sys/bluez/gstavdtputil.c
+index dea803a..ed5c276 100644
+--- a/sys/bluez/gstavdtputil.c
++++ b/sys/bluez/gstavdtputil.c
+@@ -611,11 +611,11 @@ gst_avdtp_util_parse_aac_raw (void *config)
+   GValue value = G_VALUE_INIT;
+   GValue value_str = G_VALUE_INIT;
+   GValue list = G_VALUE_INIT;
++  a2dp_aac_t aac_local = { 0 };
++  a2dp_aac_t *aac = &aac_local;
+ 
+ #if G_BYTE_ORDER == G_LITTLE_ENDIAN
+   uint8_t *raw = (uint8_t *) config;
+-  a2dp_aac_t aac_local = { 0 };
+-  a2dp_aac_t *aac = &aac_local;
+   aac->object_type = raw[0];
+   aac->frequency = (raw[1] << 4) | ((raw[2] & 0xFF) >> 4);
+   aac->channels = (raw[2] >> 2) & 0x3;
+@@ -624,7 +624,7 @@ gst_avdtp_util_parse_aac_raw (void *config)
+   aac->bitrate = (raw[4] << 16) | (raw[3] << 8) | raw[4];
+   aac->bitrate &= ~0x800000;
+ #elif G_BYTE_ORDER == G_BIG_ENDIAN
+-  *aac = (a2dp_aac_t *) config;
++  *aac = *((a2dp_aac_t *) config);
+ #else
+ #error "Unknown byte order"
+ #endif
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.2.0.bb renamed from meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.0.9.bb +5 -3
similarity index 61%
rename from meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.0.9.bb
rename to meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.2.0.bb
index 9ce7991..d9e3b48 100644
@@ -3,10 +3,12 @@ include gstreamer1.0-plugins-bad.inc
 LIC_FILES_CHKSUM = "file://COPYING;md5=73a5855a8119deb017f5f13cf327095d \
                     file://gst/tta/filters.h;beginline=12;endline=29;md5=8a08270656f2f8ad7bb3655b83138e5a \
                     file://COPYING.LIB;md5=21682e4e8fea52413fd26c60acb907e5 \
-                    file://gst/tta/crc32.h;beginline=12;endline=29;md5=71a904d99ce7ae0c1cf129891b98145c"
+                    file://gst/tta/crc32.h;beginline=12;endline=29;md5=27db269c575d1e5317fffca2d33b3b50"
 
-SRC_URI[md5sum] = "569e5122fd7bfd7bd861a537f0a28c60"
-SRC_URI[sha256sum] = "69d236b1d8188270a3f51f6710146d0ca63c2f1a9f6cfbab3399ef01b9498f75"
+SRC_URI[md5sum] = "4fd078e1b9d903d22b67872b616f1715"
+SRC_URI[sha256sum] = "a12fac6c106a7e4ae8bb2c7da508688d7db532b818319df2202f497cbd930afa"
+
+SRC_URI += "file://bluez-fix-compilation-on-big-endian-systems.patch"
 
 S = "${WORKDIR}/gst-plugins-bad-${PV}"
 
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base.inc +1 -1
index 5002399..ebfa7cd 100644
@@ -11,7 +11,7 @@ inherit gettext
 PACKAGECONFIG ??= " \
     ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
     ${@base_contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \
-    ivorbis ogg theora vorbis \
+    orc ivorbis ogg theora vorbis \
     "
 
 X11DEPENDS = "virtual/libx11 libsm libxrender"
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.0.9.bb deleted +0 -10
deleted file mode 100644
index 7b1e990..0000000
@@ -1,10 +0,0 @@
-include gstreamer1.0-plugins-base.inc
-
-LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \
-                    file://common/coverage/coverage-report.pl;beginline=2;endline=17;md5=622921ffad8cb18ab906c56052788a3f \
-                    file://COPYING.LIB;md5=55ca817ccb7d5b5b66355690e9abc605 \
-                   "
-SRC_URI[md5sum] = "24af1986581d9c2cd3dc834ab64d133d"
-SRC_URI[sha256sum] = "963e3b83d651661f495ca2e44ccd2d5c61e986e9d7706246e568276689a372ea"
-
-S = "${WORKDIR}/gst-plugins-base-${PV}"
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.2.0.bb new file +10 -0
new file mode 100644
index 0000000..cc4d11b
@@ -0,0 +1,10 @@
+include gstreamer1.0-plugins-base.inc
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=c54ce9345727175ff66d17b67ff51f58 \
+                    file://common/coverage/coverage-report.pl;beginline=2;endline=17;md5=a4e1830fce078028c8f0974161272607 \
+                    file://COPYING.LIB;md5=6762ed442b3822387a51c92d928ead0d \
+                   "
+SRC_URI[md5sum] = "d0f7bb7f6c781be127902bff89b87c5c"
+SRC_URI[sha256sum] = "8656e20bf4b675e5696fb4af193793351926d428ca02826c5667a6384729a45d"
+
+S = "${WORKDIR}/gst-plugins-base-${PV}"
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good.inc +9 -4
index 19b16ca..b694988 100644
@@ -11,7 +11,7 @@ inherit gettext gconf
 PACKAGECONFIG ??= " \
     ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
     ${@base_contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)} \
-    cairo flac gdk-pixbuf jpeg libpng soup speex taglib \
+    orc cairo flac gdk-pixbuf jpeg libpng soup speex taglib \
     "
 
 X11DEPENDS = "virtual/libx11 libsm libxrender"
@@ -30,12 +30,17 @@ PACKAGECONFIG[speex]      = "--enable-speex,--disable-speex,speex"
 PACKAGECONFIG[taglib]     = "--enable-taglib,--disable-taglib,taglib"
 PACKAGECONFIG[vpx]        = "--enable-vpx,--disable-vpx,libvpx"
 PACKAGECONFIG[wavpack]    = "--enable-wavpack,--disable-wavpack,wavpack"
-PACKAGECONFIG[v4l]        = "--with-libv4l2,--without-libv4l2,libv4l"
+
+# the 1394 plugins require both libraw1394 and libiec61883
+# the former is included in meta-oe, the latter isn't
+# -> disabled
 
 EXTRA_OECONF += " \
+    --enable-oss \
+    --enable-gst_v4l2 \
+    --without-libv4l2 \
     --disable-directsound \
     --disable-waveform \
-    --disable-oss \
     --disable-oss4 \
     --disable-sunaudio \
     --disable-osx_audio \
@@ -43,9 +48,9 @@ EXTRA_OECONF += " \
     --disable-aalib \
     --disable-libcaca \
     --disable-libdv \
-    --disable-dv1394 \
     --disable-shout2 \
     --disable-examples \
+    --disable-dv1394 \
     ${GSTREAMER_1_0_ORC} \
 "
 
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.2.0.bb renamed from meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.0.9.bb +3 -3
similarity index 62%
rename from meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.0.9.bb
rename to meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.2.0.bb
index 1b65b7d..5d54f27 100644
@@ -1,11 +1,11 @@
 include gstreamer1.0-plugins-good.inc
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
-                    file://common/coverage/coverage-report.pl;beginline=2;endline=17;md5=622921ffad8cb18ab906c56052788a3f \
+                    file://common/coverage/coverage-report.pl;beginline=2;endline=17;md5=a4e1830fce078028c8f0974161272607 \
                     file://gst/replaygain/rganalysis.c;beginline=1;endline=23;md5=b60ebefd5b2f5a8e0cab6bfee391a5fe"
 
-SRC_URI[md5sum] = "20bb77f201b044f4ba61de167c4466d7"
-SRC_URI[sha256sum] = "cfa2e617a76f93e9ddd4ae1109297e93fb4a06b152042b996231234a72c5a5ff"
+SRC_URI[md5sum] = "df96825d4154940fd934aa0a95b40836"
+SRC_URI[sha256sum] = "2256a6b2744ea18d8810642cf9061a2f12f4b7eba87d3fbc98004262b4f0fdfa"
 
 S = "${WORKDIR}/gst-plugins-good-${PV}"
 
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly.inc +1 -1
index 3f47949..0dd011b 100644
@@ -9,7 +9,7 @@ inherit gettext
 
 
 PACKAGECONFIG ??= " \
-    a52dec lame mad mpeg2dec \
+    orc a52dec lame mad mpeg2dec \
     "
 
 PACKAGECONFIG[a52dec]   = "--enable-a52dec,--disable-a52dec,liba52"
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.2.0.bb renamed from meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.0.9.bb +2 -2
similarity index 66%
rename from meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.0.9.bb
rename to meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.2.0.bb
index 30fa3a3..a772877 100644
@@ -3,8 +3,8 @@ include gstreamer1.0-plugins-ugly.inc
 LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
                     file://tests/check/elements/xingmux.c;beginline=1;endline=21;md5=4c771b8af188724855cb99cadd390068 "
 
-SRC_URI[md5sum] = "ea8b4e05ed5beb982762b45aba266720"
-SRC_URI[sha256sum] = "11250fe9e44b0169c3a289e981b31874b483643ed78f619682ae1644d7088379"
+SRC_URI[md5sum] = "81c97981ed373bd77bb10f2ae555c166"
+SRC_URI[sha256sum] = "e4760af4b12bf97ba0a8001cfe733d9d52160a0ad81f6c6f0d0d3a9e798626de"
 
 S = "${WORKDIR}/gst-plugins-ugly-${PV}"
 
meta/recipes-multimedia/gstreamer/gstreamer1.0_1.2.0.bb renamed from meta/recipes-multimedia/gstreamer/gstreamer1.0_1.0.9.bb +4 -4
similarity index 52%
rename from meta/recipes-multimedia/gstreamer/gstreamer1.0_1.0.9.bb
rename to meta/recipes-multimedia/gstreamer/gstreamer1.0_1.2.0.bb
index e4b2f1e..98d5412 100644
@@ -1,13 +1,13 @@
 include gstreamer1.0.inc
 
-LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605 \
-                    file://gst/gst.h;beginline=1;endline=21;md5=8e5fe5e87d33a04479fde862e238eaa4"
+LIC_FILES_CHKSUM = "file://COPYING;md5=6762ed442b3822387a51c92d928ead0d \
+                    file://gst/gst.h;beginline=1;endline=21;md5=e059138481205ee2c6fc1c079c016d0d"
 
 SRC_URI = " \
     http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${PV}.tar.xz \
     file://0001-Fix-crash-with-gst-inspect.patch \
     "
-SRC_URI[md5sum] = "cbbad73d703b811bc8bd18e47b36e534"
-SRC_URI[sha256sum] = "17a2c60a82baa461ef685ad3de187edb9c03a2c7e07513daba58a5a32efacaa3"
+SRC_URI[md5sum] = "250b4bec48b0986103f5aab75e43cef9"
+SRC_URI[sha256sum] = "94af5274299f845adf41cc504e0209b269acab7721293f49850fea27b4099463"
 S = "${WORKDIR}/gstreamer-${PV}"
 
Signature · 1 line
1.8.4.1