2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-11-28 01:42:43 +01:00
|
|
|
#
|
|
|
|
# libmatroska
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-11-28 01:42:43 +01:00
|
|
|
|
|
|
|
LIBMATROSKA_VERSION = 1.3.0
|
|
|
|
LIBMATROSKA_SOURCE = libmatroska-$(LIBMATROSKA_VERSION).tar.bz2
|
2014-07-31 10:46:58 +02:00
|
|
|
LIBMATROSKA_SITE = http://dl.matroska.org/downloads/libmatroska
|
2012-11-28 01:42:43 +01:00
|
|
|
LIBMATROSKA_INSTALL_STAGING = YES
|
|
|
|
LIBMATROSKA_LICENSE = LGPLv2.1+
|
|
|
|
LIBMATROSKA_LICENSE_FILES = LICENSE.LGPL
|
|
|
|
LIBMATROSKA_DEPENDENCIES = libebml
|
|
|
|
|
2014-09-06 16:10:27 +02:00
|
|
|
ifeq ($(BR2_PREFER_STATIC_LIB),y)
|
|
|
|
LIBMATROSKA_MAKE_TARGETS = staticlib
|
|
|
|
LIBMATROSKA_MAKE_INSTALL_TARGETS = install_staticlib install_headers
|
|
|
|
else
|
|
|
|
LIBMATROSKA_MAKE_TARGETS = staticlib sharedlib
|
|
|
|
LIBMATROSKA_MAKE_INSTALL_TARGETS = install_staticlib install_sharedlib install_headers
|
|
|
|
endif
|
|
|
|
|
2012-11-28 01:42:43 +01:00
|
|
|
define LIBMATROSKA_BUILD_CMDS
|
2014-09-06 16:10:27 +02:00
|
|
|
$(MAKE) -C $(@D)/make/linux CROSS="$(CCACHE) $(TARGET_CROSS)" \
|
|
|
|
$(LIBMATROSKA_MAKE_TARGETS)
|
2012-11-28 01:42:43 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBMATROSKA_INSTALL_STAGING_CMDS
|
2014-09-06 16:10:27 +02:00
|
|
|
$(MAKE) -C $(@D)/make/linux prefix=$(STAGING_DIR)/usr \
|
|
|
|
$(LIBMATROSKA_MAKE_INSTALL_TARGETS)
|
2012-11-28 01:42:43 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBMATROSKA_INSTALL_TARGET_CMDS
|
2014-09-06 16:10:27 +02:00
|
|
|
$(MAKE) -C $(@D)/make/linux prefix=$(TARGET_DIR)/usr \
|
|
|
|
$(LIBMATROSKA_MAKE_INSTALL_TARGETS)
|
2012-11-28 01:42:43 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|