2013-05-15 12:23:14 +00:00
|
|
|
ZLIB_VERSION = 1.2.8
|
|
|
|
ZLIB = zlib-$(ZLIB_VERSION)
|
|
|
|
ZLIB_TGZ = $(ZLIB).tar.gz
|
|
|
|
ZLIB_URL = http://downloads.sourceforge.net/project/libpng/zlib/$(ZLIB_VERSION)/$(ZLIB_TGZ)
|
2013-05-25 12:50:46 +00:00
|
|
|
ZLIB_MD5 = 44d667c142d7cda120332623eab69f40
|
2011-12-22 15:19:25 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Interface to top-level prepare Makefile
|
|
|
|
#
|
|
|
|
PORTS += $(ZLIB)
|
|
|
|
|
|
|
|
prepare-zlib: $(CONTRIB_DIR)/$(ZLIB) include/zlib
|
|
|
|
|
|
|
|
$(CONTRIB_DIR)/$(ZLIB):clean-zlib
|
|
|
|
|
|
|
|
#
|
|
|
|
# Port-specific local rules
|
|
|
|
#
|
|
|
|
$(DOWNLOAD_DIR)/$(ZLIB_TGZ):
|
|
|
|
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(ZLIB_URL) && touch $@
|
2013-06-06 14:49:56 +00:00
|
|
|
|
|
|
|
$(DOWNLOAD_DIR)/$(ZLIB_TGZ).verified: $(DOWNLOAD_DIR)/$(ZLIB_TGZ)
|
2013-05-25 12:50:46 +00:00
|
|
|
$(VERBOSE)$(HASHVERIFIER) $(DOWNLOAD_DIR)/$(ZLIB_TGZ) $(ZLIB_MD5) md5
|
2013-06-06 14:49:56 +00:00
|
|
|
$(VERBOSE)touch $@
|
2011-12-22 15:19:25 +00:00
|
|
|
|
2013-06-06 14:49:56 +00:00
|
|
|
$(CONTRIB_DIR)/$(ZLIB): $(DOWNLOAD_DIR)/$(ZLIB_TGZ).verified
|
|
|
|
$(VERBOSE)tar xfz $(<:.verified=) -C $(CONTRIB_DIR) && touch $@
|
2011-12-22 15:19:25 +00:00
|
|
|
|
|
|
|
ZLIB_INCLUDES = zconf.h zlib.h
|
|
|
|
|
|
|
|
include/zlib:
|
|
|
|
$(VERBOSE)mkdir -p $@
|
|
|
|
$(VERBOSE)for i in $(ZLIB_INCLUDES); do \
|
|
|
|
ln -sf ../../$(CONTRIB_DIR)/$(ZLIB)/$$i $@; done
|
|
|
|
|
|
|
|
clean-zlib:
|
|
|
|
$(VERBOSE)rm -rf include/zlib
|
|
|
|
$(VERBOSE)rm -rf $(CONTRIB_DIR)/$(ZLIB)
|