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:=speexdsp
  9. PKG_VERSION:=1.2.0
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://downloads.us.xiph.org/releases/speex/
  13. PKG_HASH:=682042fc6f9bee6294ec453f470dadc26c6ff29b9c9e9ad2ffc1f4312fd64771
  14. PKG_FIXUP:=autoreconf
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/libspeexdsp
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=Open source speech compression codec library output to DSP
  21. URL:=http://www.speex.org/
  22. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  23. endef
  24. define Package/libspeexdsp/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 dsp 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/libspeexdsp.{a,so*} $(1)/usr/lib/
  39. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/speexdsp.pc $(1)/usr/lib/pkgconfig/
  41. endef
  42. define Package/libspeexdsp/install
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeexdsp.so.* $(1)/usr/lib/
  45. endef
  46. TARGET_CFLAGS += $(FPIC)
  47. CONFIGURE_ARGS += \
  48. --enable-shared \
  49. --enable-static \
  50. --disable-examples \
  51. $(if $(CONFIG_SOFT_FLOAT),--enable-fixed-point --disable-float-api)
  52. $(eval $(call BuildPackage,libspeexdsp))