2014-05-15 23:31:34 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# lz4
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2016-02-25 22:55:10 +01:00
|
|
|
LZ4_VERSION = r131
|
2014-05-15 23:31:34 +02:00
|
|
|
LZ4_SITE = $(call github,Cyan4973,lz4,$(LZ4_VERSION))
|
|
|
|
LZ4_INSTALL_STAGING = YES
|
2016-03-02 22:44:42 +01:00
|
|
|
LZ4_LICENSE = BSD-2c (library), GPLv2+ (programs)
|
|
|
|
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
|
2016-10-17 18:05:58 +02:00
|
|
|
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D)
|
2014-05-15 23:31:34 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_LZ4_INSTALL_CMDS
|
2016-10-17 18:05:58 +02:00
|
|
|
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) PREFIX=$(HOST_DIR)/usr \
|
2016-02-29 23:17:06 +01:00
|
|
|
install -C $(@D)
|
2014-05-15 23:31:34 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LZ4_BUILD_CMDS
|
2016-10-14 00:13:11 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)/lib
|
2014-05-15 23:31:34 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LZ4_INSTALL_STAGING_CMDS
|
2016-10-14 00:13:11 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) 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
|
2016-10-14 00:13:11 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) DESTDIR=$(TARGET_DIR) \
|
2016-02-25 22:55:10 +01:00
|
|
|
PREFIX=/usr install -C $(@D)/lib
|
2014-05-15 23:31:34 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|
|
|
|
$(eval $(host-generic-package))
|