diff --git a/packages/audio/speex/build b/packages/audio/speex/build new file mode 100755 index 0000000000..75b54264ba --- /dev/null +++ b/packages/audio/speex/build @@ -0,0 +1,21 @@ +#!/bin/sh + +. config/options $1 + +cd $PKG_BUILD +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-static \ + --enable-shared \ + --with-ogg=$SYSROOT_PREFIX/usr \ + --enable-fixed-point \ + --disable-oggtest \ + --disable-float-api \ + --disable-vbr \ + +make + +$MAKEINSTALL \ No newline at end of file diff --git a/packages/audio/speex/install b/packages/audio/speex/install new file mode 100755 index 0000000000..3b443c6370 --- /dev/null +++ b/packages/audio/speex/install @@ -0,0 +1,6 @@ +#!/bin/sh + +. config/options $1 + +mkdir -p $INSTALL/usr/lib + cp -P $PKG_BUILD/libspeex/.libs/libspeexdsp.so* $INSTALL/usr/lib diff --git a/packages/audio/speex/meta b/packages/audio/speex/meta new file mode 100644 index 0000000000..cece44002d --- /dev/null +++ b/packages/audio/speex/meta @@ -0,0 +1,14 @@ +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="libogg" +PKG_BUILD_DEPENDS="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" diff --git a/packages/audio/speex/patches/001-remove_host_includes.diff b/packages/audio/speex/patches/001-remove_host_includes.diff new file mode 100644 index 0000000000..4e3fe65f26 --- /dev/null +++ b/packages/audio/speex/patches/001-remove_host_includes.diff @@ -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/10_disable-utils.diff b/packages/audio/speex/patches/10_disable-utils.diff new file mode 100644 index 0000000000..82ff96729f --- /dev/null +++ b/packages/audio/speex/patches/10_disable-utils.diff @@ -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