mxe/src/zlib.mk

27 lines
881 B
Makefile
Raw Normal View History

2010-01-16 22:02:02 +00:00
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
2008-11-08 17:28:56 +00:00
# zlib
PKG := zlib
$(PKG)_IGNORE :=
2010-03-15 15:10:16 +00:00
$(PKG)_VERSION := 1.2.4
$(PKG)_CHECKSUM := 8cf10521c1927daa5e12efc5e1725a0d70e579f3
$(PKG)_SUBDIR := zlib-$($(PKG)_VERSION)
$(PKG)_FILE := zlib-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://www.zlib.net/
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/libpng/zlib/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
2008-11-08 17:28:56 +00:00
define $(PKG)_UPDATE
$(call SOURCEFORGE_FILES,http://sourceforge.net/projects/libpng/files/zlib/) | \
2008-11-08 17:28:56 +00:00
$(SED) -n 's,.*zlib-\([0-9][^>]*\)\.tar.*,\1,p' | \
tail -1
2008-11-08 17:28:56 +00:00
endef
define $(PKG)_BUILD
2010-03-15 15:10:16 +00:00
cd '$(1)' && CC='$(TARGET)-gcc' AR='$(TARGET)-ar' RANLIB='$(TARGET)-ranlib' ./configure \
--prefix='$(PREFIX)/$(TARGET)' \
--static
$(MAKE) -C '$(1)' -j '$(JOBS)' install
2008-11-08 17:28:56 +00:00
endef