docs/buildroot.html: fix typo
[avatt.git] / package / gzip / gzip.mk
blobbeffe9d2e0c44deb3cc850e302b0cb4a1e9dd66a
1 #############################################################
3 # gzip
5 #############################################################
6 GZIP_VERSION:=1.3.12
7 GZIP_SOURCE:=gzip-$(GZIP_VERSION).tar.gz
8 GZIP_SITE:=$(BR2_GNU_MIRROR)/gzip
9 GZIP_DIR:=$(BUILD_DIR)/gzip-$(GZIP_VERSION)
10 GZIP_CAT:=$(ZCAT)
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) \
27 ./configure \
28 --target=$(GNU_TARGET_NAME) \
29 --host=$(GNU_TARGET_NAME) \
30 --build=$(GNU_HOST_NAME) \
31 --prefix=/usr \
32 --exec-prefix=/ \
33 $(DISABLE_NLS) \
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
45 endif
46 ifneq ($(BR2_HAVE_MANPAGES),y)
47 rm -rf $(TARGET_DIR)/usr/share/man
48 endif
50 gzip: uclibc $(GZIP_TARGET_BINARY)
52 gzip-clean:
53 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GZIP_DIR) uninstall
54 -$(MAKE) -C $(GZIP_DIR) clean
56 gzip-dirclean:
57 rm -rf $(GZIP_DIR)
59 #############################################################
61 # Toplevel Makefile options
63 #############################################################
64 ifeq ($(BR2_PACKAGE_GZIP),y)
65 TARGETS+=gzip
66 endif