aboutsummaryrefslogtreecommitdiff
path: root/package/libebml/libebml.mk
blob: 618ef1a915285ac6ec76e7a7320f6002a030b1d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
################################################################################
#
# libebml
#
################################################################################

LIBEBML_VERSION = 1.2.2
LIBEBML_SOURCE = libebml-$(LIBEBML_VERSION).tar.bz2
LIBEBML_SITE = http://dl.matroska.org/downloads/libebml
LIBEBML_INSTALL_STAGING = YES
LIBEBML_LICENSE = LGPLv2.1+
LIBEBML_LICENSE_FILES = LICENSE.LGPL

ifeq ($(BR2_PREFER_STATIC_LIB),y)
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

define LIBEBML_BUILD_CMDS
	$(MAKE) -C $(@D)/make/linux CROSS="$(CCACHE) $(TARGET_CROSS)" \
		$(LIBEBML_MAKE_TARGETS)
endef

define LIBEBML_INSTALL_STAGING_CMDS
	$(MAKE) -C $(@D)/make/linux prefix=$(STAGING_DIR)/usr \
		$(LIBEBML_MAKE_INSTALL_TARGETS)
endef

define LIBEBML_INSTALL_TARGET_CMDS
	$(MAKE) -C $(@D)/make/linux prefix=$(TARGET_DIR)/usr \
		$(LIBEBML_MAKE_INSTALL_TARGETS)
endef

$(eval $(generic-package))