media-sound/lame: Build files requiring SSE with SSE.
authorRyan Hill <rhill@gentoo.org>
Fri, 2 Oct 2015 02:04:25 +0000 (20:04 -0600)
committerRyan Hill <rhill@gentoo.org>
Fri, 2 Oct 2015 02:04:25 +0000 (20:04 -0600)
Gentoo-Bug: https://bugs.gentoo.org/542192

Package-Manager: portage-2.2.22
Signed-off-by: Ryan Hill <rhill@gentoo.org>
media-sound/lame/files/lame-3.99.5-msse.patch [new file with mode: 0644]
media-sound/lame/lame-3.99.5-r1.ebuild

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 (file)
index 0000000..56608f6
--- /dev/null
@@ -0,0 +1,18 @@
+https://bugs.gentoo.org/542192
+
+Description: Build xmm_quantize_sub.c with -msse
+Author: Sebastian Ramacher <sramacher@debian.org>
+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
index e14c0304c5855dad36d1bfb83b323e555f1b0046..490e597ae57ae9ad39c15d5e8bc04c7871d0109e 100644 (file)
@@ -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