2014-05-15 23:31:34 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# lz4
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-03-24 07:29:52 +01:00
|
|
|
LZ4_VERSION = v1.7.5
|
|
|
|
LZ4_SITE = $(call github,lz4,lz4,$(LZ4_VERSION))
|
2014-05-15 23:31:34 +02:00
|
|
|
LZ4_INSTALL_STAGING = YES
|
2017-03-30 15:43:39 +02:00
|
|
|
LZ4_LICENSE = BSD-2-Clause (library), GPL-2.0+ (programs)
|
2016-03-02 22:44:42 +01:00
|
|
|
LZ4_LICENSE_FILES = lib/LICENSE programs/COPYING
|
2014-05-15 23:31:34 +02:00
|
|
|
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2014-05-15 23:31:34 +02:00
|
|
|
define LZ4_DISABLE_SHARED
|
2016-02-25 22:55:10 +01:00
|
|
|
$(SED) '/SHARED/d' $(@D)/lib/Makefile
|
2014-05-15 23:31:34 +02:00
|
|
|
endef
|
|
|
|
LZ4_POST_PATCH_HOOKS += LZ4_DISABLE_SHARED
|
|
|
|
endif
|
|
|
|
|
|
|
|
define HOST_LZ4_BUILD_CMDS
|
2018-01-10 23:40:52 +01:00
|
|
|
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) all
|
2014-05-15 23:31:34 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_LZ4_INSTALL_CMDS
|
2017-07-05 13:14:18 +02:00
|
|
|
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) PREFIX=$(HOST_DIR) \
|
2016-02-29 23:17:06 +01:00
|
|
|
install -C $(@D)
|
2014-05-15 23:31:34 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LZ4_BUILD_CMDS
|
2018-01-10 23:40:52 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) all
|
2014-05-15 23:31:34 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LZ4_INSTALL_STAGING_CMDS
|
2017-03-26 21:52:39 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) DESTDIR=$(STAGING_DIR) \
|
2016-02-25 22:55:10 +01:00
|
|
|
PREFIX=/usr install -C $(@D)
|
2014-05-15 23:31:34 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LZ4_INSTALL_TARGET_CMDS
|
2017-03-26 21:52:39 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) DESTDIR=$(TARGET_DIR) \
|
2018-01-10 23:40:52 +01:00
|
|
|
PREFIX=/usr install -C $(@D)
|
2014-05-15 23:31:34 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|
|
|
|
$(eval $(host-generic-package))
|