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:=libebml
  7. PKG_VERSION:=1.4.2
  8. PKG_RELEASE:=$(AUTORELEASE)
  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:=66486742fd4f443553ad1917505208404c8c4240c0ab26cedaf41d9476efc665
  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. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. define Package/libebml
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=a C++ libary to parse EBML files
  23. URL:=https://github.com/Matroska-Org/libebml
  24. DEPENDS:=+libstdcpp
  25. BUILDONLY:=1
  26. endef
  27. define Package/libebml/description
  28. a C++ libary to parse EBML files
  29. Specifications may be rendered at http://matroska-org.github.io/libebml/
  30. endef
  31. CMAKE_OPTIONS += \
  32. -DCMAKE_LINK_WHAT_YOU_USE=ON \
  33. -DDISABLE_PKGCONFIG=OFF \
  34. -DDISABLE_CMAKE_CONFIG=OFF \
  35. -DENABLE_WIN32_IO=OFF
  36. TARGET_LDFLAGS += -Wl,--gc-sections
  37. $(eval $(call BuildPackage,libebml))