don't download libpng, zlib, brotli, as we already build them

This commit is contained in:
DubbleClick 2025-07-20 02:49:30 +07:00
parent eff6c0666b
commit c0483b4b34
2 changed files with 3 additions and 3 deletions

View File

@ -18,8 +18,8 @@ trait libjxl
}
FileSystem::replaceFileStr(
$this->source_dir . '/deps.sh',
'return 0',
'# return 0',
['return 0', 'download_github third_party/brotli', 'download_github third_party/zlib', 'download_github third_party/libpng'],
['# return 0', '# download_github third_party/brotli', '# download_github third_party/zlib', '# download_github third_party/libpng'],
);
shell()->cd($this->source_dir)
->exec('./deps.sh');

View File

@ -18,7 +18,7 @@ trait libtiff
*/
protected function build(): void
{
$libcpp = SPCTarget::getTargetOS() === 'Darwin' ? '-lc++' : '-lstdc++';
$libcpp = SPCTarget::getTargetOS() === 'Linux' ? '-lstdc++' : '-lc++';
FileSystem::replaceFileStr($this->source_dir . '/configure', '-lwebp', '-lwebp -lsharpyuv');
FileSystem::replaceFileStr($this->source_dir . '/configure', '-l"$lerc_lib_name"', '-l"$lerc_lib_name" ' . $libcpp);
UnixAutoconfExecutor::create($this)