Gentoo Archives: gentoo-commits

From: Stefan Strogin <steils@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/opus/
Date: Wed, 22 May 2019 01:25:37
Message-Id: 1558488204.33935a110ddaa4bcac9a61a66392473f436e29ca.steils@gentoo
1 commit: 33935a110ddaa4bcac9a61a66392473f436e29ca
2 Author: Peter Levine <plevine457 <AT> gmail <DOT> com>
3 AuthorDate: Mon May 20 03:25:00 2019 +0000
4 Commit: Stefan Strogin <steils <AT> gentoo <DOT> org>
5 CommitDate: Wed May 22 01:23:24 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33935a11
7
8 media-libs/opus: enable building with -ffast-math or -Ofast
9
10 Add support for --enable-float-approx configure option which enables
11 functions that are safe to use with the -ffast-math C{XX}FLAG.
12
13 Package-Manager: Portage-2.3.66, Repoman-2.3.12
14 Closes: https://bugs.gentoo.org/621978
15 Signed-off-by: Peter Levine <plevine457 <AT> gmail.com>
16 Closes: https://github.com/gentoo/gentoo/pull/12060
17 Signed-off-by: Stefan Strogin <steils <AT> gentoo.org>
18
19 media-libs/opus/opus-1.3.1-r1.ebuild | 42 ++++++++++++++++++++++++++++++++++++
20 1 file changed, 42 insertions(+)
21
22 diff --git a/media-libs/opus/opus-1.3.1-r1.ebuild b/media-libs/opus/opus-1.3.1-r1.ebuild
23 new file mode 100644
24 index 00000000000..6658b6af799
25 --- /dev/null
26 +++ b/media-libs/opus/opus-1.3.1-r1.ebuild
27 @@ -0,0 +1,42 @@
28 +# Copyright 1999-2019 Gentoo Authors
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=7
32 +
33 +inherit flag-o-matic multilib-minimal
34 +
35 +DESCRIPTION="Open codec for interactive speech and music transmission over the Internet"
36 +HOMEPAGE="https://opus-codec.org/"
37 +SRC_URI="https://archive.mozilla.org/pub/opus/${P}.tar.gz"
38 +
39 +LICENSE="BSD"
40 +SLOT="0"
41 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
42 +INTRINSIC_FLAGS="cpu_flags_x86_sse cpu_flags_arm_neon"
43 +IUSE="custom-modes doc static-libs ${INTRINSIC_FLAGS}"
44 +
45 +DEPEND="doc? (
46 + app-doc/doxygen
47 + media-gfx/graphviz
48 + )"
49 +
50 +multilib_src_configure() {
51 + local myeconfargs=(
52 + $(use_enable custom-modes)
53 + $(use_enable doc)
54 + $(use_enable static-libs static)
55 + )
56 + for i in ${INTRINSIC_FLAGS} ; do
57 + use ${i} && myeconfargs+=( --enable-intrinsics )
58 + done
59 + if is-flagq -ffast-math || is-flagq -Ofast; then
60 + myeconfargs+=( "--enable-float-approx" )
61 + fi
62 +
63 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
64 +}
65 +
66 +multilib_src_install_all() {
67 + default
68 + find "${ED}" -name "*.la" -delete || die
69 +}