From f8efe83c2d3d816f24af6ae5ce6584298e90263f Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Tue, 7 Jan 2014 19:12:38 +0200 Subject: [PATCH] re-add package: 'speex' for pulseaudio. now built as static lib --- packages/audio/speex/package.mk | 48 +++++++++++++++++++ ...peex-1.2rc1-001-remove_host_includes.patch | 24 ++++++++++ .../speex-1.2rc1-010_disable-utils.patch | 12 +++++ .../speex/patches/speex-automake-1.13.patch | 12 +++++ 4 files changed, 96 insertions(+) create mode 100644 packages/audio/speex/package.mk create mode 100644 packages/audio/speex/patches/speex-1.2rc1-001-remove_host_includes.patch create mode 100644 packages/audio/speex/patches/speex-1.2rc1-010_disable-utils.patch create mode 100644 packages/audio/speex/patches/speex-automake-1.13.patch diff --git a/packages/audio/speex/package.mk b/packages/audio/speex/package.mk new file mode 100644 index 0000000000..4b5b25f80b --- /dev/null +++ b/packages/audio/speex/package.mk @@ -0,0 +1,48 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="speex" +PKG_VERSION="1.2rc1" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="BSD" +PKG_SITE="http://www.speex.org" +PKG_URL="http://downloads.xiph.org/releases/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.gz" +PKG_DEPENDS_TARGET="libogg" +PKG_BUILD_DEPENDS_TARGET="toolchain libogg" +PKG_PRIORITY="optional" +PKG_SECTION="audio" +PKG_SHORTDESC="speex: A free Audio Codec optimized for speech" +PKG_LONGDESC="Speex is a patent-free compression format designed especially for speech. It is specialized for voice communications at low bit-rates in the 2-45 kbps range. Possible applications include Voice over IP (VoIP), Internet audio streaming, audio books, and archiving of speech data (e.g. voice mail)." + +PKG_IS_ADDON="no" +PKG_AUTORECONF="yes" + +# package specific configure options +PKG_CONFIGURE_OPTS_TARGET="--disable-shared --enable-static \ + --with-ogg=$SYSROOT_PREFIX/usr \ + --enable-fixed-point \ + --disable-oggtest \ + --disable-float-api \ + --disable-vbr" + +post_makeinstall_target() { + rm -rf $INSTALL/usr/bin +} diff --git a/packages/audio/speex/patches/speex-1.2rc1-001-remove_host_includes.patch b/packages/audio/speex/patches/speex-1.2rc1-001-remove_host_includes.patch new file mode 100644 index 0000000000..4e3fe65f26 --- /dev/null +++ b/packages/audio/speex/patches/speex-1.2rc1-001-remove_host_includes.patch @@ -0,0 +1,24 @@ +diff -Naur speex-1.2rc1/libspeex/Makefile.am speex-1.2rc1.patch/libspeex/Makefile.am +--- speex-1.2rc1/libspeex/Makefile.am 2008-06-04 09:31:35.000000000 +0200 ++++ speex-1.2rc1.patch/libspeex/Makefile.am 2009-03-10 20:40:51.000000000 +0100 +@@ -4,7 +4,7 @@ + + EXTRA_DIST=echo_diagnostic.m + +-INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_builddir) @OGG_CFLAGS@ @FFT_CFLAGS@ ++INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_builddir) + + lib_LTLIBRARIES = libspeex.la libspeexdsp.la + +diff -Naur speex-1.2rc1/libspeex/Makefile.in speex-1.2rc1.patch/libspeex/Makefile.in +--- speex-1.2rc1/libspeex/Makefile.in 2008-07-21 04:17:19.000000000 +0200 ++++ speex-1.2rc1.patch/libspeex/Makefile.in 2009-03-10 20:41:25.000000000 +0100 +@@ -277,7 +277,7 @@ + sysconfdir = @sysconfdir@ + target_alias = @target_alias@ + EXTRA_DIST = echo_diagnostic.m +-INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_builddir) @OGG_CFLAGS@ @FFT_CFLAGS@ ++INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_builddir) + lib_LTLIBRARIES = libspeex.la libspeexdsp.la + + # Sources for compilation in the library diff --git a/packages/audio/speex/patches/speex-1.2rc1-010_disable-utils.patch b/packages/audio/speex/patches/speex-1.2rc1-010_disable-utils.patch new file mode 100644 index 0000000000..82ff96729f --- /dev/null +++ b/packages/audio/speex/patches/speex-1.2rc1-010_disable-utils.patch @@ -0,0 +1,12 @@ +diff -Naur speex-1.2rc1/Makefile.in speex-1.2rc1a/Makefile.in +--- speex-1.2rc1/Makefile.in 2008-07-21 04:17:19.000000000 +0200 ++++ speex-1.2rc1a/Makefile.in 2010-05-18 14:31:25.229200674 +0200 +@@ -213,7 +213,7 @@ + EXTRA_DIST = Speex.spec Speex.spec.in Speex.kdevelop speex.m4 speex.pc.in README.blackfin README.symbian README.TI-DSP + + #Fools KDevelop into including all files +-SUBDIRS = libspeex include @src@ doc win32 symbian ti ++SUBDIRS = libspeex include doc win32 symbian ti + DIST_SUBDIRS = libspeex include src doc win32 symbian ti + all: config.h + $(MAKE) $(AM_MAKEFLAGS) all-recursive diff --git a/packages/audio/speex/patches/speex-automake-1.13.patch b/packages/audio/speex/patches/speex-automake-1.13.patch new file mode 100644 index 0000000000..3eed654271 --- /dev/null +++ b/packages/audio/speex/patches/speex-automake-1.13.patch @@ -0,0 +1,12 @@ +diff -Naur speex-1.2rc1/configure.ac speex-1.2rc1.patch/configure.ac +--- speex-1.2rc1/configure.ac 2008-07-21 04:17:08.000000000 +0200 ++++ speex-1.2rc1.patch/configure.ac 2013-02-01 16:50:06.747570221 +0100 +@@ -2,7 +2,7 @@ + + AC_INIT(libspeex/speex.c) + +-AM_CONFIG_HEADER([config.h]) ++AC_CONFIG_HEADERS([config.h]) + + SPEEX_MAJOR_VERSION=1 + SPEEX_MINOR_VERSION=1