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.

49 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:=libebml
  7. PKG_VERSION:=1.3.10
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://codeload.github.com/Matroska-Org/libebml/tar.gz/release-$(PKG_VERSION)?
  11. PKG_HASH:=2562bb9bc3248e956a6ed1148eafe4d7d68759257133083c212d14faa8709d1e
  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. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/cmake.mk
  20. define Package/libebml
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=a C++ libary to parse EBML files
  24. URL:=https://github.com/Matroska-Org/libebml
  25. DEPENDS:=+libstdcpp
  26. BUILDONLY:=1
  27. endef
  28. define Package/libebml/description
  29. a C++ libary to parse EBML files
  30. Specifications may be rendered at http://matroska-org.github.io/libebml/
  31. endef
  32. CMAKE_OPTIONS += \
  33. -DDISABLE_PKGCONFIG=OFF \
  34. -DDISABLE_CMAKE_CONFIG=OFF \
  35. -DENABLE_WIN32_IO=OFF
  36. TARGET_CFLAGS += -flto
  37. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  38. $(eval $(call BuildPackage,libebml))