Allow extracting in non-standard PKG_BUILD_DIR

SVN-Revision: 865
This commit is contained in:
Nicolas Thill 2005-05-13 01:45:56 +00:00
parent c51cbc4d86
commit 4dc6f11fda

View File

@ -35,7 +35,8 @@ endif
ifneq ($(strip $(PKG_CAT)),) ifneq ($(strip $(PKG_CAT)),)
$(PKG_BUILD_DIR)/.prepared: $(DL_DIR)/$(PKG_SOURCE) $(PKG_BUILD_DIR)/.prepared: $(DL_DIR)/$(PKG_SOURCE)
rm -rf $(PKG_BUILD_DIR) rm -rf $(PKG_BUILD_DIR)
$(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - mkdir -p $(PKG_BUILD_DIR)
$(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(PKG_BUILD_DIR)/.. $(TAR_OPTIONS) -
if [ -d ./patches ]; then \ if [ -d ./patches ]; then \
$(PATCH) $(PKG_BUILD_DIR) ./patches ; \ $(PATCH) $(PKG_BUILD_DIR) ./patches ; \
fi fi