diff --git a/config/lib.json b/config/lib.json index 0dae815f..a68d242e 100644 --- a/config/lib.json +++ b/config/lib.json @@ -210,12 +210,12 @@ "libwebp", "freetype", "libtiff", - "libheif" + "libheif", + "bzip2" ], "lib-suggests": [ "zstd", "xz", - "bzip2", "libzip", "libxml2" ] diff --git a/src/SPC/builder/unix/library/imagemagick.php b/src/SPC/builder/unix/library/imagemagick.php index 26101def..19238f7b 100644 --- a/src/SPC/builder/unix/library/imagemagick.php +++ b/src/SPC/builder/unix/library/imagemagick.php @@ -19,7 +19,7 @@ trait imagemagick protected function build(): void { // TODO: imagemagick build with bzip2 failed with bugs, we need to fix it in the future - $extra = '--without-jxl --without-x --disable-openmp --without-bzlib '; + $extra = '--without-jxl --without-x --disable-openmp '; $required_libs = ''; $optional_libs = [ 'libzip' => 'zip', @@ -31,6 +31,7 @@ trait imagemagick 'xz' => 'lzma', 'zstd' => 'zstd', 'freetype' => 'freetype', + 'bzip2' => 'bzlib', ]; foreach ($optional_libs as $lib => $option) { $extra .= $this->builder->getLib($lib) ? "--with-{$option} " : "--without-{$option} ";