#
|
|
# 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.6.3
|
|
PKG_RELEASE:=$(AUTORELEASE)
|
|
|
|
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:=0c8c875ae26ac69a722f7fd0f4a4fecb4fdff681f2a165f09c06a40cbf1d0de6
|
|
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_DEPENDS:=libebml
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../../devel/ninja/ninja-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 += \
|
|
-DCMAKE_LINK_WHAT_YOU_USE=ON \
|
|
-DDISABLE_PKGCONFIG=OFF \
|
|
-DDISABLE_CMAKE_CONFIG=OFF
|
|
|
|
TARGET_LDFLAGS += -Wl,--gc-sections
|
|
|
|
$(eval $(call BuildPackage,libmatroska))
|