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.

105 lines
3.1 KiB

  1. #
  2. # Copyright (C) 2006-2010 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.2rc1
  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_MD5SUM:=c4438b22c08e5811ff10e2b06ee9b9ae
  14. PKG_FIXUP:=autoreconf
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/libspeex
  17. SECTION:=libs
  18. CATEGORY:=Libraries
  19. TITLE:=Open source speech compression codec library
  20. URL:=http://www.speex.org/
  21. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  22. endef
  23. define Package/libspeexdsp
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. TITLE:=Open source speech compression codec library output to DSP
  27. URL:=http://www.speex.org/
  28. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  29. endef
  30. define Package/libspeex/description
  31. Open source patent-free speech compression codec library.
  32. Speex is an Open Source/Free Software patent-free audio compression
  33. format designed for speech. The Speex Project aims to lower the
  34. barrier of entry for voice applications by providing a free
  35. alternative to expensive proprietary speech codecs. Moreover, Speex
  36. is well-adapted to Internet applications and provides useful features
  37. that are not present in most other codecs.
  38. This package contains the shared codec library, needed by other programs.
  39. endef
  40. TARGET_CFLAGS += $(FPIC)
  41. define Package/libspeexdsp/description
  42. Open source patent-free speech compression codec library.
  43. Speex is an Open Source/Free Software patent-free audio compression
  44. format designed for speech. The Speex Project aims to lower the
  45. barrier of entry for voice applications by providing a free
  46. alternative to expensive proprietary speech codecs. Moreover, Speex
  47. is well-adapted to Internet applications and provides useful features
  48. that are not present in most other codecs.
  49. This package contains the shared dsp library, needed by other programs.
  50. endef
  51. define Build/Configure
  52. $(call Build/Configure/Default, \
  53. --enable-shared \
  54. --enable-static \
  55. --enable-fixed-point \
  56. --disable-oggtest \
  57. --disable-float-api \
  58. --disable-vbr \
  59. --with-ogg=$(STAGING_DIR)/usr \
  60. )
  61. endef
  62. define Build/Compile
  63. $(MAKE) -C $(PKG_BUILD_DIR) \
  64. DESTDIR="$(PKG_INSTALL_DIR)" \
  65. bin_PROGRAMS="" \
  66. all install
  67. endef
  68. define Build/InstallDev
  69. $(INSTALL_DIR) $(1)/usr/include
  70. $(CP) $(PKG_INSTALL_DIR)/usr/include/speex $(1)/usr/include/
  71. $(INSTALL_DIR) $(1)/usr/lib
  72. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.{a,so*} $(1)/usr/lib/
  73. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeexdsp.{a,so*} $(1)/usr/lib/
  74. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  75. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/speex.pc $(1)/usr/lib/pkgconfig/
  76. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/speexdsp.pc $(1)/usr/lib/pkgconfig/
  77. endef
  78. define Package/libspeex/install
  79. $(INSTALL_DIR) $(1)/usr/lib
  80. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.so.* $(1)/usr/lib/
  81. endef
  82. define Package/libspeexdsp/install
  83. $(INSTALL_DIR) $(1)/usr/lib
  84. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeexdsp.so.* $(1)/usr/lib/
  85. endef
  86. $(eval $(call BuildPackage,libspeex))
  87. $(eval $(call BuildPackage,libspeexdsp))