summaryrefslogtreecommitdiff
path: root/media-libs/speexdsp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/speexdsp
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/speexdsp')
-rw-r--r--media-libs/speexdsp/Manifest4
-rw-r--r--media-libs/speexdsp/files/speexdsp-1.2_rc3-configure.patch44
-rw-r--r--media-libs/speexdsp/metadata.xml11
-rw-r--r--media-libs/speexdsp/speexdsp-1.2_rc3.ebuild54
4 files changed, 113 insertions, 0 deletions
diff --git a/media-libs/speexdsp/Manifest b/media-libs/speexdsp/Manifest
new file mode 100644
index 000000000000..28deb0549d62
--- /dev/null
+++ b/media-libs/speexdsp/Manifest
@@ -0,0 +1,4 @@
+AUX speexdsp-1.2_rc3-configure.patch 1506 SHA256 4d5cae041083c7db8b110461e189338de7f64c46fb93f7af6580720055fe4794 SHA512 95a95e5ca052b6ab3091ce9c461e7356f029e65b47a0a0f291448325acceb23c5cb12d81dbdecec13945b70fa8161e479bc6767de484c2c2f13a5299a3b9304c WHIRLPOOL f9c43092c1e1c5b70b23203d62f778c3099b169630393fe95fab37a7045046620d1e035ce565811924aaded15d6426523db6972acf114760139ea0643555154a
+DIST speexdsp-1.2rc3.tar.gz 901771 SHA256 4ae688600039f5d224bdf2e222d2fbde65608447e4c2f681585e4dca6df692f1 SHA512 29dfa8345df025eeb076561648a9b5c0485692be699b6da3c2a3734b4329187a1c2eb181252f4df12b21f1309ecdf59797437dfb123d160fd723491ab216e858 WHIRLPOOL 74e09df1819f0a857934f7821d1176c2ed410d231e51eaba5042c2e703f800ada54a648ba3400ea5b078b2a36c11c7f367322ec48fe09233d046fdfcb6b62930
+EBUILD speexdsp-1.2_rc3.ebuild 1422 SHA256 2529d951e46a40ccaa3ad44a385fcca5d35550548dc1c910f31cc96152fad439 SHA512 16cb6141e84d413af8be8652c60398612bead1a95f9bfb6e26c2ec9260885a2bd9db910a35ff34123f6095c6502946859623169e364daf86935530b972e98f53 WHIRLPOOL d5050654b748970612b6d652ff3b924c6ade1e699310265b73245b9ce9432527d05dcb6dab217a2ec4d049ed62ab1825dde43f87666a13ed6c0f8f29d0f580a8
+MISC metadata.xml 342 SHA256 f57c2a4d7201bd6830885fda634dcedad2498c65178bb7ef611859264d1b8825 SHA512 32081e424d3f4ad3fd0ef4979c339d1139cb2298e6703210ff741b77a8b3bf2e1d4b550b0d76a1bd0c4dc5ac465b3ebdd1fe86da45d46586cd3560261f73c457 WHIRLPOOL 704764e0d98be9f666eb3de31b49bf0098875a60f18bdc1c7a0e23789a39ecf12383814a8bdc501ed4c03b39866f3bd0078f4cfce0928a791ca1d6d30143ecbf
diff --git a/media-libs/speexdsp/files/speexdsp-1.2_rc3-configure.patch b/media-libs/speexdsp/files/speexdsp-1.2_rc3-configure.patch
new file mode 100644
index 000000000000..ae29da58438b
--- /dev/null
+++ b/media-libs/speexdsp/files/speexdsp-1.2_rc3-configure.patch
@@ -0,0 +1,44 @@
+diff -Naur speexdsp-1.2rc3.orig/configure.ac speexdsp-1.2rc3/configure.ac
+--- speexdsp-1.2rc3.orig/configure.ac 2016-12-12 20:04:48.710853453 -0800
++++ speexdsp-1.2rc3/configure.ac 2016-12-12 20:05:07.588052415 -0800
+@@ -151,10 +151,17 @@
+ AC_ARG_ENABLE(sse, [ --enable-sse Enable SSE support], [
+ if test "x$enableval" != xno; then
+ has_sse=yes
+-has_sse2=yes
+-CFLAGS="$CFLAGS -O3 -msse -msse2"
++CFLAGS="$CFLAGS -msse"
+ else
+ has_sse=no
++fi
++])
++
++AC_ARG_ENABLE(sse2, [ --enable-sse2 Enable SSE2 support], [
++if test "x$enableval" != xno; then
++has_sse2=yes
++CFLAGS="$CFLAGS -msse2"
++else
+ has_sse2=no
+ fi
+ ])
+@@ -162,7 +169,7 @@
+ AC_ARG_ENABLE(neon, [ --enable-neon Enable NEON support], [
+ if test "x$enableval" != xno; then
+ has_neon=yes
+-CFLAGS="$CFLAGS -O3 -march=armv7-a -mfpu=neon"
++CFLAGS="$CFLAGS -mfpu=neon"
+ else
+ has_neon=no
+ fi
+diff -Naur speexdsp-1.2rc3.orig/libspeexdsp/Makefile.am speexdsp-1.2rc3/libspeexdsp/Makefile.am
+--- speexdsp-1.2rc3.orig/libspeexdsp/Makefile.am 2016-12-12 20:04:48.690853242 -0800
++++ speexdsp-1.2rc3/libspeexdsp/Makefile.am 2016-12-12 20:08:27.740161974 -0800
+@@ -29,7 +29,7 @@
+ pseudofloat.h smallft.h vorbis_psy.h resample_sse.h resample_neon.h
+
+ libspeexdsp_la_LDFLAGS = -no-undefined -version-info @SPEEXDSP_LT_CURRENT@:@SPEEXDSP_LT_REVISION@:@SPEEXDSP_LT_AGE@
+-libspeexdsp_la_LIBADD = $(LIBM)
++libspeexdsp_la_LIBADD = $(LIBM) $(FFT_LIBS)
+
+ if BUILD_EXAMPLES
+ noinst_PROGRAMS = testdenoise testecho testjitter testresample
diff --git a/media-libs/speexdsp/metadata.xml b/media-libs/speexdsp/metadata.xml
new file mode 100644
index 000000000000..425a1ca399e2
--- /dev/null
+++ b/media-libs/speexdsp/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sound@gentoo.org</email>
+ <name>Gentoo Sound project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="cpe">cpe:/a:xiph:speex</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-libs/speexdsp/speexdsp-1.2_rc3.ebuild b/media-libs/speexdsp/speexdsp-1.2_rc3.ebuild
new file mode 100644
index 000000000000..ebc776d5b2d0
--- /dev/null
+++ b/media-libs/speexdsp/speexdsp-1.2_rc3.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools flag-o-matic multilib-minimal
+
+MY_P=${P/_}
+MY_P=${MY_P/_p/.}
+
+DESCRIPTION="Audio compression format designed for speech -- DSP"
+HOMEPAGE="http://www.speex.org/"
+SRC_URI="http://downloads.xiph.org/releases/speex/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+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"
+IUSE="cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_arm_neon static-libs"
+
+RDEPEND="!<media-libs/speex-1.2.0"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=( "${FILESDIR}/${P}-configure.patch" )
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e 's:noinst_PROGRAMS:check_PROGRAMS:' \
+ libspeexdsp/Makefile.am || die
+
+ eautoreconf
+}
+
+multilib_src_configure() {
+ append-lfs-flags
+
+ # Can also be configured with one of:
+ # --enable-fixed-point (no floating point)
+ # --with-fft=proprietary-intel-mkl (mkl)
+ # --with-fft=gpl-fftw3 (fftw)
+ ECONF_SOURCE="${S}" econf \
+ $(use_enable static-libs static) \
+ $(use_enable cpu_flags_x86_sse sse) \
+ $(use_enable cpu_flags_x86_sse2 sse2) \
+ $(use_enable cpu_flags_arm_neon neon)
+}
+
+multilib_src_install_all() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}