2003-03-10 20:34:38 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# gzip
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-04-03 11:28:56 +02:00
|
|
|
GZIP_VERSION:=1.3.12
|
2007-07-11 16:06:06 +02:00
|
|
|
GZIP_SOURCE:=gzip-$(GZIP_VERSION).tar.gz
|
2008-03-26 04:28:09 +01:00
|
|
|
GZIP_SITE:=$(BR2_GNU_MIRROR)/gzip
|
2007-07-11 16:06:06 +02:00
|
|
|
GZIP_DIR:=$(BUILD_DIR)/gzip-$(GZIP_VERSION)
|
2006-10-01 17:17:52 +02:00
|
|
|
GZIP_CAT:=$(ZCAT)
|
2003-03-10 20:34:38 +01:00
|
|
|
GZIP_BINARY:=$(GZIP_DIR)/gzip
|
|
|
|
GZIP_TARGET_BINARY:=$(TARGET_DIR)/bin/zmore
|
|
|
|
|
|
|
|
$(DL_DIR)/$(GZIP_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(GZIP_SITE),$(GZIP_SOURCE))
|
2003-03-10 20:34:38 +01:00
|
|
|
|
|
|
|
gzip-source: $(DL_DIR)/$(GZIP_SOURCE)
|
|
|
|
|
|
|
|
$(GZIP_DIR)/.unpacked: $(DL_DIR)/$(GZIP_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
$(GZIP_CAT) $(DL_DIR)/$(GZIP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2009-08-04 22:28:32 +02:00
|
|
|
toolchain/patch-kernel.sh $(GZIP_DIR) package/gzip gzip\*.patch
|
2003-03-10 20:34:38 +01:00
|
|
|
touch $(GZIP_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(GZIP_DIR)/.configured: $(GZIP_DIR)/.unpacked
|
|
|
|
(cd $(GZIP_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2009-10-01 21:24:42 +02:00
|
|
|
./configure $(QUIET) \
|
2003-03-10 20:34:38 +01:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/ \
|
2003-09-03 09:18:18 +02:00
|
|
|
$(DISABLE_NLS) \
|
2006-12-21 11:36:40 +01:00
|
|
|
$(DISABLE_LARGEFILE) \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2005-11-24 07:53:24 +01:00
|
|
|
touch $(GZIP_DIR)/.configured
|
2003-03-10 20:34:38 +01:00
|
|
|
|
|
|
|
$(GZIP_BINARY): $(GZIP_DIR)/.configured
|
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(GZIP_DIR)
|
|
|
|
|
|
|
|
$(GZIP_TARGET_BINARY): $(GZIP_BINARY)
|
2008-04-03 13:30:13 +02:00
|
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GZIP_DIR) install-strip
|
2007-09-17 14:30:31 +02:00
|
|
|
ifneq ($(BR2_HAVE_INFOPAGES),y)
|
2008-04-03 13:30:13 +02:00
|
|
|
rm -rf $(TARGET_DIR)/usr/share/info
|
2007-09-17 14:30:31 +02:00
|
|
|
endif
|
|
|
|
ifneq ($(BR2_HAVE_MANPAGES),y)
|
2008-04-03 13:30:13 +02:00
|
|
|
rm -rf $(TARGET_DIR)/usr/share/man
|
2007-09-17 14:30:31 +02:00
|
|
|
endif
|
2003-03-10 20:34:38 +01:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
gzip: $(GZIP_TARGET_BINARY)
|
2003-03-10 20:34:38 +01:00
|
|
|
|
|
|
|
gzip-clean:
|
|
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GZIP_DIR) uninstall
|
|
|
|
-$(MAKE) -C $(GZIP_DIR) clean
|
|
|
|
|
|
|
|
gzip-dirclean:
|
|
|
|
rm -rf $(GZIP_DIR)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GZIP),y)
|
2005-02-10 04:06:39 +01:00
|
|
|
TARGETS+=gzip
|
|
|
|
endif
|