2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2003-02-15 11:23:19 +01:00
|
|
|
#
|
|
|
|
# tar
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2010-12-17 17:00:58 +01:00
|
|
|
|
2013-12-02 12:51:48 +01:00
|
|
|
TAR_VERSION = 1.27.1
|
2013-12-06 11:29:01 +01:00
|
|
|
TAR_SOURCE = tar-$(TAR_VERSION).tar.xz
|
2010-12-17 17:00:58 +01:00
|
|
|
TAR_SITE = $(BR2_GNU_MIRROR)/tar
|
2013-01-22 04:35:49 +01:00
|
|
|
TAR_LICENSE = GPLv3+
|
|
|
|
TAR_LICENSE_FILES = COPYING
|
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) && \
|
2013-12-02 12:51:48 +01:00
|
|
|
$(call suitable-extractor,$(HOST_TAR_SOURCE)) $(DL_DIR)/$(HOST_TAR_SOURCE) | cpio -i --preserve-modification-time
|
2012-02-08 17:22:20 +01:00
|
|
|
mv $(@D)/tar-$(TAR_VERSION)/* $(@D)
|
|
|
|
rmdir $(@D)/tar-$(TAR_VERSION)
|
|
|
|
endef
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-autotools-package))
|