summaryrefslogtreecommitdiff
path: root/package/audio/speex
diff options
context:
space:
mode:
authorDaniel Laird <danieljlaird@hotmail.com>2008-09-05 12:06:50 +0000
committerDaniel Laird <danieljlaird@hotmail.com>2008-09-05 12:06:50 +0000
commit76235a15b37bae9e3c83bc20e9afd49a66e33455 (patch)
tree82f014617a2c1149231675eddd72714d6f7bd659 /package/audio/speex
parent03e3886c012c889611b77df85c5491989c4ebc31 (diff)
audio: Move all audio packages into audio subdir
Moved all audio packages into a subdir called audio. I then created a Config.in and made sure that a audio.mk existed. Daniel Laird
Diffstat (limited to 'package/audio/speex')
-rw-r--r--package/audio/speex/Config.in25
-rw-r--r--package/audio/speex/speex.mk37
2 files changed, 62 insertions, 0 deletions
diff --git a/package/audio/speex/Config.in b/package/audio/speex/Config.in
new file mode 100644
index 000000000..424a83001
--- /dev/null
+++ b/package/audio/speex/Config.in
@@ -0,0 +1,25 @@
+config BR2_PACKAGE_SPEEX
+ bool "speex"
+ select BR2_PACKAGE_LIBOGG
+ help
+ Speex is an Open Source/Free Software patent-free
+ audio compression format designed for speech.
+ It can be used for Voice over IP
+
+ http://www.speex.org/
+
+config BR2_PACKAGE_SPEEX_ARM_GENERIC
+ bool
+ default y
+ depends on BR2_PACKAGE_SPEEX && (BR2_generic_arm || BR2_arm610 || BR2_arm710)
+
+config BR2_PACKAGE_SPEEX_ARM4
+ bool
+ default y
+ depends on BR2_PACKAGE_SPEEX && (BR2_arm7tdmi || BR2_arm720t || BR2_arm920t || BR2_arm922t || BR2_sa110 || BR2_sa1100)
+
+config BR2_PACKAGE_SPEEX_ARM5E
+ default y
+ bool
+ depends on BR2_PACKAGE_SPEEX && BR2_arm && !(BR2_PACKAGE_SPEEX_ARM_GENERIC || BR2_PACKAGE_SPEEX_ARM4)
+
diff --git a/package/audio/speex/speex.mk b/package/audio/speex/speex.mk
new file mode 100644
index 000000000..0ffd20325
--- /dev/null
+++ b/package/audio/speex/speex.mk
@@ -0,0 +1,37 @@
+#############################################################
+#
+# speex
+#
+#############################################################
+SPEEX_VERSION=1.2rc1
+SPEEX_SOURCE=speex-$(SPEEX_VERSION).tar.gz
+SPEEX_SITE=http://downloads.us.xiph.org/releases/speex
+SPEEX_AUTORECONF = NO
+SPEEX_INSTALL_STAGING = YES
+SPEEX_INSTALL_TARGET = YES
+SPEEX_INSTALL_TARGET_OPT:=DESTDIR=$(TARGET_DIR) install-strip
+SPEEX_DEPENDENCIES = libogg
+SPEEX_CONF_OPT = --with-ogg-libraries=$(STAGING_DIR)/usr/lib \
+ --with-ogg-includes=$(STAGING_DIR)/usr/include \
+ --enable-fixed-point $(DISABLE_NLS)
+
+ifeq ($(BR2_PACKAGE_SPEEX_ARM4),y)
+ SPEEX_CONF_OPT += --enable-arm4-asm
+endif
+
+ifeq ($(BR2_PACKAGE_SPEEX_ARM5E),y)
+ SPEEX_CONF_OPT += --enable-arm5e-asm
+endif
+
+$(eval $(call AUTOTARGETS,package,speex))
+
+$(SPEEX_TARGET_BUILD): $(SPEEX_TARGET_CONFIGURE)
+ $(call MESSAGE,"Building")
+ $(SED) 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' $(SPEEX_DIR)/libtool
+ $(SED) 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' $(SPEEX_DIR)/libtool
+ $($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPT) -C $(@D)/$($(PKG)_SUBDIR)
+ $(Q)touch $@
+
+$(SPEEX_HOOK_POST_INSTALL): $(SPEEX_TARGET_INSTALL_TARGET)
+ rm -rf $(TARGET_DIR)/usr/share/doc/speex $(TARGET_DIR)/usr/share/aclocal
+ touch $@