package/opencv: fix build failure on x86
[buildroot-gz.git] / package / libebml / libebml.mk
blob618ef1a915285ac6ec76e7a7320f6002a030b1d5
1 ################################################################################
3 # libebml
5 ################################################################################
7 LIBEBML_VERSION = 1.2.2
8 LIBEBML_SOURCE = libebml-$(LIBEBML_VERSION).tar.bz2
9 LIBEBML_SITE = http://dl.matroska.org/downloads/libebml
10 LIBEBML_INSTALL_STAGING = YES
11 LIBEBML_LICENSE = LGPLv2.1+
12 LIBEBML_LICENSE_FILES = LICENSE.LGPL
14 ifeq ($(BR2_PREFER_STATIC_LIB),y)
15 LIBEBML_MAKE_TARGETS = staticlib
16 LIBEBML_MAKE_INSTALL_TARGETS = install_staticlib install_headers
17 else
18 LIBEBML_MAKE_TARGETS = staticlib sharedlib
19 LIBEBML_MAKE_INSTALL_TARGETS = install_staticlib install_sharedlib install_headers
20 endif
22 define LIBEBML_BUILD_CMDS
23 $(MAKE) -C $(@D)/make/linux CROSS="$(CCACHE) $(TARGET_CROSS)" \
24 $(LIBEBML_MAKE_TARGETS)
25 endef
27 define LIBEBML_INSTALL_STAGING_CMDS
28 $(MAKE) -C $(@D)/make/linux prefix=$(STAGING_DIR)/usr \
29 $(LIBEBML_MAKE_INSTALL_TARGETS)
30 endef
32 define LIBEBML_INSTALL_TARGET_CMDS
33 $(MAKE) -C $(@D)/make/linux prefix=$(TARGET_DIR)/usr \
34 $(LIBEBML_MAKE_INSTALL_TARGETS)
35 endef
37 $(eval $(generic-package))