2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-11-28 01:05:52 +01:00
|
|
|
#
|
|
|
|
# libebml
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-11-28 01:05:52 +01:00
|
|
|
|
|
|
|
LIBEBML_VERSION = 1.2.2
|
|
|
|
LIBEBML_SOURCE = libebml-$(LIBEBML_VERSION).tar.bz2
|
2014-07-31 10:46:58 +02:00
|
|
|
LIBEBML_SITE = http://dl.matroska.org/downloads/libebml
|
2012-11-28 01:05:52 +01:00
|
|
|
LIBEBML_INSTALL_STAGING = YES
|
|
|
|
LIBEBML_LICENSE = LGPLv2.1+
|
|
|
|
LIBEBML_LICENSE_FILES = LICENSE.LGPL
|
|
|
|
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2014-08-15 11:23:08 +02:00
|
|
|
LIBEBML_MAKE_TARGETS = staticlib
|
|
|
|
LIBEBML_MAKE_INSTALL_TARGETS = install_staticlib install_headers
|
|
|
|
else
|
|
|
|
LIBEBML_MAKE_TARGETS = staticlib sharedlib
|
|
|
|
LIBEBML_MAKE_INSTALL_TARGETS = install_staticlib install_sharedlib install_headers
|
|
|
|
endif
|
|
|
|
|
2012-11-28 01:05:52 +01:00
|
|
|
define LIBEBML_BUILD_CMDS
|
2014-08-15 11:23:08 +02:00
|
|
|
$(MAKE) -C $(@D)/make/linux CROSS="$(CCACHE) $(TARGET_CROSS)" \
|
|
|
|
$(LIBEBML_MAKE_TARGETS)
|
2012-11-28 01:05:52 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBEBML_INSTALL_STAGING_CMDS
|
2014-08-15 11:23:08 +02:00
|
|
|
$(MAKE) -C $(@D)/make/linux prefix=$(STAGING_DIR)/usr \
|
|
|
|
$(LIBEBML_MAKE_INSTALL_TARGETS)
|
2012-11-28 01:05:52 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBEBML_INSTALL_TARGET_CMDS
|
2014-08-15 11:23:08 +02:00
|
|
|
$(MAKE) -C $(@D)/make/linux prefix=$(TARGET_DIR)/usr \
|
|
|
|
$(LIBEBML_MAKE_INSTALL_TARGETS)
|
2012-11-28 01:05:52 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|