lame: force SSE on i686

This commit is contained in:
Christian Neukirchen 2014-09-08 15:53:43 +02:00
parent d5423f52ae
commit 7ae709a582
2 changed files with 6 additions and 12 deletions

View File

@ -1,12 +0,0 @@
Bug: http://sourceforge.net/p/lame/bugs/443/
--- libmp3lame/vector/Makefile.am
+++ 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

View File

@ -13,6 +13,12 @@ homepage="http://lame.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/lame/lame-${version}.tar.gz"
checksum=24346b4158e4af3bd9f2e194bb23eb473c75fb7377011523353196b19b9a23ff
pre_configure() {
if [ "${XBPS_TARGET_MACHINE}" = "i686" ]; then
CFLAGS+=" -msse"
fi
}
lame-devel_package() {
depends="lame>=${version}_${revision}"
short_desc+=" - development files"