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.

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