diff --git a/contrib/src/speex/0001-Add-disable-binaries-option-to-build-only-the-librar.patch b/contrib/src/speex/0001-Add-disable-binaries-option-to-build-only-the-librar.patch new file mode 100644 index 0000000000000000000000000000000000000000..7211e6cd8441152d91b2f1c3f4586fc8e697571c --- /dev/null +++ b/contrib/src/speex/0001-Add-disable-binaries-option-to-build-only-the-librar.patch @@ -0,0 +1,40 @@ +From 20bc88f0cda8325cf5d22ee470f7f93c87891a91 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= <funman@videolan.org> +Date: Sun, 8 Dec 2013 08:44:07 +0100 +Subject: [PATCH] Add --disable-binaries option to build only the library + +--- + configure.ac | 10 ++++++++-- + 1 file changed, 8 insertions(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 07ebff2..01dbfba 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -109,7 +109,13 @@ AC_MSG_RESULT($has_visibility) + + AC_CHECK_HEADERS(sys/soundcard.h sys/audioio.h) + +-XIPH_PATH_OGG([src="src"], [src=""]) ++AC_ARG_ENABLE(binaries, [ --disable-binaries Do not build the encoder and decoder binaries, only the library]) ++if test "$enable_binaries" != no; then ++ XIPH_PATH_OGG([src="src"], [src=""]) ++else ++ src="" ++fi ++ + AC_SUBST(src) + + LT_LIB_M +@@ -339,7 +345,7 @@ AC_CONFIG_HEADERS([config.h]) + AC_OUTPUT + + +-if test "x$src" = "x"; then ++if test "x$src" = "x" -a "$enable_binaries" != no; then + echo "**IMPORTANT**" + echo "You don't seem to have the development package for libogg (libogg-devel) installed. Only the Speex library (libspeex) will be built (no encoder/decoder executable)" + echo "You can download libogg from http://downloads.xiph.org/releases/ogg/" +-- +1.8.3.2 + diff --git a/contrib/src/speex/rules.mak b/contrib/src/speex/rules.mak new file mode 100644 index 0000000000000000000000000000000000000000..ea9cbc4ae7201ac0142d8edcf8e2f6cac9e51343 --- /dev/null +++ b/contrib/src/speex/rules.mak @@ -0,0 +1,38 @@ +# speex + +SPEEX_VERSION := git +SPEEX_HASH := HEAD +SPEEX_GITURL := http://git.xiph.org/?p=speex.git;a=snapshot;h=$(SPEEX_HASH);sf=tgz + +PKGS += speex +ifeq ($(call need_pkg,"speex >= 1.0.5"),) +PKGS_FOUND += speex +endif + +$(TARBALLS)/speex-git.tar.gz: + $(call download,$(SPEEX_GITURL)) + +.sum-speex: speex-$(SPEEX_VERSION).tar.gz + $(warning $@ not implemented) + touch $@ + +speex: speex-$(SPEEX_VERSION).tar.gz .sum-speex + rm -Rf $@-git $@ + mkdir -p $@-git + $(ZCAT) "$<" | (cd $@-git && tar xv --strip-components=1) + $(APPLY) $(SRC)/speex/0001-Add-disable-binaries-option-to-build-only-the-librar.patch + $(MOVE) + +SPEEX_CONF := --disable-binaries +ifndef HAVE_FPU +SPEEX_CONF += --enable-fixed-point +ifeq ($(ARCH),arm) +SPEEX_CONF += --enable-arm5e-asm +endif +endif + +.speex: speex + mkdir -p $</m4 && $(RECONF) + cd $< && $(HOSTVARS) ./configure $(HOSTCONF) $(SPEEX_CONF) + cd $< && $(MAKE) install + touch $@