[packages] don't use '--transform' tar option (not supported on older GNU tar)
authorNicolas Thill <nico@openwrt.org>
Wed, 24 Mar 2010 17:19:26 +0000 (17:19 +0000)
committerNicolas Thill <nico@openwrt.org>
Wed, 24 Mar 2010 17:19:26 +0000 (17:19 +0000)
SVN-Revision: 20407

libs/axtls/Makefile
libs/ezxml/Makefile
net/gesftpserver/Makefile
utils/upx/Makefile

index a3b797e..c402a12 100644 (file)
@@ -15,8 +15,6 @@ PKG_SOURCE:=axTLS-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/axtls
 PKG_MD5SUM:=03471b5a5874e2ce86025f24b3fa0958
 
-TAR_OPTIONS:=--transform='s,axTLS,$(PKG_NAME)-$(PKG_VERSION),' -xvf -
-
 include $(INCLUDE_DIR)/package.mk
 
 define Package/libaxtls
@@ -41,6 +39,8 @@ define Build/Configure
        $(MAKE) -C $(PKG_BUILD_DIR) oldconfig
 endef
 
+TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
+
 TARGET_CFLAGS += $(FPIC)
 
 define Build/Compile
index 07fb26a..309519a 100644 (file)
@@ -15,8 +15,6 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/ezxml
 PKG_MD5SUM:=e22ae17a0bd82dfa2a66f9876f1a8fd7
 
-TAR_OPTIONS:=--transform='s,$(PKG_NAME),$(PKG_NAME)-$(PKG_VERSION),' -xvf -
-
 include $(INCLUDE_DIR)/package.mk
 
 define Package/ezxml/Default
@@ -35,6 +33,8 @@ define Package/libezxml/description
        ezXML is a fast and lightweight C library for parsing XML documents.
 endef
 
+TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
+
 TARGET_CFLAGS += $(FPIC) -D_GNU_SOURCE
 
 define Build/InstallDev
index b639db2..c0a2342 100644 (file)
@@ -20,8 +20,6 @@ PKG_SOURCE_VERSION:=$(PKG_REV)
 
 PKG_INSTALL:=1
 
-TAR_OPTIONS:=--transform='s,$(PKG_NAME),$(PKG_NAME)-$(PKG_VERSION),' -xvf -
-
 include $(INCLUDE_DIR)/package.mk
 
 define Package/gesftpserver
@@ -41,6 +39,8 @@ endef
 
 CONFIGURE_CMD:=./prepare
 
+TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
+
 TARGET_CFLAGS+= \
        -I$(STAGING_DIR)/usr/lib/libiconv/include/
 
index 0837707..5437db7 100644 (file)
@@ -15,8 +15,6 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.bz2
 PKG_SOURCE_URL:=http://upx.sourceforge.net/download/
 PKG_MD5SUM:=68d662b1f831335460f9bfdbf632c6ce
 
-TAR_OPTIONS+=--transform='s,$(PKG_NAME)-$(PKG_VERSION)-src,$(PKG_NAME)-$(PKG_VERSION),'
-
 include $(INCLUDE_DIR)/package.mk
 
 define Package/upx
@@ -39,6 +37,8 @@ MAKE_PATH := src
 MAKE_VARS += \
        exeext=""
 
+TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
+
 TARGET_CPPFLAGS += \
        -DUCL_NO_ASM \