speed up the build system a little bit
[openwrt.git] / include / unpack.mk
1 ifeq ($(strip $(PKG_UNPACK)),)
2 ifneq ($(strip $(PKG_CAT)),)
3 # use existing PKG_CAT
4 PKG_UNPACK:=$(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | $(TAR) -C $(PKG_BUILD_DIR)/.. $(TAR_OPTIONS)
5 ifeq ($(PKG_CAT),unzip)
6 PKG_UNPACK=unzip -d $(PKG_BUILD_DIR) $(DL_DIR)/$(PKG_SOURCE)
7 endif
8 # replace zcat with $(ZCAT), because some system have it as gzcat
9 ifeq ($(PKG_CAT),zcat)
10 PKG_UNPACK:=$(ZCAT) $(DL_DIR)/$(PKG_SOURCE) | $(TAR) -C $(PKG_BUILD_DIR)/.. $(TAR_OPTIONS)
11 endif
12 else
13 # try to autodetect file type
14 endif
15 endif
This page took 0.057511 seconds and 5 git commands to generate.