You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2006-2017 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=speex
  9. PKG_VERSION:=1.2.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://downloads.us.xiph.org/releases/speex/
  13. PKG_HASH:=eaae8af0ac742dc7d542c9439ac72f1f385ce838392dc849cae4536af9210094
  14. PKG_FIXUP:=autoreconf
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/libspeex
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=Open source speech compression codec library
  21. URL:=http://www.speex.org/
  22. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  23. endef
  24. define Package/libspeex/description
  25. Open source patent-free speech compression codec library.
  26. Speex is an Open Source/Free Software patent-free audio compression
  27. format designed for speech. The Speex Project aims to lower the
  28. barrier of entry for voice applications by providing a free
  29. alternative to expensive proprietary speech codecs. Moreover, Speex
  30. is well-adapted to Internet applications and provides useful features
  31. that are not present in most other codecs.
  32. This package contains the shared codec library, needed by other programs.
  33. endef
  34. define Build/InstallDev
  35. $(INSTALL_DIR) $(1)/usr/include
  36. $(CP) $(PKG_INSTALL_DIR)/usr/include/speex $(1)/usr/include/
  37. $(INSTALL_DIR) $(1)/usr/lib
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.{a,so*} $(1)/usr/lib/
  39. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/speex.pc $(1)/usr/lib/pkgconfig/
  41. endef
  42. define Package/libspeex/install
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.so.* $(1)/usr/lib/
  45. endef
  46. TARGET_CFLAGS += $(FPIC)
  47. CONFIGURE_ARGS += \
  48. --enable-shared \
  49. --enable-static \
  50. --disable-binaries \
  51. $(if $(CONFIG_SOFT_FLOAT),--enable-fixed-point --disable-float-api --disable-vbr)
  52. $(eval $(call BuildPackage,libspeex))