2014-05-15 23:31:34 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# lz4
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-01-16 19:54:36 +01:00
|
|
|
LZ4_VERSION = v1.8.3
|
2017-03-24 07:29:52 +01:00
|
|
|
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)
|
2018-04-20 06:52:46 +02:00
|
|
|
LZ4_MAKE_OPTS += BUILD_SHARED=no
|
2018-04-24 13:14:43 +02:00
|
|
|
else ifeq ($(BR2_SHARED_LIBS),y)
|
|
|
|
LZ4_MAKE_OPTS += BUILD_STATIC=no
|
2014-05-15 23:31:34 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
define HOST_LZ4_BUILD_CMDS
|
2018-04-21 22:58:52 +02:00
|
|
|
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) lib
|
|
|
|
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) lz4
|
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-04-20 06:52:46 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(LZ4_MAKE_OPTS) \
|
2018-04-21 22:58:52 +02:00
|
|
|
-C $(@D) lib
|
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(LZ4_MAKE_OPTS) \
|
|
|
|
-C $(@D) lz4
|
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) \
|
2018-04-20 06:52:46 +02:00
|
|
|
PREFIX=/usr $(LZ4_MAKE_OPTS) 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-04-20 06:52:46 +02:00
|
|
|
PREFIX=/usr $(LZ4_MAKE_OPTS) install -C $(@D)
|
2014-05-15 23:31:34 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|
|
|
|
$(eval $(host-generic-package))
|