From de97651afeaa1d4d4b28f085a1b8d863f4d4c8e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ertu=C4=9Frul=20Erata?= Date: Tue, 18 Aug 2015 09:23:14 +0300 Subject: [PATCH] gst-libav-next in main for playing video thanks @groni --- multimedia/misc/liboil/actions.py | 24 +++++ .../misc/liboil/files/02_amd64-cpuid.patch | 38 ++++++++ .../liboil/files/03_stride-segfaults.patch | 75 +++++++++++++++ multimedia/misc/liboil/pspec.xml | 66 +++++++++++++ multimedia/misc/liboil/translations.xml | 15 +++ multimedia/video/gst-libav-next/actions.py | 26 ++++++ multimedia/video/gst-libav-next/pspec.xml | 93 +++++++++++++++++++ .../video/gst-libav-next/translations.xml | 7 ++ 8 files changed, 344 insertions(+) create mode 100644 multimedia/misc/liboil/actions.py create mode 100644 multimedia/misc/liboil/files/02_amd64-cpuid.patch create mode 100644 multimedia/misc/liboil/files/03_stride-segfaults.patch create mode 100644 multimedia/misc/liboil/pspec.xml create mode 100644 multimedia/misc/liboil/translations.xml create mode 100644 multimedia/video/gst-libav-next/actions.py create mode 100644 multimedia/video/gst-libav-next/pspec.xml create mode 100644 multimedia/video/gst-libav-next/translations.xml diff --git a/multimedia/misc/liboil/actions.py b/multimedia/misc/liboil/actions.py new file mode 100644 index 0000000000..68563f8d4b --- /dev/null +++ b/multimedia/misc/liboil/actions.py @@ -0,0 +1,24 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import get + +def setup(): + shelltools.export("CFLAGS", "%s -O2" % get.CFLAGS()) + autotools.configure("--disable-static \ + --disable-gtk-doc") + +def build(): + autotools.make("-j1") + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + pisitools.dodoc("AUTHORS", "BUG-REPORTING", "HACKING", "NEWS", "README") + pisitools.removeDir("/usr/share/gtk-doc") diff --git a/multimedia/misc/liboil/files/02_amd64-cpuid.patch b/multimedia/misc/liboil/files/02_amd64-cpuid.patch new file mode 100644 index 0000000000..2d363353ab --- /dev/null +++ b/multimedia/misc/liboil/files/02_amd64-cpuid.patch @@ -0,0 +1,38 @@ +From 705916007fba0a845229a02dc6474cb523eff150 Mon Sep 17 00:00:00 2001 +From: David Schleef +Date: Tue, 20 Jul 2010 21:05:26 +0000 +Subject: x86: Fix cpuid function on x86-64 + +Fixes: #28956. +--- +diff --git a/liboil/liboilcpu-x86.c b/liboil/liboilcpu-x86.c +index e7a1978..ef4d3f2 100644 +--- a/liboil/liboilcpu-x86.c ++++ b/liboil/liboilcpu-x86.c +@@ -162,13 +162,10 @@ get_cpuid (uint32_t op, uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d) + static void + get_cpuid (uint32_t op, uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d) + { ++ *a = op; + __asm__ ( +- " pushq %%rbx\n" + " cpuid\n" +- " mov %%ebx, %%esi\n" +- " popq %%rbx\n" +- : "=a" (*a), "=S" (*b), "=c" (*c), "=d" (*d) +- : "0" (op)); ++ : "+a" (*a), "=b" (*b), "=c" (*c), "=d" (*d)); + } + #endif + +@@ -185,7 +182,7 @@ oil_cpu_detect_cpuid (void) + { + uint32_t eax, ebx, ecx, edx; + uint32_t level; +- char vendor[13] = { 0 }; ++ char vendor[13+4] = { 0 }; + int ret; + + oil_fault_check_enable (); +-- +cgit v0.8.3-6-g21f6 diff --git a/multimedia/misc/liboil/files/03_stride-segfaults.patch b/multimedia/misc/liboil/files/03_stride-segfaults.patch new file mode 100644 index 0000000000..239bebef15 --- /dev/null +++ b/multimedia/misc/liboil/files/03_stride-segfaults.patch @@ -0,0 +1,75 @@ +From 064d11051f477cd2c398e5d4e3cb1301daf683eb Mon Sep 17 00:00:00 2001 +From: Sebastian Andrzej Siewior +Date: Tue, 17 Aug 2010 22:30:49 +0200 +Subject: [PATCH] fix stride tc on amd64. i386 and powerpc + +the stride tc segfauls with + +|diff --git a/testsuite/stride.c b/testsuite/stride.c +|index abc521e..debc340 100644 +|--- a/testsuite/stride.c +|+++ b/testsuite/stride.c +|@@ -74,8 +74,8 @@ int main (int argc, char *argv[]) +| continue; +| } +| oil_test_set_iterations (test, 1); +|- test->n = 1 + oil_rand_u8(); +|- test->m = 1 + oil_rand_u8(); +|+ test->n = 1; +|+ test->m = 33; +| +| oil_test_check_impl (test, klass->reference_impl); +| for(j=0;j +--- + liboil/amd64/wavelet.c | 3 +++ + liboil/i386/wavelet.c | 2 ++ + liboil/powerpc/rgb2bgr.c | 2 ++ + 3 files changed, 7 insertions(+), 0 deletions(-) + +diff --git a/liboil/amd64/wavelet.c b/liboil/amd64/wavelet.c +index 6b1946a..353471f 100644 +--- a/liboil/amd64/wavelet.c ++++ b/liboil/amd64/wavelet.c +@@ -18,6 +18,9 @@ deinterleave2_asm (int16_t *d1, int16_t *d2, int16_t *s_2xn, int n) + n--; + } + ++ if (!n) ++ return; ++ + asm volatile ("\n" + " sub $2, %%rcx\n" + "1:\n" +diff --git a/liboil/i386/wavelet.c b/liboil/i386/wavelet.c +index a382a22..d8d61a6 100644 +--- a/liboil/i386/wavelet.c ++++ b/liboil/i386/wavelet.c +@@ -117,6 +117,8 @@ deinterleave2_asm (int16_t *d1, int16_t *d2, int16_t *s_2xn, int n) + s_2xn+=2; + n--; + } ++ if (!n) ++ return; + + asm volatile ("\n" + " mov %3, %%ecx\n" +diff --git a/liboil/powerpc/rgb2bgr.c b/liboil/powerpc/rgb2bgr.c +index 8787d66..419b8e1 100644 +--- a/liboil/powerpc/rgb2bgr.c ++++ b/liboil/powerpc/rgb2bgr.c +@@ -50,6 +50,8 @@ rgb2bgr_ppc (uint8_t *dest, uint8_t* src, int n) + n /= 4; + dest -= 4; + src -= 4; ++ if (!n) ++ return ; + asm volatile ( + " mtctr %2 \n" + "1: lwzu r10, 4(%1) \n" /* rgbr x */ +-- +1.5.6.5 + diff --git a/multimedia/misc/liboil/pspec.xml b/multimedia/misc/liboil/pspec.xml new file mode 100644 index 0000000000..8df96cdb6c --- /dev/null +++ b/multimedia/misc/liboil/pspec.xml @@ -0,0 +1,66 @@ + + + + + liboil + http://www.schleef.org/liboil/ + + PisiLinux Community + admins@pisilinux.org + + LGPLv2.1 + library + Liboil is a library of simple functions that are optimized for various CPUs + Liboil is a library of simple functions that are optimized for various CPUs. These functions are generally loops implementing simple algorithms, such as converting an array of N integers to floating-point numbers or multiplying and summing an array of N numbers. + http://liboil.freedesktop.org/download/liboil-0.3.17.tar.gz + + 02_amd64-cpuid.patch + 03_stride-segfaults.patch + + + + + liboil + + /usr/lib + /usr/share/doc + + + + + liboil-devel + Development files for liboil + + liboil + + + /usr/bin + /usr/include + /usr/lib/pkgconfig + + + + + + 2014-05-24 + 0.3.17 + Rebuild + Alihan Öztürk + alihan@pisilinux.org + + + 2014-02-01 + 0.3.17 + Rebuild + Stefan Gronewold(groni) + groni@pisilinux.org + + + 2011-01-05 + 0.3.17 + First release + Pisi Linux Admins + admins@pisilinux.org + + + diff --git a/multimedia/misc/liboil/translations.xml b/multimedia/misc/liboil/translations.xml new file mode 100644 index 0000000000..78eedec2c4 --- /dev/null +++ b/multimedia/misc/liboil/translations.xml @@ -0,0 +1,15 @@ + + + + liboil + Liboil, farklı işlemciler için optimize edilmiş temel fonksiyonlardan oluşan bir kütüphanedir + liboil çeşitli CPU 'lar için en iyilenmiş basit fonksiyon kütüphanesidir. Bu fonksiyonlar genellikle döngüler için gerçekleştirilen yalın algoritmalardır, örneğin ; N integer elemanı olan bir diziyi float elemanlı diziye dönüştürmek yada N elemanlı bir dizi ile toplama yada çarpma yapmak gibi. + Liboil est une librairie de fonctions simples optimisées pour différents processeurs. Ces fonction sont en général des boucles implémentant des algorithmes simples, tel que convertir un tableau de N entiers en nombres à virgule flottante ou multiplier et additionner un tableau de N nombres. + Liboil es una librería con funciones simples, optimizados para múltiples CPUs. Estas funciones son generalmente bucles realizando simples algoritmos, como conversión de arrays de N enteros a números de punto flotante o multiplicación y suma de un array de N números. + + + + liboil-devel + liboil için geliştirme dosyaları + + diff --git a/multimedia/video/gst-libav-next/actions.py b/multimedia/video/gst-libav-next/actions.py new file mode 100644 index 0000000000..5575f39968 --- /dev/null +++ b/multimedia/video/gst-libav-next/actions.py @@ -0,0 +1,26 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools + + +def setup(): + autotools.autoreconf("-vfi") + autotools.configure("--disable-static \ + --with-libav-extra-configure='--enable-runtime-cpudetect' \ + --with-package-name='PisiLinux gst-libav package' \ + --with-package-origin='http://www.pisilinux.org'") + + pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") + +def build(): + autotools.make() + +def install(): + autotools.install() + + pisitools.dodoc("README","NEWS","ChangeLog") diff --git a/multimedia/video/gst-libav-next/pspec.xml b/multimedia/video/gst-libav-next/pspec.xml new file mode 100644 index 0000000000..fb3b50e384 --- /dev/null +++ b/multimedia/video/gst-libav-next/pspec.xml @@ -0,0 +1,93 @@ + + + + + gst-libav-next + http://gstreamer.net/ + + PisiLinux Community + admins@pisilinux.org + + GPLv2 + library + Gstreamer plugin for the libav codec + Gstreamer plugin for the libav codec. + http://gstreamer.freedesktop.org/src/gst-libav/gst-libav-1.4.5.tar.xz + + gst-plugins-base-next-devel + gstreamer-next-devel + liboil-devel + orc-devel + ffmpeg-devel + + + + + gst-libav-next + + gst-plugins-base-next + gstreamer-next + bzip2 + glib2 + ffmpeg + liboil + + + /usr/lib + /usr/share/doc + /usr/share/gtk-doc + + + + + + 2015-04-18 + 1.4.5 + Version bump. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2014-08-23 + 1.4.0 + Version bump. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2014-05-26 + 1.2.4 + Version bump. + Alihan Öztürk + alihan@pisilinux.org + + + 2014-02-14 + 1.2.3 + Version bump. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2013-11-29 + 1.2.1 + Version bump + rebuild for ffmpeg + Osman Erkan + osman.erkan@pisilinux.org + + + 2013-10-14 + 1.2.0 + version bump + Erdinç Gültekin + erdincgultekin@pisilinux.org + + + 2013-08-30 + 1.1.4 + First release + Osman Erkan + osman.erkan@pisilinux.org + + + diff --git a/multimedia/video/gst-libav-next/translations.xml b/multimedia/video/gst-libav-next/translations.xml new file mode 100644 index 0000000000..58acfd772e --- /dev/null +++ b/multimedia/video/gst-libav-next/translations.xml @@ -0,0 +1,7 @@ + + + + gst-libav + Gstreamer için FFmpeg desteği + +