X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=include%2Fhost-build.mk;h=0502d7682a5c9514cd4e10d84fbdccfbef7375f8;hb=2a6a038b870d62139597dec180ac58f998211732;hp=43c83142dfe6effab403f7d30024d79d8db7263a;hpb=02cdebbb91a33d8e24da1c94a9d93ac39be168a7;p=openwrt-10.03%2F.git diff --git a/include/host-build.mk b/include/host-build.mk index 43c83142d..0502d7682 100644 --- a/include/host-build.mk +++ b/include/host-build.mk @@ -4,14 +4,13 @@ # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # -ifneq ($(strip $(PKG_CAT)),) - ifeq ($(PKG_CAT),unzip) - UNPACK=unzip -d $(PKG_BUILD_DIR) $(DL_DIR)/$(PKG_SOURCE) - else - UNPACK=$(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(PKG_BUILD_DIR)/.. $(TAR_OPTIONS) - - endif + +include $(INCLUDE_DIR)/host.mk +include $(INCLUDE_DIR)/unpack.mk + +ifneq ($(strip $(PKG_UNPACK)),) define Build/Prepare/Default - $(UNPACK) + $(PKG_UNPACK) @if [ -d ./patches ]; then \ $(PATCH) $(PKG_BUILD_DIR) ./patches; \ fi @@ -64,7 +63,7 @@ endef ifneq ($(strip $(PKG_SOURCE)),) - source: $(DL_DIR)/$(PKG_SOURCE) + download: $(DL_DIR)/$(PKG_SOURCE) $(DL_DIR)/$(PKG_SOURCE): mkdir -p $(DL_DIR) @@ -101,7 +100,7 @@ define HostBuild $(call Build/Uninstall) rm -f $(STAGING_DIR)/stampfiles/.host_$(PKG_NAME)-installed - source: + download: prepare: $(PKG_BUILD_DIR)/.prepared configure: $(PKG_BUILD_DIR)/.configured