Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/speexdsp/, media-libs/speexdsp/files/
Date: Mon, 03 May 2021 15:36:19
Message-Id: 1620056168.fdc6097881bc8f0b7c25de404005c1bfede4d484.polynomial-c@gentoo
1 commit: fdc6097881bc8f0b7c25de404005c1bfede4d484
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 2 23:56:34 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon May 3 15:36:08 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdc60978
7
8 media-libs/speexdsp: 1.2.0 version bump
9
10 Thanks-to: orbea <orbea <AT> riseup.net>
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 media-libs/speexdsp/Manifest | 1 +
14 .../speexdsp/files/speexdsp-1.2.0-configure.patch | 41 ++++++++++++++++
15 media-libs/speexdsp/speexdsp-1.2.0.ebuild | 57 ++++++++++++++++++++++
16 3 files changed, 99 insertions(+)
17
18 diff --git a/media-libs/speexdsp/Manifest b/media-libs/speexdsp/Manifest
19 index b6203f7a335..dc23d895ce6 100644
20 --- a/media-libs/speexdsp/Manifest
21 +++ b/media-libs/speexdsp/Manifest
22 @@ -1 +1,2 @@
23 +DIST speexdsp-1.2.0.tar.gz 919621 BLAKE2B 70c7d07f4b23abbb70cfb212a6541288c71f57fffd5fe22ddd94901a7d01fa403a69b7884e3a4a2267ffd45a7e053b1ae7c7fd662e57053a06d4a7efb7889610 SHA512 e357cd5377415ea66c862302c7cf8bf6a10063cacd903f0846478975b87974cf5bdf00e2c6759d8f4f453c4c869cf284e9dc948a84a83d7b2ab96bd5405c05ec
24 DIST speexdsp-1.2rc3.tar.gz 901771 BLAKE2B 85d047df82fc06906598da39ae653aa245c246bfea75c02d25f7811983babdab6a8499c9b563e0d7d2145fa490674df2cf0a05989884ffb3c2c2a183415ce841 SHA512 29dfa8345df025eeb076561648a9b5c0485692be699b6da3c2a3734b4329187a1c2eb181252f4df12b21f1309ecdf59797437dfb123d160fd723491ab216e858
25
26 diff --git a/media-libs/speexdsp/files/speexdsp-1.2.0-configure.patch b/media-libs/speexdsp/files/speexdsp-1.2.0-configure.patch
27 new file mode 100644
28 index 00000000000..1983e4bff3b
29 --- /dev/null
30 +++ b/media-libs/speexdsp/files/speexdsp-1.2.0-configure.patch
31 @@ -0,0 +1,41 @@
32 +--- speexdsp-1.2.0/configure.ac
33 ++++ speexdsp-1.2.0/configure.ac
34 +@@ -152,9 +152,17 @@
35 + if test "x$enableval" != xno; then
36 + has_sse=yes
37 + has_sse2=yes
38 +-CFLAGS="$CFLAGS -O3 -msse -msse2"
39 ++CFLAGS="$CFLAGS -msse"
40 + else
41 + has_sse=no
42 ++fi
43 ++])
44 ++
45 ++AC_ARG_ENABLE(sse2, [ --enable-sse2 Enable SSE2 support], [
46 ++if test "x$enableval" != xno; then
47 ++has_sse2=yes
48 ++CFLAGS="$CFLAGS -msse2"
49 ++else
50 + has_sse2=no
51 + fi
52 + ])
53 +@@ -163,7 +171,7 @@
54 + if test "x$enableval" != xno; then
55 + has_neon=yes
56 + AS_CASE(["$host"],
57 +- [arm*], [CFLAGS="$CFLAGS -O3 -march=armv7-a -mfpu=neon"]
58 ++ [arm*], [CFLAGS="$CFLAGS -mfpu=neon"]
59 + )
60 + else
61 + has_neon=no
62 +--- speexdsp-1.2.0/libspeexdsp/Makefile.am
63 ++++ speexdsp-1.2.0/libspeexdsp/Makefile.am
64 +@@ -29,7 +29,7 @@
65 + pseudofloat.h smallft.h vorbis_psy.h resample_sse.h resample_neon.h
66 +
67 + libspeexdsp_la_LDFLAGS = -no-undefined -version-info @SPEEXDSP_LT_CURRENT@:@SPEEXDSP_LT_REVISION@:@SPEEXDSP_LT_AGE@
68 +-libspeexdsp_la_LIBADD = $(LIBM)
69 ++libspeexdsp_la_LIBADD = $(LIBM) $(FFT_LIBS)
70 +
71 + if BUILD_EXAMPLES
72 + noinst_PROGRAMS = testdenoise testecho testjitter testresample testresample2
73
74 diff --git a/media-libs/speexdsp/speexdsp-1.2.0.ebuild b/media-libs/speexdsp/speexdsp-1.2.0.ebuild
75 new file mode 100644
76 index 00000000000..9a9d4e43273
77 --- /dev/null
78 +++ b/media-libs/speexdsp/speexdsp-1.2.0.ebuild
79 @@ -0,0 +1,57 @@
80 +# Copyright 1999-2021 Gentoo Authors
81 +# Distributed under the terms of the GNU General Public License v2
82 +
83 +EAPI=7
84 +
85 +inherit autotools flag-o-matic multilib-minimal
86 +
87 +MY_P=${P/_}
88 +MY_P=${MY_P/_p/.}
89 +
90 +DESCRIPTION="Audio compression format designed for speech -- DSP"
91 +HOMEPAGE="https://www.speex.org/"
92 +SRC_URI="https://downloads.xiph.org/releases/speex/${MY_P}.tar.gz"
93 +
94 +LICENSE="BSD"
95 +SLOT="0"
96 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x86-solaris"
97 +IUSE="cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_arm_neon"
98 +
99 +RDEPEND="!<media-libs/speex-1.2.0"
100 +DEPEND="${RDEPEND}"
101 +BDEPEND="virtual/pkgconfig"
102 +
103 +S="${WORKDIR}/${MY_P}"
104 +
105 +PATCHES=(
106 + "${FILESDIR}"/${P}-configure.patch
107 +)
108 +
109 +src_prepare() {
110 + default
111 +
112 + sed -i \
113 + -e 's:noinst_PROGRAMS:check_PROGRAMS:' \
114 + libspeexdsp/Makefile.am || die
115 +
116 + eautoreconf
117 +
118 + append-lfs-flags
119 +}
120 +
121 +multilib_src_configure() {
122 + # Can also be configured with one of:
123 + # --enable-fixed-point (no floating point)
124 + # --with-fft=proprietary-intel-mkl (mkl)
125 + # --with-fft=gpl-fftw3 (fftw)
126 + ECONF_SOURCE="${S}" econf \
127 + --disable-static \
128 + $(use_enable cpu_flags_x86_sse sse) \
129 + $(use_enable cpu_flags_x86_sse2 sse2) \
130 + $(use_enable cpu_flags_arm_neon neon)
131 +}
132 +
133 +multilib_src_install_all() {
134 + einstalldocs
135 + find "${ED}" -name '*.la' -type f -delete || die
136 +}