commit:     368ffea03a647d0bdd09c587bff69abe694a90ba
Author:     Ryan Hill <rhill <AT> gentoo <DOT> org>
AuthorDate: Fri Oct  2 02:04:25 2015 +0000
Commit:     Ryan Hill <rhill <AT> gentoo <DOT> org>
CommitDate: Fri Oct  2 02:04:25 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=368ffea0

media-sound/lame: Build files requiring SSE with SSE.

Gentoo-Bug: https://bugs.gentoo.org/542192

Package-Manager: portage-2.2.22
Signed-off-by: Ryan Hill <rhill <AT> gentoo.org>

 media-sound/lame/files/lame-3.99.5-msse.patch | 18 ++++++++++++++++++
 media-sound/lame/lame-3.99.5-r1.ebuild        |  1 +
 2 files changed, 19 insertions(+)

diff --git a/media-sound/lame/files/lame-3.99.5-msse.patch 
b/media-sound/lame/files/lame-3.99.5-msse.patch
new file mode 100644
index 0000000..56608f6
--- /dev/null
+++ b/media-sound/lame/files/lame-3.99.5-msse.patch
@@ -0,0 +1,18 @@
+https://bugs.gentoo.org/542192
+
+Description: Build xmm_quantize_sub.c with -msse
+Author: Sebastian Ramacher <[email protected]>
+Bug: http://sourceforge.net/p/lame/bugs/443/
+Bug-Debian: https://bugs.debian.org/760047
+Last-Update: 2014-08-31
+
+--- lame-3.99.5+repack1.orig/libmp3lame/vector/Makefile.am
++++ lame-3.99.5+repack1/libmp3lame/vector/Makefile.am
+@@ -20,6 +20,7 @@ xmm_sources = xmm_quantize_sub.c
+ 
+ if WITH_XMM
+ liblamevectorroutines_la_SOURCES = $(xmm_sources)
++liblamevectorroutines_la_CFLAGS = -msse
+ endif
+ 
+ noinst_HEADERS = lame_intrin.h

diff --git a/media-sound/lame/lame-3.99.5-r1.ebuild 
b/media-sound/lame/lame-3.99.5-r1.ebuild
index e14c030..490e597 100644
--- a/media-sound/lame/lame-3.99.5-r1.ebuild
+++ b/media-sound/lame/lame-3.99.5-r1.ebuild
@@ -31,6 +31,7 @@ src_prepare() {
                "${FILESDIR}"/${PN}-3.96-ccc.patch \
                "${FILESDIR}"/${PN}-3.98-gtk-path.patch \
                "${FILESDIR}"/${PN}-3.99.5-tinfo.patch \
+               "${FILESDIR}"/${PN}-3.99.5-msse.patch \
                "${WORKDIR}"/${P}-automake-2.12.patch
 
        mkdir libmp3lame/i386/.libs || die #workaround parallel build with nasm

Reply via email to