From de27d11981552cf92bc4a10ec55832b420f0254d Mon Sep 17 00:00:00 2001 From: "Kazushi (Jam) Marukawa" Date: Sat, 12 Aug 2017 11:09:53 +0900 Subject: [PATCH] Change libmp3lame to make it compilable on i686. This modification is required for only i686 using gcc-4.x. It will be possible to remove this line once we start using gcc-5.x. --- packages/libmp3lame.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/libmp3lame.rb b/packages/libmp3lame.rb index e92ba10d1..a07d75bbe 100644 --- a/packages/libmp3lame.rb +++ b/packages/libmp3lame.rb @@ -3,12 +3,20 @@ require 'package' class Libmp3lame < Package description 'LAME is a high quality MPEG Audio Layer III (MP3) encoder licensed under the LGPL.' homepage 'http://lame.sourceforge.net/' - version '3.99.5' + version '3.99.5-1' source_url 'https://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz' source_sha256 '24346b4158e4af3bd9f2e194bb23eb473c75fb7377011523353196b19b9a23ff' def self.build - system "./configure" + case ARCH + when 'i686' + # gcc-4.x for i686 has problem, so forcing to use -msse here. + # see https://mail-index.netbsd.org/pkgsrc-users/2015/04/18/msg021393.html + # and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56145 for details. + system 'CFLAGS="-O3 -fomit-frame-pointer -ffast-math -maccumulate-outgoing-args -msse" ./configure' + else + system "./configure" + end system "make" end