@@ -13,7 +13,7 @@ OPENSSL_VERSION="1.1.1t"
13
13
LIBZIP_VERSION=" 1.9.2"
14
14
SQLITE3_YEAR=" 2023"
15
15
SQLITE3_VERSION=" 3410100" # 3.41.1
16
- LIBDEFLATE_VERSION=" 0d1779a071bcc636e5156ddb7538434da7acad22 " # 1.14
16
+ LIBDEFLATE_VERSION=" bd925ae68e99f65d69f20181cb845aaba5c8f098 " # 1.17
17
17
18
18
EXT_PTHREADS_VERSION_PM4=" 4.2.1"
19
19
EXT_PTHREADS_VERSION_PM5=" 5.3.0"
@@ -25,7 +25,7 @@ EXT_XDEBUG_VERSION="fbd5d9cb9e18502992e017925a34b7232755f34f" #fork of xdebug us
25
25
EXT_IGBINARY_VERSION=" 3.2.14"
26
26
EXT_CRYPTO_VERSION=" 0.3.2"
27
27
EXT_RECURSIONGUARD_VERSION=" 0.1.0"
28
- EXT_LIBDEFLATE_VERSION=" 0.1 .0"
28
+ EXT_LIBDEFLATE_VERSION=" 0.2 .0"
29
29
EXT_MORTON_VERSION=" 0.1.2"
30
30
EXT_XXHASH_VERSION=" 0.1.1"
31
31
@@ -920,32 +920,33 @@ function build_libdeflate {
920
920
write_library libdeflate " $LIBDEFLATE_VERSION "
921
921
local libdeflate_dir=" ./libdeflate-$LIBDEFLATE_VERSION "
922
922
923
+ if [ " $DO_STATIC " == " yes" ]; then
924
+ local CMAKE_LIBDEFLATE_EXTRA_FLAGS=" -DLIBDEFLATE_BUILD_STATIC_LIB=ON -DLIBDEFLATE_BUILD_SHARED_LIB=OFF"
925
+ else
926
+ local CMAKE_LIBDEFLATE_EXTRA_FLAGS=" -DLIBDEFLATE_BUILD_STATIC_LIB=OFF -DLIBDEFLATE_BUILD_SHARED_LIB=ON"
927
+ fi
928
+
923
929
if cant_use_cache " $libdeflate_dir " ; then
924
930
rm -rf " $libdeflate_dir "
925
931
write_download
926
932
download_file " https://github.com/ebiggers/libdeflate/archive/$LIBDEFLATE_VERSION .tar.gz" " libdeflate" | tar -zx >> " $DIR /install.log" 2>&1
927
933
cd " $libdeflate_dir "
928
- mark_cache
929
- else
930
- write_caching
931
- cd " $libdeflate_dir "
932
- fi
933
- if [ " $DO_STATIC " == " yes" ]; then
934
+ echo -n " checking..."
935
+ cmake . \
936
+ -DCMAKE_INSTALL_PREFIX=" $INSTALL_DIR " \
937
+ -DCMAKE_PREFIX_PATH=" $INSTALL_DIR " \
938
+ -DCMAKE_INSTALL_LIBDIR=lib \
939
+ $CMAKE_GLOBAL_EXTRA_FLAGS \
940
+ -DLIBDEFLATE_BUILD_GZIP=OFF \
941
+ $CMAKE_LIBDEFLATE_EXTRA_FLAGS >> " $DIR /install.log" 2>&1
934
942
echo -n " compiling..."
935
- make -j $THREADS libdeflate.a >> " $DIR /install.log" 2>&1
936
- echo -n " manually copying installation files for static build..."
937
- cp ./libdeflate.a " $INSTALL_DIR /lib"
938
- cp ./libdeflate.h " $INSTALL_DIR /include"
943
+ make -j $THREADS >> " $DIR /install.log" 2>&1 && mark_cache
939
944
else
940
- echo -n " compiling..."
941
- PREFIX=" $INSTALL_DIR " make -j $THREADS install >> " $DIR /install.log" 2>&1
942
- echo -n " cleaning..."
943
- rm " $INSTALL_DIR /lib/libdeflate.a"
944
- if [ " $( uname -s) " == " Darwin" ]; then
945
- # libdeflate makefile doesn't set this correctly
946
- install_name_tool -id " $INSTALL_DIR /lib/libdeflate.0.dylib" " $INSTALL_DIR /lib/libdeflate.0.dylib"
947
- fi
945
+ write_caching
946
+ cd " $libzip_dir "
948
947
fi
948
+ echo -n " installing..."
949
+ make install >> " $DIR /install.log" 2>&1
949
950
cd ..
950
951
echo " done!"
951
952
}
@@ -1116,7 +1117,7 @@ RANLIB=$RANLIB CFLAGS="$CFLAGS $FLAGS_LTO" CXXFLAGS="$CXXFLAGS $FLAGS_LTO" LDFLA
1116
1117
--with-yaml \
1117
1118
--with-openssl \
1118
1119
--with-zip \
1119
- --with-libdeflate= " $INSTALL_DIR " \
1120
+ --with-libdeflate \
1120
1121
$HAS_LIBJPEG \
1121
1122
$HAS_GD \
1122
1123
--with-leveldb=" $INSTALL_DIR " \
0 commit comments