1 #############################################################
5 #############################################################
7 GZIP_SOURCE
:=gzip-
$(GZIP_VERSION
).
tar.gz
8 GZIP_SITE
:=$(BR2_GNU_MIRROR
)/gzip
9 GZIP_DIR
:=$(BUILD_DIR
)/gzip-
$(GZIP_VERSION
)
11 GZIP_BINARY
:=$(GZIP_DIR
)/gzip
12 GZIP_TARGET_BINARY
:=$(TARGET_DIR
)/bin
/zmore
14 $(DL_DIR
)/$(GZIP_SOURCE
):
15 $(call DOWNLOAD
,$(GZIP_SITE
),$(GZIP_SOURCE
))
17 gzip-source
: $(DL_DIR
)/$(GZIP_SOURCE
)
19 $(GZIP_DIR
)/.unpacked
: $(DL_DIR
)/$(GZIP_SOURCE
)
20 $(GZIP_CAT
) $(DL_DIR
)/$(GZIP_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
21 touch
$(GZIP_DIR
)/.unpacked
23 $(GZIP_DIR
)/.configured
: $(GZIP_DIR
)/.unpacked
24 (cd
$(GZIP_DIR
); rm -rf config.cache
; \
25 $(TARGET_CONFIGURE_OPTS
) \
26 $(TARGET_CONFIGURE_ARGS
) \
28 --target
=$(GNU_TARGET_NAME
) \
29 --host
=$(GNU_TARGET_NAME
) \
30 --build
=$(GNU_HOST_NAME
) \
34 $(DISABLE_LARGEFILE
) \
36 touch
$(GZIP_DIR
)/.configured
38 $(GZIP_BINARY
): $(GZIP_DIR
)/.configured
39 $(MAKE
) CC
=$(TARGET_CC
) -C
$(GZIP_DIR
)
41 $(GZIP_TARGET_BINARY
): $(GZIP_BINARY
)
42 $(MAKE
) DESTDIR
=$(TARGET_DIR
) CC
=$(TARGET_CC
) -C
$(GZIP_DIR
) install-strip
43 ifneq ($(BR2_HAVE_INFOPAGES
),y
)
44 rm -rf
$(TARGET_DIR
)/usr
/share
/info
46 ifneq ($(BR2_HAVE_MANPAGES
),y
)
47 rm -rf
$(TARGET_DIR
)/usr
/share
/man
50 gzip
: uclibc
$(GZIP_TARGET_BINARY
)
53 $(MAKE
) DESTDIR
=$(TARGET_DIR
) CC
=$(TARGET_CC
) -C
$(GZIP_DIR
) uninstall
54 -$(MAKE
) -C
$(GZIP_DIR
) clean
59 #############################################################
61 # Toplevel Makefile options
63 #############################################################
64 ifeq ($(BR2_PACKAGE_GZIP
),y
)