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.

57 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2014-2015 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
  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:=c5a8cf7c0b066759542bc4ca46817ac6
  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 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. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)/usr/include
  35. $(CP) $(PKG_INSTALL_DIR)/usr/include/opus $(1)/usr/include/
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopus.so* $(1)/usr/lib/
  38. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/opus.pc $(1)/usr/lib/pkgconfig/
  40. endef
  41. define Package/libopus/install
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopus.so.* $(1)/usr/lib/
  44. endef
  45. $(eval $(call BuildPackage,libopus))