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.

48 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.2
  8. PKG_RELEASE:=1
  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:=62ff966c30c545450eefef49cf2774a1a281f25fb385c5b2ee4a603700ddf98a
  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_PARALLEL:=1
  18. PKG_BUILD_DEPENDS:=libebml
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. define Package/libmatroska
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=a C++ libary to parse Matroska files (.mkv and .mka)
  25. URL:=https://github.com/Matroska-Org/libmatroska
  26. DEPENDS:=+libstdcpp
  27. BUILDONLY:=1
  28. endef
  29. define Package/libmatroska/description
  30. a C++ libary to parse and create Matroska files
  31. endef
  32. CMAKE_OPTIONS += \
  33. -DDISABLE_PKGCONFIG=OFF \
  34. -DDISABLE_CMAKE_CONFIG=OFF
  35. TARGET_CFLAGS += -flto
  36. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  37. $(eval $(call BuildPackage,libmatroska))