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.

67 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. PKG_CPE_ID:=cpe:/a:xiph:speex
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/libspeex
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=Open source speech compression codec library
  22. URL:=http://www.speex.org/
  23. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  24. endef
  25. define Package/libspeex/description
  26. Open source patent-free speech compression codec library.
  27. Speex is an Open Source/Free Software patent-free audio compression
  28. format designed for speech. The Speex Project aims to lower the
  29. barrier of entry for voice applications by providing a free
  30. alternative to expensive proprietary speech codecs. Moreover, Speex
  31. is well-adapted to Internet applications and provides useful features
  32. that are not present in most other codecs.
  33. This package contains the shared codec library, needed by other programs.
  34. endef
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/include
  37. $(CP) $(PKG_INSTALL_DIR)/usr/include/speex $(1)/usr/include/
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.{a,so*} $(1)/usr/lib/
  40. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/speex.pc $(1)/usr/lib/pkgconfig/
  42. endef
  43. define Package/libspeex/install
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.so.* $(1)/usr/lib/
  46. endef
  47. TARGET_CFLAGS += $(FPIC)
  48. CONFIGURE_ARGS += \
  49. --enable-shared \
  50. --enable-static \
  51. --disable-binaries \
  52. $(if $(CONFIG_SOFT_FLOAT),--enable-fixed-point --disable-float-api --disable-vbr)
  53. $(eval $(call BuildPackage,libspeex))