Blame env-builder-data/build/script/packet/zlib-1.2.11.sh

cd1b9d
DEPS=""
cd1b9d
cd1b9d
PK_DIRNAME="zlib-1.2.11"
cd1b9d
PK_ARCHIVE="$PK_DIRNAME.tar.gz"
cd1b9d
PK_URL="http://zlib.net/$PK_ARCHIVE"
cd1b9d
cd1b9d
PK_CONFIGURE_OPTIONS_DEFAULT="--prefix=$INSTALL_PACKET_DIR --shared"
cd1b9d
PK_LICENSE_FILES="README"
cd1b9d
cd1b9d
source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh
cd1b9d
cd1b9d
if [ "$PLATFORM" = "win" ]; then
cd1b9d
pkbuild() {
cd1b9d
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1
cd1b9d
    cp "$FILES_PACKET_DIR/Makefile.mingw" .
31c087
    make -fMakefile.mingw SHARED_MODE=1 -j${THREADS} || return 1
cd1b9d
}
cd1b9d
pkinstall() {
cd1b9d
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME"
31c087
    BINARY_PATH="$INSTALL_PACKET_DIR/bin" \
31c087
    INCLUDE_PATH="$INSTALL_PACKET_DIR/include" \
31c087
    LIBRARY_PATH="$INSTALL_PACKET_DIR/lib" \
31c087
    make -fMakefile.mingw SHARED_MODE=1 install || return 1
cd1b9d
}
cd1b9d
fi