blob: fe4927505c9efd1496ab6c1271ce375cb43a8a4b (
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
38
|
################################################################################
#
# libmatroska
#
################################################################################
LIBMATROSKA_VERSION = 1.3.0
LIBMATROSKA_SOURCE = libmatroska-$(LIBMATROSKA_VERSION).tar.bz2
LIBMATROSKA_SITE = http://dl.matroska.org/downloads/libmatroska
LIBMATROSKA_INSTALL_STAGING = YES
LIBMATROSKA_LICENSE = LGPLv2.1+
LIBMATROSKA_LICENSE_FILES = LICENSE.LGPL
LIBMATROSKA_DEPENDENCIES = libebml
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
define LIBMATROSKA_BUILD_CMDS
$(MAKE) -C $(@D)/make/linux CROSS="$(CCACHE) $(TARGET_CROSS)" \
$(LIBMATROSKA_MAKE_TARGETS)
endef
define LIBMATROSKA_INSTALL_STAGING_CMDS
$(MAKE) -C $(@D)/make/linux prefix=$(STAGING_DIR)/usr \
$(LIBMATROSKA_MAKE_INSTALL_TARGETS)
endef
define LIBMATROSKA_INSTALL_TARGET_CMDS
$(MAKE) -C $(@D)/make/linux prefix=$(TARGET_DIR)/usr \
$(LIBMATROSKA_MAKE_INSTALL_TARGETS)
endef
$(eval $(generic-package))
|