2016-02-26 01:13:52 +00:00
|
|
|
description "Library for compressing/decompressing GZIP files"
|
2016-02-19 04:12:07 +00:00
|
|
|
check_pkgconfig zlib
|
2017-02-19 02:07:35 +00:00
|
|
|
variant stable fetch_download http://www.zlib.net/fossils/zlib-1.2.11.tar.gz \
|
2017-01-22 22:33:01 +00:00
|
|
|
c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1
|
2017-02-19 02:07:35 +00:00
|
|
|
variant latest fetch_git https://github.com/madler/zlib.git master
|
2016-02-19 04:12:07 +00:00
|
|
|
build_autotools
|
2016-02-18 06:55:19 +00:00
|
|
|
|
2016-02-18 07:03:44 +00:00
|
|
|
# zlib's configure script is hand-rolled and doesn't support the normal
|
|
|
|
# --host option because, well, who knows.
|
|
|
|
do_build() {
|
2016-02-19 04:12:07 +00:00
|
|
|
if [ ! -z "$BUILD_HOST" ]; then
|
|
|
|
export CC="$BUILD_HOST-gcc"
|
|
|
|
fi
|
2017-01-15 00:46:45 +00:00
|
|
|
# Don't include -lc when building libraries. It's unclear why zlib does
|
|
|
|
# this by default, but it certainly doesn't work for Mingw compiles.
|
|
|
|
LDSHAREDLIBC="" ./configure --prefix="$PACKAGE_INSTALL_DIR"
|
2016-02-18 07:03:44 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|