1 |
commit: a0e0030ba45065e47f61c1381d283cf6162a733b |
2 |
Author: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Dec 14 21:53:30 2016 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 3 23:11:34 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0e0030b |
7 |
|
8 |
media-libs/speexdsp: New package |
9 |
|
10 |
media-libs/speexdsp/Manifest | 1 + |
11 |
.../files/speexdsp-1.2_rc3-configure.patch | 44 ++++++++++++++++++ |
12 |
media-libs/speexdsp/metadata.xml | 11 +++++ |
13 |
media-libs/speexdsp/speexdsp-1.2_rc3.ebuild | 54 ++++++++++++++++++++++ |
14 |
4 files changed, 110 insertions(+) |
15 |
|
16 |
diff --git a/media-libs/speexdsp/Manifest b/media-libs/speexdsp/Manifest |
17 |
new file mode 100644 |
18 |
index 00000000000..222b3132389 |
19 |
--- /dev/null |
20 |
+++ b/media-libs/speexdsp/Manifest |
21 |
@@ -0,0 +1 @@ |
22 |
+DIST speexdsp-1.2rc3.tar.gz 901771 SHA256 4ae688600039f5d224bdf2e222d2fbde65608447e4c2f681585e4dca6df692f1 SHA512 29dfa8345df025eeb076561648a9b5c0485692be699b6da3c2a3734b4329187a1c2eb181252f4df12b21f1309ecdf59797437dfb123d160fd723491ab216e858 WHIRLPOOL 74e09df1819f0a857934f7821d1176c2ed410d231e51eaba5042c2e703f800ada54a648ba3400ea5b078b2a36c11c7f367322ec48fe09233d046fdfcb6b62930 |
23 |
|
24 |
diff --git a/media-libs/speexdsp/files/speexdsp-1.2_rc3-configure.patch b/media-libs/speexdsp/files/speexdsp-1.2_rc3-configure.patch |
25 |
new file mode 100644 |
26 |
index 00000000000..ae29da58438 |
27 |
--- /dev/null |
28 |
+++ b/media-libs/speexdsp/files/speexdsp-1.2_rc3-configure.patch |
29 |
@@ -0,0 +1,44 @@ |
30 |
+diff -Naur speexdsp-1.2rc3.orig/configure.ac speexdsp-1.2rc3/configure.ac |
31 |
+--- speexdsp-1.2rc3.orig/configure.ac 2016-12-12 20:04:48.710853453 -0800 |
32 |
++++ speexdsp-1.2rc3/configure.ac 2016-12-12 20:05:07.588052415 -0800 |
33 |
+@@ -151,10 +151,17 @@ |
34 |
+ AC_ARG_ENABLE(sse, [ --enable-sse Enable SSE support], [ |
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 |
+@@ -162,7 +169,7 @@ |
54 |
+ AC_ARG_ENABLE(neon, [ --enable-neon Enable NEON support], [ |
55 |
+ if test "x$enableval" != xno; then |
56 |
+ has_neon=yes |
57 |
+-CFLAGS="$CFLAGS -O3 -march=armv7-a -mfpu=neon" |
58 |
++CFLAGS="$CFLAGS -mfpu=neon" |
59 |
+ else |
60 |
+ has_neon=no |
61 |
+ fi |
62 |
+diff -Naur speexdsp-1.2rc3.orig/libspeexdsp/Makefile.am speexdsp-1.2rc3/libspeexdsp/Makefile.am |
63 |
+--- speexdsp-1.2rc3.orig/libspeexdsp/Makefile.am 2016-12-12 20:04:48.690853242 -0800 |
64 |
++++ speexdsp-1.2rc3/libspeexdsp/Makefile.am 2016-12-12 20:08:27.740161974 -0800 |
65 |
+@@ -29,7 +29,7 @@ |
66 |
+ pseudofloat.h smallft.h vorbis_psy.h resample_sse.h resample_neon.h |
67 |
+ |
68 |
+ libspeexdsp_la_LDFLAGS = -no-undefined -version-info @SPEEXDSP_LT_CURRENT@:@SPEEXDSP_LT_REVISION@:@SPEEXDSP_LT_AGE@ |
69 |
+-libspeexdsp_la_LIBADD = $(LIBM) |
70 |
++libspeexdsp_la_LIBADD = $(LIBM) $(FFT_LIBS) |
71 |
+ |
72 |
+ if BUILD_EXAMPLES |
73 |
+ noinst_PROGRAMS = testdenoise testecho testjitter testresample |
74 |
|
75 |
diff --git a/media-libs/speexdsp/metadata.xml b/media-libs/speexdsp/metadata.xml |
76 |
new file mode 100644 |
77 |
index 00000000000..425a1ca399e |
78 |
--- /dev/null |
79 |
+++ b/media-libs/speexdsp/metadata.xml |
80 |
@@ -0,0 +1,11 @@ |
81 |
+<?xml version="1.0" encoding="UTF-8"?> |
82 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
83 |
+<pkgmetadata> |
84 |
+ <maintainer type="project"> |
85 |
+ <email>sound@g.o</email> |
86 |
+ <name>Gentoo Sound project</name> |
87 |
+ </maintainer> |
88 |
+ <upstream> |
89 |
+ <remote-id type="cpe">cpe:/a:xiph:speex</remote-id> |
90 |
+ </upstream> |
91 |
+</pkgmetadata> |
92 |
|
93 |
diff --git a/media-libs/speexdsp/speexdsp-1.2_rc3.ebuild b/media-libs/speexdsp/speexdsp-1.2_rc3.ebuild |
94 |
new file mode 100644 |
95 |
index 00000000000..b946550540a |
96 |
--- /dev/null |
97 |
+++ b/media-libs/speexdsp/speexdsp-1.2_rc3.ebuild |
98 |
@@ -0,0 +1,54 @@ |
99 |
+# Copyright 1999-2017 Gentoo Foundation |
100 |
+# Distributed under the terms of the GNU General Public License v2 |
101 |
+ |
102 |
+EAPI=6 |
103 |
+inherit autotools flag-o-matic multilib-minimal |
104 |
+ |
105 |
+MY_P=${P/_} |
106 |
+MY_P=${MY_P/_p/.} |
107 |
+ |
108 |
+DESCRIPTION="Audio compression format designed for speech -- DSP" |
109 |
+HOMEPAGE="http://www.speex.org/" |
110 |
+SRC_URI="http://downloads.xiph.org/releases/speex/${MY_P}.tar.gz" |
111 |
+ |
112 |
+LICENSE="BSD" |
113 |
+SLOT="0" |
114 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
115 |
+IUSE="cpu_flags_x86_sse cpu_flags_x86_sse2 neon static-libs" |
116 |
+ |
117 |
+RDEPEND="!<media-libs/speex-1.2.0" |
118 |
+DEPEND="${RDEPEND} |
119 |
+ virtual/pkgconfig" |
120 |
+ |
121 |
+S=${WORKDIR}/${MY_P} |
122 |
+ |
123 |
+PATCHES=( "${FILESDIR}/${P}-configure.patch" ) |
124 |
+ |
125 |
+src_prepare() { |
126 |
+ default |
127 |
+ |
128 |
+ sed -i \ |
129 |
+ -e 's:noinst_PROGRAMS:check_PROGRAMS:' \ |
130 |
+ libspeexdsp/Makefile.am || die |
131 |
+ |
132 |
+ eautoreconf |
133 |
+} |
134 |
+ |
135 |
+multilib_src_configure() { |
136 |
+ append-lfs-flags |
137 |
+ |
138 |
+ # Can also be configured with one of: |
139 |
+ # --enable-fixed-point (no floating point) |
140 |
+ # --with-fft=proprietary-intel-mkl (mkl) |
141 |
+ # --with-fft=gpl-fftw3 (fftw) |
142 |
+ ECONF_SOURCE="${S}" econf \ |
143 |
+ $(use_enable static-libs static) \ |
144 |
+ $(use_enable cpu_flags_x86_sse sse) \ |
145 |
+ $(use_enable cpu_flags_x86_sse2 sse2) \ |
146 |
+ $(use_enable neon) |
147 |
+} |
148 |
+ |
149 |
+multilib_src_install_all() { |
150 |
+ default |
151 |
+ find "${D}" -name '*.la' -delete || die |
152 |
+} |