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.

69 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2014-2016 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:=opus
  9. PKG_VERSION:=1.1.4
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://downloads.xiph.org/releases/opus/
  13. PKG_MD5SUM:=a2c09d995d0885665ff83b5df2505a5f
  14. PKG_HASH:=9122b6b380081dd2665189f97bfd777f04f92dc3ab6698eea1dbb27ad59d8692
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_MAINTAINER:=Ted Hess <thess@kitchensync.net> Ian Leonard <antonlacon@gmail.com>
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libopus
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=OPUS Audio Codec
  24. URL:=http://opus-codec.org/
  25. endef
  26. define Package/libopus/description
  27. Opus is a totally open, royalty-free, highly versatile audio codec. Opus is
  28. unmatched for interactive speech and music transmission over the Internet, but
  29. is also intended for storage and streaming applications.
  30. endef
  31. CONFIGURE_ARGS+= \
  32. --disable-doc \
  33. --disable-extra-programs
  34. ifeq ($(CONFIG_SOFT_FLOAT),y)
  35. CONFIGURE_ARGS+= \
  36. --enable-fixed-point
  37. endif
  38. CPU_ASM_BLACKLIST:=xscale arm926ej-s
  39. ifneq ($(findstring $(call qstrip,$(CONFIG_CPU_TYPE)),$(CPU_ASM_BLACKLIST)),)
  40. CONFIGURE_ARGS+= --disable-asm
  41. endif
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)/usr/include
  44. $(CP) $(PKG_INSTALL_DIR)/usr/include/opus $(1)/usr/include/
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopus.so* $(1)/usr/lib/
  47. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/opus.pc $(1)/usr/lib/pkgconfig/
  49. endef
  50. define Package/libopus/install
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopus.so.* $(1)/usr/lib/
  53. endef
  54. $(eval $(call BuildPackage,libopus))