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_SOURCE = bzip2-$(BZIP2_VERSION).tar.gz
BZIP2_SITE = https://sourceware.org/pub/bzip2 BZIP2_SITE = https://sourceware.org/pub/bzip2
$(DL_DIR)/$(BZIP2_SOURCE): define BZIP2_MAKEFILE_LIBBZ2_SO
$(download) $(BZIP2_SITE)/$(BZIP2_SOURCE) 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) define BZIP2_TARGET_CLEANUP
$(REMOVE)/$(PKG_DIR) $(TARGET_RM) $(TARGET_bindir)/bzip2
$(UNTAR)/$(PKG_SOURCE) endef
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR)) BZIP2_TARGET_FINALIZE_HOOKS += BZIP2_TARGET_CLEANUP
$(CHDIR)/$(PKG_DIR); \
mv Makefile-libbz2_so Makefile; \ bzip2: | $(TARGET_DIR)
$(call PREPARE)
$(CHDIR)/$($(PKG)_DIR); \
$(TARGET_CONFIGURE_ENV) \ $(TARGET_CONFIGURE_ENV) \
$(MAKE); \ $(MAKE); \
$(MAKE) install PREFIX=$(TARGET_prefix) $(MAKE) install PREFIX=$(TARGET_prefix)
$(TARGET_RM) $(TARGET_bindir)/bzip2 $(call TARGET_FOLLOWUP)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

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

Loading…
Cancel
Save