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.

56 lines
1.5 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=opusfile
  7. PKG_VERSION:=0.12
  8. PKG_RELEASE:=2
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=http://downloads.xiph.org/releases/opus/
  11. PKG_HASH:=118d8601c12dd6a44f52423e68ca9083cc9f2bfe72da7a8c1acb22a80ae3550b
  12. PKG_MAINTAINER:=Eduardo Abinader <eduardoabinader@gmail.com>
  13. PKG_LICENSE:=BSD-2-Clause
  14. PKG_LICENSE_FILES:=COPYING
  15. PKG_FIXUP:=autoreconf
  16. PKG_INSTALL:=1
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libopusfile
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. DEPENDS:=+libogg +libopus +libopenssl
  23. TITLE:=OPUS file library
  24. URL:=http://opus-codec.org/
  25. endef
  26. define Package/libopusfile/description
  27. The opusfile library provides seeking, decode, and playback of Opus streams in the Ogg container (.opus files)
  28. endef
  29. CONFIGURE_ARGS += \
  30. --without-flac \
  31. define Build/InstallDev
  32. $(INSTALL_DIR) $(1)/usr/include
  33. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  34. $(INSTALL_DIR) $(1)/usr/lib
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  36. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/opusfile.pc $(1)/usr/lib/pkgconfig/
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/opusurl.pc $(1)/usr/lib/pkgconfig/
  39. endef
  40. define Package/libopusfile/install
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
  43. endef
  44. $(eval $(call BuildPackage,libopusfile))