logrotate: enable selinux support
[buildroot-gz.git] / package / lz4 / lz4.mk
blob9d7f56bbf6740cd5dbc8e0c32bdfcbee72ceff47
1 ################################################################################
3 # lz4
5 ################################################################################
7 LZ4_VERSION = r131
8 LZ4_SITE = $(call github,Cyan4973,lz4,$(LZ4_VERSION))
9 LZ4_INSTALL_STAGING = YES
10 LZ4_LICENSE = BSD-2c (library), GPLv2+ (programs)
11 LZ4_LICENSE_FILES = lib/LICENSE programs/COPYING
13 ifeq ($(BR2_STATIC_LIBS),y)
14 define LZ4_DISABLE_SHARED
15 $(SED) '/SHARED/d' $(@D)/lib/Makefile
16 endef
17 LZ4_POST_PATCH_HOOKS += LZ4_DISABLE_SHARED
18 endif
20 define HOST_LZ4_BUILD_CMDS
21 $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D)
22 endef
24 define HOST_LZ4_INSTALL_CMDS
25 $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) PREFIX=$(HOST_DIR)/usr \
26 install -C $(@D)
27 endef
29 define LZ4_BUILD_CMDS
30 $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)/lib
31 endef
33 define LZ4_INSTALL_STAGING_CMDS
34 $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) DESTDIR=$(STAGING_DIR) \
35 PREFIX=/usr install -C $(@D)
36 endef
38 define LZ4_INSTALL_TARGET_CMDS
39 $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) DESTDIR=$(TARGET_DIR) \
40 PREFIX=/usr install -C $(@D)/lib
41 endef
43 $(eval $(generic-package))
44 $(eval $(host-generic-package))