libmatroska: add
authorRosen Penev <rosenp@gmail.com>
Sun, 17 May 2020 04:06:45 +0000 (21:06 -0700)
committerRosen Penev <rosenp@gmail.com>
Tue, 19 May 2020 03:23:01 +0000 (20:23 -0700)
Needed for gerbera's matroska support.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/libmatroska/Makefile [new file with mode: 0644]

diff --git a/libs/libmatroska/Makefile b/libs/libmatroska/Makefile
new file mode 100644 (file)
index 0000000..bb57203
--- /dev/null
@@ -0,0 +1,48 @@
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libmatroska
+PKG_VERSION:=1.5.2
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://codeload.github.com/Matroska-Org/libmatroska/tar.gz/release-$(PKG_VERSION)?
+PKG_HASH:=8d03020ca3a657fe8d1ff57209b4218b6001df2ecd11ae956b428de941f2811f
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-release-$(PKG_VERSION)
+
+PKG_MAINTAINER:=
+PKG_LICENSE:=LGPL-2.1-or-later
+PKG_LICENSE_FILES:=LICENSE.LGPL
+
+CMAKE_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
+PKG_BUILD_DEPENDS:=libebml
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/cmake.mk
+
+define Package/libmatroska
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=a C++ libary to parse Matroska files (.mkv and .mka)
+  URL:=https://github.com/Matroska-Org/libmatroska
+  DEPENDS:=+libstdcpp
+  BUILDONLY:=1
+endef
+
+define Package/libmatroska/description
+  a C++ libary to parse and create Matroska files
+endef
+
+CMAKE_OPTIONS += \
+       -DDISABLE_PKGCONFIG=OFF \
+       -DDISABLE_CMAKE_CONFIG=OFF
+
+TARGET_CFLAGS += -flto
+TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
+
+$(eval $(call BuildPackage,libmatroska))