[packages/gstreamer0.10-vaapi] - fix chicken-egg problem and compiler flags in vpx config - rel 2
baggins
baggins at pld-linux.org
Sun Nov 11 00:17:55 CET 2018
commit 0c739bdc845033e590941a4153feaf20d507a5cf
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Nov 11 00:17:00 2018 +0100
- fix chicken-egg problem and compiler flags in vpx config
- rel 2
gstreamer0.10-vaapi.spec | 7 +++++--
vpx-configure.patch | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 42 insertions(+), 2 deletions(-)
---
diff --git a/gstreamer0.10-vaapi.spec b/gstreamer0.10-vaapi.spec
index e880263..be01a4f 100644
--- a/gstreamer0.10-vaapi.spec
+++ b/gstreamer0.10-vaapi.spec
@@ -6,13 +6,14 @@ Summary: GStreamer 0.10 plugin to support Video Acceleration API
Summary(pl.UTF-8): Wtyczka GStreamera 0.10 obsługująca Video Acceleration API
Name: gstreamer0.10-vaapi
Version: 0.5.10
-Release: 1
+Release: 2
License: LGPL v2.1+
Group: Libraries
Source0: http://www.freedesktop.org/software/vaapi/releases/gstreamer-vaapi/gstreamer-vaapi-%{version}.tar.bz2
# Source0-md5: 3bd90b696b644be943450ba0c1497193
Patch0: %{name}-export.patch
Patch1: %{name}-oldgst.patch
+Patch2: vpx-configure.patch
URL: http://www.freedesktop.org/wiki/Software/vaapi/
BuildRequires: Mesa-libGL-devel
BuildRequires: autoconf >= 2.66
@@ -41,6 +42,7 @@ BuildRequires: wayland-devel >= 1.0.0
BuildRequires: xorg-lib-libX11-devel
BuildRequires: xorg-lib-libXrandr-devel
BuildRequires: xorg-lib-libXrender-devel
+BuildRequires: yasm
Requires: glib2 >= 1:2.28.0
Requires: gstreamer >= 0.10.36
Requires: gstreamer-plugins-bad >= 0.10.22
@@ -92,6 +94,7 @@ Statyczne biblioteki VA-API GStreamera 0.10.
%setup -q -n gstreamer-vaapi-%{version}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__libtoolize}
@@ -109,7 +112,7 @@ Statyczne biblioteki VA-API GStreamera 0.10.
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install \
+%{__make} -j1 install \
DESTDIR=$RPM_BUILD_ROOT
# gstreamer module
diff --git a/vpx-configure.patch b/vpx-configure.patch
new file mode 100644
index 0000000..625009d
--- /dev/null
+++ b/vpx-configure.patch
@@ -0,0 +1,37 @@
+--- gstreamer-vaapi-0.5.10/ext/libvpx/upstream/build/make/configure.sh.orig 2018-11-11 00:01:04.000000000 +0100
++++ gstreamer-vaapi-0.5.10/ext/libvpx/upstream/build/make/configure.sh 2018-11-11 00:06:35.995740179 +0100
+@@ -1017,14 +1017,6 @@
+ esac
+ ;;
+ x86*)
+- bits=32
+- enabled x86_64 && bits=64
+- check_cpp <<EOF && bits=x32
+-#ifndef __ILP32__
+-#error "not x32"
+-#endif
+-EOF
+-
+ case ${tgt_os} in
+ win*)
+ enabled gcc && add_cflags -fno-common
+@@ -1063,11 +1055,16 @@
+ esac
+ ;;
+ gcc*)
+- add_cflags -m${bits}
+- add_ldflags -m${bits}
++ setup_gnu_toolchain
++ bits=32
++ enabled x86_64 && bits=64
++ check_cpp <<EOF && bits=x32
++#ifndef __ILP32__
++#error "not x32"
++#endif
++EOF
+ link_with_cc=gcc
+ tune_cflags="-march="
+- setup_gnu_toolchain
+ #for 32 bit x86 builds, -O3 did not turn on this flag
+ enabled optimizations && disabled gprof && check_add_cflags -fomit-frame-pointer
+ ;;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gstreamer0.10-vaapi.git/commitdiff/0c739bdc845033e590941a4153feaf20d507a5cf
More information about the pld-cvs-commit
mailing list