harfbuzz: security bump to version 1.4.4
[buildroot-gz.git] / package / bzip2 / bzip2.mk
blob0597ab97d620b4db383e8c2bd6b0ff09ab51217d
1 ################################################################################
3 # bzip2
5 ################################################################################
7 BZIP2_VERSION = 1.0.6
8 BZIP2_SITE = http://www.bzip.org/$(BZIP2_VERSION)
9 BZIP2_INSTALL_STAGING = YES
10 BZIP2_LICENSE = bzip2 license
11 BZIP2_LICENSE_FILES = LICENSE
13 ifeq ($(BR2_STATIC_LIBS),)
14 define BZIP2_BUILD_SHARED_CMDS
15 $(TARGET_MAKE_ENV)
16 $(MAKE) -C $(@D) -f Makefile-libbz2_so $(TARGET_CONFIGURE_OPTS)
17 endef
18 endif
20 define BZIP2_BUILD_CMDS
21 $(TARGET_MAKE_ENV)
22 $(MAKE) -C $(@D) libbz2.a bzip2 bzip2recover $(TARGET_CONFIGURE_OPTS)
23 $(BZIP2_BUILD_SHARED_CMDS)
24 endef
26 ifeq ($(BR2_STATIC_LIBS),)
27 define BZIP2_INSTALL_STAGING_SHARED_CMDS
28 $(TARGET_MAKE_ENV) $(MAKE) \
29 -f Makefile-libbz2_so PREFIX=$(STAGING_DIR)/usr -C $(@D) install
30 endef
31 endif
33 define BZIP2_INSTALL_STAGING_CMDS
34 $(TARGET_MAKE_ENV) $(MAKE) \
35 PREFIX=$(STAGING_DIR)/usr -C $(@D) install
36 $(BZIP2_INSTALL_STAGING_SHARED_CMDS)
37 endef
39 ifeq ($(BR2_STATIC_LIBS),)
40 define BZIP2_INSTALL_TARGET_SHARED_CMDS
41 $(TARGET_MAKE_ENV) $(MAKE) \
42 -f Makefile-libbz2_so PREFIX=$(TARGET_DIR)/usr -C $(@D) install
43 endef
44 endif
46 # make sure busybox doesn't get overwritten by make install
47 define BZIP2_INSTALL_TARGET_CMDS
48 rm -f $(addprefix $(TARGET_DIR)/usr/bin/,bzip2 bunzip2 bzcat)
49 $(TARGET_MAKE_ENV) $(MAKE) \
50 PREFIX=$(TARGET_DIR)/usr -C $(@D) install
51 $(BZIP2_INSTALL_TARGET_SHARED_CMDS)
52 endef
54 define HOST_BZIP2_BUILD_CMDS
55 $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) \
56 $(MAKE) -C $(@D) -f Makefile-libbz2_so
57 $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) \
58 $(MAKE) -C $(@D) libbz2.a bzip2 bzip2recover
59 endef
61 define HOST_BZIP2_INSTALL_CMDS
62 $(HOST_MAKE_ENV) \
63 $(MAKE) PREFIX=$(HOST_DIR)/usr -C $(@D) install
64 $(HOST_MAKE_ENV) \
65 $(MAKE) -f Makefile-libbz2_so PREFIX=$(HOST_DIR)/usr -C $(@D) install
66 endef
68 $(eval $(generic-package))
69 $(eval $(host-generic-package))