allow packages to override PKG_UNPACK, HOST_UNPACK
authorFelix Fietkau <nbd@openwrt.org>
Wed, 25 Feb 2009 21:43:04 +0000 (21:43 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 25 Feb 2009 21:43:04 +0000 (21:43 +0000)
SVN-Revision: 14659

include/unpack.mk

index e281094..2cd1781 100644 (file)
@@ -67,10 +67,10 @@ ifeq ($(strip $(UNPACK_CMD)),)
 endif
 
 ifdef PKG_BUILD_DIR
-  PKG_UNPACK := $(call UNPACK_CMD,$(PKG_BUILD_DIR)) $(call CRLF_CMD,$(PKG_BUILD_DIR))
+  PKG_UNPACK ?= $(call UNPACK_CMD,$(PKG_BUILD_DIR)) $(call CRLF_CMD,$(PKG_BUILD_DIR))
 endif
 ifdef HOST_BUILD_DIR
-  HOST_UNPACK := $(call UNPACK_CMD,$(HOST_BUILD_DIR)) $(call CRLF_CMD,$(HOST_BUILD_DIR))
+  HOST_UNPACK ?= $(call UNPACK_CMD,$(HOST_BUILD_DIR)) $(call CRLF_CMD,$(HOST_BUILD_DIR))
 endif
 
 endif # PKG_SOURCE