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.

47 lines
1.2 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:=libmatroska
  7. PKG_VERSION:=1.6.3
  8. PKG_RELEASE:=$(AUTORELEASE)
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://codeload.github.com/Matroska-Org/libmatroska/tar.gz/release-$(PKG_VERSION)?
  11. PKG_HASH:=0c8c875ae26ac69a722f7fd0f4a4fecb4fdff681f2a165f09c06a40cbf1d0de6
  12. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-release-$(PKG_VERSION)
  13. PKG_MAINTAINER:=
  14. PKG_LICENSE:=LGPL-2.1-or-later
  15. PKG_LICENSE_FILES:=LICENSE.LGPL
  16. CMAKE_INSTALL:=1
  17. PKG_BUILD_DEPENDS:=libebml
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/cmake.mk
  20. define Package/libmatroska
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=a C++ libary to parse Matroska files (.mkv and .mka)
  24. URL:=https://github.com/Matroska-Org/libmatroska
  25. DEPENDS:=+libstdcpp
  26. BUILDONLY:=1
  27. endef
  28. define Package/libmatroska/description
  29. a C++ libary to parse and create Matroska files
  30. endef
  31. CMAKE_OPTIONS += \
  32. -DCMAKE_LINK_WHAT_YOU_USE=ON \
  33. -DDISABLE_PKGCONFIG=OFF \
  34. -DDISABLE_CMAKE_CONFIG=OFF
  35. TARGET_LDFLAGS += -Wl,--gc-sections
  36. $(eval $(call BuildPackage,libmatroska))