blob: 8cb7833b1ff906f95858ce4e44ed7e952eaa67e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := zlib
$(PKG)_WEBSITE := https://zlib.net/
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.2.11
$(PKG)_CHECKSUM := 4ff941449631ace0d4d203e3483be9dbc9da454084111f97ea0a2114e19bf066
$(PKG)_SUBDIR := zlib-$($(PKG)_VERSION)
$(PKG)_FILE := zlib-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := https://zlib.net/$($(PKG)_FILE)
$(PKG)_URL_2 := https://$(SOURCEFORGE_MIRROR)/project/libpng/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
$(PKG)_DEPS_$(BUILD) :=
$(PKG)_TARGETS := $(BUILD) $(MXE_TARGETS)
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://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
define $(PKG)_BUILD_SHARED
$(MAKE) -C '$(1)' -f win32/Makefile.gcc \
SHARED_MODE=1 \
STATICLIB= \
BINARY_PATH='$(PREFIX)/$(TARGET)/bin' \
INCLUDE_PATH='$(PREFIX)/$(TARGET)/include' \
LIBRARY_PATH='$(PREFIX)/$(TARGET)/lib' \
PREFIX='$(TARGET)-' \
-j '$(JOBS)' install
endef
|