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)"
+ $(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 install
+ $(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 install
+ $(MAKE) -C $(@D)/make/linux prefix=$(TARGET_DIR)/usr \
+ $(LIBMATROSKA_MAKE_INSTALL_TARGETS)
endef
$(eval $(generic-package))