public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: media-sound/lame/files/, media-sound/lame/
@ 2015-10-02  2:01 Ryan Hill
  0 siblings, 0 replies; 2+ messages in thread
From: Ryan Hill @ 2015-10-02  2:01 UTC (permalink / raw
  To: gentoo-commits

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 <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

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-sound/lame/files/, media-sound/lame/
@ 2017-10-18  6:26 Lars Wendler
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Wendler @ 2017-10-18  6:26 UTC (permalink / raw
  To: gentoo-commits

commit:     cac3017eed6bec4140ba2dec99d67365bb1da66f
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 18 06:26:42 2017 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Wed Oct 18 06:26:54 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cac3017e

media-sound/lame: Security bump to version 3.100 (bug #634598).

Package-Manager: Portage-2.3.11, Repoman-2.3.3

 media-sound/lame/Manifest                       |  1 +
 media-sound/lame/files/lame-3.96-ccc.patch      |  4 +-
 media-sound/lame/files/lame-3.98-gtk-path.patch |  4 +-
 media-sound/lame/files/lame-3.99.5-tinfo.patch  |  4 +-
 media-sound/lame/lame-3.100.ebuild              | 80 +++++++++++++++++++++++++
 5 files changed, 87 insertions(+), 6 deletions(-)

diff --git a/media-sound/lame/Manifest b/media-sound/lame/Manifest
index 34500bc1cc9..1673e9655cd 100644
--- a/media-sound/lame/Manifest
+++ b/media-sound/lame/Manifest
@@ -1,2 +1,3 @@
+DIST lame-3.100.tar.gz 1524133 SHA256 ddfe36cab873794038ae2c1210557ad34857a4b6bdc515785d1da9e175b1da1e SHA512 0844b9eadb4aacf8000444621451277de365041cc1d97b7f7a589da0b7a23899310afd4e4d81114b9912aa97832621d20588034715573d417b2923948c08634b WHIRLPOOL 6e940e2995dec8d1f6b73b87fc5441f9d85bdccfb3faf670ca06f9001ce752e9efbad17dc8fb5641e0e14e4e27aa2ff33f4c2c9df2fafd5e522ca0894e4c8efb
 DIST lame-3.99.5-automake-2.12.patch.gz 536 SHA256 49833b952d846405fdcc8d87de55f60dda5fb2268e1b36861c53dfd39dbd275d SHA512 9d6211e257d573ced5c29c43ba5d5cc98a231b213d6e0cfc352b14776c06c9e656ed1873d5caae466afb27dfe753eeac0842c7221a8538ccecea8f4ba0f8bfe2 WHIRLPOOL 506e505cbf8659c3f67084565fc581e4dee3ba2016db3d835e3e63d9eca0d4383443e7596229f51b349c1f8c53ef42a581761d27778de4c1e5b698c85418b401
 DIST lame-3.99.5.tar.gz 1445348 SHA256 24346b4158e4af3bd9f2e194bb23eb473c75fb7377011523353196b19b9a23ff SHA512 ce62d7eb9fc8c53c343374ded30f11153a296910f0be7e649197bca7412c6660aad1aa6143d56b750f866229eb492cf7bb4f682535c383fb4aa57d7077d8b4d8 WHIRLPOOL c238107bfb824c67c639875547e24b64ceeeb22125800af753ca42de129138f480574a6cfe132bc2c9cffeb39e54b6d57059be69cb41bdc164cdbf29bd95afe9

diff --git a/media-sound/lame/files/lame-3.96-ccc.patch b/media-sound/lame/files/lame-3.96-ccc.patch
index 4d3491ae425..1ef2fadc58a 100644
--- a/media-sound/lame/files/lame-3.96-ccc.patch
+++ b/media-sound/lame/files/lame-3.96-ccc.patch
@@ -3,8 +3,8 @@ configure is broken, fix it to respect CC.  This is only
 directly broken for ARCH=alpha but would affect anybody with a
 ccc binary in their PATH.  Bug #41908  (26 Jul 2004 agriffis)
 
---- configure.in
-+++ configure.in
+--- a/configure.in
++++ b/configure.in
 @@ -915,11 +915,9 @@
  alpha*-*-linux*)
  

diff --git a/media-sound/lame/files/lame-3.98-gtk-path.patch b/media-sound/lame/files/lame-3.98-gtk-path.patch
index a5843597485..98925c01a30 100644
--- a/media-sound/lame/files/lame-3.98-gtk-path.patch
+++ b/media-sound/lame/files/lame-3.98-gtk-path.patch
@@ -1,5 +1,5 @@
---- gtk.m4
-+++ gtk.m4
+--- a/gtk.m4
++++ b/gtk.m4
 @@ -0,0 +1,194 @@
 +# Configure paths for GTK+
 +# Owen Taylor     97-11-3

diff --git a/media-sound/lame/files/lame-3.99.5-tinfo.patch b/media-sound/lame/files/lame-3.99.5-tinfo.patch
index cb570e7880f..29d386d01bd 100644
--- a/media-sound/lame/files/lame-3.99.5-tinfo.patch
+++ b/media-sound/lame/files/lame-3.99.5-tinfo.patch
@@ -5,8 +5,8 @@ like used in debian and gentoo
 
 http://bugs.gentoo.org/454322
 
---- configure.in
-+++ configure.in
+--- a/configure.in
++++ b/configure.in
 @@ -372,9 +372,10 @@
  
  AC_CHECK_HEADERS(termcap.h)

diff --git a/media-sound/lame/lame-3.100.ebuild b/media-sound/lame/lame-3.100.ebuild
new file mode 100644
index 00000000000..1c19043df7a
--- /dev/null
+++ b/media-sound/lame/lame-3.100.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools multilib-minimal
+
+DESCRIPTION="LAME Ain't an MP3 Encoder"
+HOMEPAGE="http://lame.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="debug cpu_flags_x86_mmx +frontend mp3rtp sndfile static-libs"
+
+# These deps are without MULTILIB_USEDEP and are correct since we only build
+# libmp3lame for multilib and these deps apply to the lame frontend executable.
+RDEPEND="
+	frontend? (
+		>=sys-libs/ncurses-5.7-r7:0=
+		sndfile? ( >=media-libs/libsndfile-1.0.2 )
+	)
+"
+DEPEND="${RDEPEND}
+	virtual/pkgconfig
+	cpu_flags_x86_mmx? ( dev-lang/nasm )"
+
+PATCHES=(
+	"${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
+)
+
+src_prepare() {
+	default
+
+	mkdir libmp3lame/i386/.libs || die #workaround parallel build with nasm
+
+	sed -i -e '/define sp/s/+/ + /g' libmp3lame/i386/nasm.h || die
+
+	use cpu_flags_x86_mmx || sed -i -e '/AC_PATH_PROG/s:nasm:dIsAbLe&:' configure.in #361879
+
+	AT_M4DIR=. eautoreconf
+}
+
+multilib_src_configure() {
+	local myconf=(
+		$(use_enable static-libs static)
+		$(use_enable debug debug norm)
+		--disable-mp3x
+		--enable-dynamic-frontends
+	)
+	use cpu_flags_x86_mmx && myconf+=( --enable-nasm ) #361879
+
+	# Only build the frontend for the default ABI.
+	if [ "${ABI}" = "${DEFAULT_ABI}" ] ; then
+		myconf+=( $(use_enable mp3rtp) $(use_enable frontend) )
+		use sndfile && myconf+=( --with-fileio=sndfile )
+	else
+		myconf+=( --disable-frontend --disable-mp3rtp )
+	fi
+
+	ECONF_SOURCE="${S}" econf "${myconf[@]}"
+}
+
+multilib_src_install() {
+	emake DESTDIR="${D}" pkghtmldir="${EPREFIX}/usr/share/doc/${PF}/html" install
+}
+
+multilib_src_install_all() {
+	cd "${S}"
+	dobin misc/mlame
+
+	dodoc API ChangeLog HACKING README STYLEGUIDE TODO USAGE
+	dohtml misc/lameGUI.html Dll/LameDLLInterface.htm
+
+	find "${ED}" -name '*.la' -exec rm -f {} +
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-18  6:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-02  2:01 [gentoo-commits] repo/gentoo:master commit in: media-sound/lame/files/, media-sound/lame/ Ryan Hill
  -- strict thread matches above, loose matches on Subject: below --
2017-10-18  6:26 Lars Wendler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox