commit f89260a895dff7ce2240a693b3ca84c1c408ea42
Author: Jan Rękorajski <[email protected]>
Date:   Tue Mar 10 08:43:00 2015 +0100

    - disable SSE2 for i686 builds
    - rel 4

 lame.spec     |  8 +++++++-
 no-sse2.patch | 13 +++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)
---
diff --git a/lame.spec b/lame.spec
index 3fe3d54..b7ed53e 100644
--- a/lame.spec
+++ b/lame.spec
@@ -1,14 +1,18 @@
 #
 # Conditional build:
 %bcond_without gtk     # without GTK+ frontend
+%bcond_without sse2    # disable SSE2 instructions usage
 #
+%ifarch %{ix86}
+%undefine      with_sse2
+%endif
 Summary:       Software to create compressed audio files
 Summary(es.UTF-8):     Lame es un gerador de MP3
 Summary(pl.UTF-8):     Program do tworzenia skompresowanych plików dźwiękowych
 Summary(pt_BR.UTF-8):  Lame é um gerador de MP3
 Name:          lame
 Version:       3.99.5
-Release:       3
+Release:       4
 # libmp3lame encoder is LGPL v2+, but decoder parts (enabled by default)
 # come from old mpg123 code, which was licensed on GPL
 License:       GPL v2+ (MP3 decoder), LGPL v2+ (the rest)
@@ -18,6 +22,7 @@ Source0:      
http://downloads.sourceforge.net/lame/%{name}-%{version}.tar.gz
 Patch0:                %{name}-link.patch
 Patch1:                %{name}-without_gtk.patch
 Patch2:                %{name}-automake_1_12.patch
+Patch3:                no-sse2.patch
 URL:           http://lame.sourceforge.net/
 BuildRequires: autoconf >= 2.68
 BuildRequires: automake
@@ -115,6 +120,7 @@ Analizator ramek w GTK+.
 %patch0 -p1
 %{!?with_gtk:%patch1 -p1}
 %patch2 -p1
+%{!?with_sse2:%patch3 -p1}
 
 %build
 %{__libtoolize}
diff --git a/no-sse2.patch b/no-sse2.patch
new file mode 100644
index 0000000..43a7f0a
--- /dev/null
+++ b/no-sse2.patch
@@ -0,0 +1,13 @@
+--- lame-3.99.5/configure.in~  2015-03-10 08:36:50.000000000 +0100
++++ lame-3.99.5/configure.in   2015-03-10 08:40:32.503330833 +0100
+@@ -646,10 +646,6 @@
+       ;;
+ *86)
+       CPUTYPE="i386"
+-      if test $ac_cv_header_xmmintrin_h = yes ; then
+-              WITH_XMM=yes
+-              WITH_VECTOR=yes
+-      fi
+ 
+       # use internal knowledge of the IEEE 754 layout
+       AC_DEFINE(TAKEHIRO_IEEE754_HACK, 1, IEEE754 compatible machine)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lame.git/commitdiff/f89260a895dff7ce2240a693b3ca84c1c408ea42

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to