From c8596ae74aa052e633ccdc15e81871b550027279 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 29 Dec 2016 19:00:24 +0100 Subject: [PATCH] Add build for zlib. This is a dependency of libpng. --- build-chocolate-doom | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/build-chocolate-doom b/build-chocolate-doom index 1f8eb99..eb34ba1 100644 --- a/build-chocolate-doom +++ b/build-chocolate-doom @@ -424,6 +424,21 @@ if $build_libsamplerate; then fi if $build_libpng; then + if $force_build_sdl || ! have_header zlib.h; then + fetch_module http://www.chocolate-doom.org/depends/ zlib 1.2.8 + make_prefix= + if [ "$HOST_ARG" != "" ]; then + make_prefix=${HOST_ARG/--host=/PREFIX=}- + fi + make -C "$BUILD_DIR/zlib-1.2.8" \ + -f win32/Makefile.gcc \ + $make_prefix \ + install \ + INCLUDE_PATH=${INSTALL_DIR}/include \ + LIBRARY_PATH=${INSTALL_DIR}/lib \ + BINARY_PATH=${INSTALL_DIR}/bin + fi + if $force_build_sdl || ! have_header png.h; then fetch_and_build_module http://www.chocolate-doom.org/depends/ \ libpng 1.6.10 "$HOST_ARG"