summaryrefslogtreecommitdiff
path: root/openwrt/include/package.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-06-21 06:19:43 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-06-21 06:19:43 +0000
commite248cf0f00917eb91b93a3d16c36a4aa544f575c (patch)
tree546646a962e82e608e7feb1e7e1b91fdceb88a6a /openwrt/include/package.mk
parent1f20179ce5c9774f17d843070cd39da3f2e62268 (diff)
downloadmtk-20170518-e248cf0f00917eb91b93a3d16c36a4aa544f575c.zip
mtk-20170518-e248cf0f00917eb91b93a3d16c36a4aa544f575c.tar.gz
mtk-20170518-e248cf0f00917eb91b93a3d16c36a4aa544f575c.tar.bz2
massive cleanup of toolchain/
SVN-Revision: 4038
Diffstat (limited to 'openwrt/include/package.mk')
-rw-r--r--openwrt/include/package.mk13
1 files changed, 7 insertions, 6 deletions
diff --git a/openwrt/include/package.mk b/openwrt/include/package.mk
index 82298b0..9b86307 100644
--- a/openwrt/include/package.mk
+++ b/openwrt/include/package.mk
@@ -201,14 +201,15 @@ define BuildPackage
endef
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
define Build/Prepare/Default
- @if [ "$(PKG_CAT)" = "unzip" ]; then \
- unzip -d $(PKG_BUILD_DIR) $(DL_DIR)/$(PKG_SOURCE) ; \
- else \
- $(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(PKG_BUILD_DIR)/.. $(TAR_OPTIONS) - ; \
- fi
+ $(UNPACK)
@if [ -d ./patches ]; then \
- $(PATCH) $(PKG_BUILD_DIR) ./patches ; \
+ $(PATCH) $(PKG_BUILD_DIR) ./patches; \
fi
endef
endif