1 #############################################################
5 #############################################################
6 GNUTAR_SOURCE
:=tar-1.13
.25.
tar.gz
7 GNUTAR_SITE
:=ftp
://alpha.gnu.org
/gnu
/tar
8 GNUTAR_DIR
:=$(BUILD_DIR
)/tar-1.13
.25
10 GNUTAR_BINARY
:=src
/tar
11 GNUTAR_TARGET_BINARY
:=bin
/tar
13 $(DL_DIR
)/$(GNUTAR_SOURCE
):
14 $(WGET
) -P
$(DL_DIR
) $(GNUTAR_SITE
)/$(GNUTAR_SOURCE
)
16 tar-source
: $(DL_DIR
)/$(GNUTAR_SOURCE
)
18 $(GNUTAR_DIR
)/.unpacked
: $(DL_DIR
)/$(GNUTAR_SOURCE
)
19 $(GNUTAR_CAT
) $(DL_DIR
)/$(GNUTAR_SOURCE
) |
tar -C
$(BUILD_DIR
) -xvf
-
20 touch
$(GNUTAR_DIR
)/.unpacked
22 $(GNUTAR_DIR
)/.configured
: $(GNUTAR_DIR
)/.unpacked
23 (cd
$(GNUTAR_DIR
); rm -rf config.cache
; \
24 $(TARGET_CONFIGURE_OPTS
) \
25 CFLAGS
="$(TARGET_CFLAGS)" \
27 --target
=$(GNU_TARGET_NAME
) \
28 --host
=$(GNU_TARGET_NAME
) \
29 --build
=$(GNU_HOST_NAME
) \
34 --libexecdir
=/usr
/lib \
36 --datadir=/usr
/share \
37 --localstatedir
=/var \
41 $(DISABLE_LARGEFILE
) \
43 touch
$(GNUTAR_DIR
)/.configured
45 $(GNUTAR_DIR
)/$(GNUTAR_BINARY
): $(GNUTAR_DIR
)/.configured
46 $(MAKE
) -C
$(GNUTAR_DIR
)
48 # This stuff is needed to work around GNU make deficiencies
49 tar-target_binary
: $(GNUTAR_DIR
)/$(GNUTAR_BINARY
)
50 @if
[ -L
$(TARGET_DIR
)/$(GNUTAR_TARGET_BINARY
) ] ; then \
51 rm -f
$(TARGET_DIR
)/$(GNUTAR_TARGET_BINARY
); fi
;
52 @if
[ ! -f
$(GNUTAR_DIR
)/$(GNUTAR_BINARY
) -o
$(TARGET_DIR
)/$(GNUTAR_TARGET_BINARY
) \
53 -ot
$(GNUTAR_DIR
)/$(GNUTAR_BINARY
) ] ; then \
55 rm -f
$(TARGET_DIR
)/$(GNUTAR_TARGET_BINARY
); \
56 cp
-a
$(GNUTAR_DIR
)/$(GNUTAR_BINARY
) $(TARGET_DIR
)/$(GNUTAR_TARGET_BINARY
); fi
;
58 tar: uclibc tar-target_binary
61 $(MAKE
) DESTDIR
=$(TARGET_DIR
) -C
$(GNUTAR_DIR
) uninstall
62 -$(MAKE
) -C
$(GNUTAR_DIR
) clean
This page took 0.044342 seconds and 5 git commands to generate.