Browse Source

- bzup2: rework build

master
vanhofen 3 years ago
parent
commit
5bac3d06bf
  1. 24
      package/bzip2/bzip2.mk
  2. 0
      package/bzip2/patches/0001-Makefile-libbz2_so.patch

24
package/bzip2/bzip2.mk

@ -9,18 +9,20 @@ BZIP2_DIR = bzip2-$(BZIP2_VERSION)
BZIP2_SOURCE = bzip2-$(BZIP2_VERSION).tar.gz
BZIP2_SITE = https://sourceware.org/pub/bzip2
$(DL_DIR)/$(BZIP2_SOURCE):
$(download) $(BZIP2_SITE)/$(BZIP2_SOURCE)
define BZIP2_MAKEFILE_LIBBZ2_SO
mv $(PKG_BUILD_DIR)/Makefile-libbz2_so $(PKG_BUILD_DIR)/Makefile
endef
BZIP2_POST_PATCH_HOOKS += BZIP2_MAKEFILE_LIBBZ2_SO
bzip2: $(DL_DIR)/$(BZIP2_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
mv Makefile-libbz2_so Makefile; \
define BZIP2_TARGET_CLEANUP
$(TARGET_RM) $(TARGET_bindir)/bzip2
endef
BZIP2_TARGET_FINALIZE_HOOKS += BZIP2_TARGET_CLEANUP
bzip2: | $(TARGET_DIR)
$(call PREPARE)
$(CHDIR)/$($(PKG)_DIR); \
$(TARGET_CONFIGURE_ENV) \
$(MAKE); \
$(MAKE) install PREFIX=$(TARGET_prefix)
$(TARGET_RM) $(TARGET_bindir)/bzip2
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
$(call TARGET_FOLLOWUP)

0
package/bzip2/patches/bzip2.patch → package/bzip2/patches/0001-Makefile-libbz2_so.patch

Loading…
Cancel
Save