]> git.pld-linux.org Git - packages/mjpegtools.git/commitdiff
- fix building on x32 auto/th/mjpegtools-2.1.0-2
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 3 Apr 2015 21:41:31 +0000 (23:41 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Fri, 3 Apr 2015 21:41:31 +0000 (23:41 +0200)
- rel 2

mjpegtools.spec
x32.patch [new file with mode: 0644]

index a81ba9ef3d096152b20768e1fcbf394f9741fa0a..f4677bcc0b01f7494615febf61db711292e553d2 100644 (file)
@@ -6,7 +6,7 @@ Summary:        Tools for recording, editing, playing back and MPEG-encoding video unde
 Summary(pl.UTF-8):     Narzędzia do nagrywania, edycji, odtwarzania i kodowania do MPEG obrazu
 Name:          mjpegtools
 Version:       2.1.0
-Release:       1
+Release:       2
 License:       GPL v2+
 Group:         Applications/Graphics
 Source0:       http://downloads.sourceforge.net/mjpeg/%{name}-%{version}.tar.gz
@@ -14,6 +14,7 @@ Source0:      http://downloads.sourceforge.net/mjpeg/%{name}-%{version}.tar.gz
 Patch0:                %{name}-opt.patch
 Patch1:                %{name}-pthread.patch
 Patch2:                %{name}-sec.patch
+Patch3:                x32.patch
 URL:           http://mjpeg.sourceforge.net/
 BuildRequires: SDL-devel >= 1.1.3
 BuildRequires: SDL_gfx-devel
@@ -101,6 +102,7 @@ Statyczne biblioteki mjpegtools.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__libtoolize}
diff --git a/x32.patch b/x32.patch
new file mode 100644 (file)
index 0000000..62b1a97
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,22 @@
+--- mjpegtools-2.1.0/utils/cpu_accel.c.orig    2010-09-19 23:21:37.000000000 +0200
++++ mjpegtools-2.1.0/utils/cpu_accel.c 2015-04-03 23:40:52.986289070 +0200
+@@ -117,14 +117,18 @@
+ static int x86_accel (void)
+ {
++#if defined(__ILP32__)
++    long long eax, ebx, ecx, edx;
++#else
+     long eax, ebx, ecx, edx;
++#endif
+     int32_t AMD;
+     int32_t caps;
+       /* Slightly weirdified cpuid that preserves the ebx and edi required
+          by gcc for PIC offset table and frame pointer */
+-#if defined(__LP64__) || defined(_LP64)
++#if defined(__LP64__) || defined(_LP64) || defined(__ILP32__)
+ #  define REG_b "rbx"
+ #  define REG_S "rsi"
+ #else
This page took 0.152419 seconds and 4 git commands to generate.