2003-02-15 11:23:19 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# tar
|
|
|
|
#
|
|
|
|
#############################################################
|
2010-12-17 17:00:58 +01:00
|
|
|
|
2011-08-11 16:13:13 +02:00
|
|
|
TAR_VERSION = 1.26
|
2010-12-17 17:00:58 +01:00
|
|
|
TAR_SITE = $(BR2_GNU_MIRROR)/tar
|
2003-02-15 11:23:19 +01:00
|
|
|
|
2011-11-13 23:27:57 +01:00
|
|
|
# Prefer full-blown tar over buybox's version
|
|
|
|
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
|
|
|
TAR_DEPENDENCIES += busybox
|
2012-02-08 17:22:20 +01:00
|
|
|
HOST_TAR_DEPENDENCIES =
|
2011-11-13 23:27:57 +01:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2012-02-08 17:22:20 +01:00
|
|
|
|
|
|
|
# host-tar: use cpio.gz instead of tar.gz to prevent chicken-egg problem
|
|
|
|
# of needing tar to build tar.
|
|
|
|
HOST_TAR_SOURCE = tar-$(TAR_VERSION).cpio.gz
|
|
|
|
define HOST_TAR_EXTRACT_CMDS
|
|
|
|
mkdir -p $(@D)
|
|
|
|
cd $(@D) && \
|
|
|
|
$(INFLATE.gz) $(DL_DIR)/$(HOST_TAR_SOURCE) | cpio -i
|
|
|
|
mv $(@D)/tar-$(TAR_VERSION)/* $(@D)
|
|
|
|
rmdir $(@D)/tar-$(TAR_VERSION)
|
|
|
|
endef
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-autotools-package))
|