#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL)". You may
# only use this file in accordance with the terms of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright (c) 2015 Alexander Pyhalov
#

BUILD_BITS= 64
BUILD_STYLE= cmake
include ../../../make-rules/shared-macros.mk

COMPONENT_NAME=           libmatroska
COMPONENT_VERSION=        1.7.1
COMPONENT_REVISION=       1
COMPONENT_SUMMARY=        Matroska Video Container
COMPONENT_PROJECT_URL=    https://matroska.org/
COMPONENT_SRC=            $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=        $(COMPONENT_SRC).tar.xz
COMPONENT_ARCHIVE_HASH=   sha256:572a3033b8d93d48a6a858e514abce4b2f7a946fe1f02cbfeca39bfd703018b3
COMPONENT_ARCHIVE_URL=    https://dl.matroska.org/downloads/libmatroska/$(COMPONENT_ARCHIVE)
COMPONENT_FMRI=		      library/video/libmatroska
COMPONENT_CLASSIFICATION= System/Multimedia Libraries
COMPONENT_LICENSE=        LGPLv2.1
COMPONENT_LICENSE_FILE=   LICENSE.LGPL

TEST_TARGET= $(NO_TESTS)
include $(WS_MAKE_RULES)/common.mk

CMAKE_OPTIONS += -DCMAKE_BUILD_TYPE=Release
CMAKE_OPTIONS += -DBUILD_SHARED_LIBS:BOOL=ON
CMAKE_OPTIONS += -DBUILD_STATIC_LIBS:BOOL=OFF

# Auto-generated dependencies
REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
REQUIRED_PACKAGES += library/libebml
REQUIRED_PACKAGES += system/library