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.

62 lines
1.5 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:=1
  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. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include
  39. $(CP) $(PKG_INSTALL_DIR)/usr/include/opus $(1)/usr/include/
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopus.so* $(1)/usr/lib/
  42. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/opus.pc $(1)/usr/lib/pkgconfig/
  44. endef
  45. define Package/libopus/install
  46. $(INSTALL_DIR) $(1)/usr/lib
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopus.so.* $(1)/usr/lib/
  48. endef
  49. $(eval $(call BuildPackage,libopus))