You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/zlib.mk

26 lines
782 B

# This file is part of MXE.
# See index.html for further information.
PKG := zlib
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.2.8
$(PKG)_CHECKSUM := b598beb7acc96347cbd1020b71aef7871d374677
$(PKG)_SUBDIR := zlib-$($(PKG)_VERSION)
$(PKG)_FILE := zlib-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := http://zlib.net/$($(PKG)_FILE)
$(PKG)_URL_2 := http://$(SOURCEFORGE_MIRROR)/project/libpng/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://zlib.net/' | \
$(SED) -n 's,.*zlib-\([0-9][^>]*\)\.tar.*,\1,ip' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && CHOST='$(TARGET)' ./configure \
--prefix='$(PREFIX)/$(TARGET)' \
--static
$(MAKE) -C '$(1)' -j '$(JOBS)' install
endef