Add brotli, libargon2, libavif, libiconv, libpng, libtiff pre-built libs

This commit is contained in:
crazywhalecc 2024-07-08 13:27:03 +08:00 committed by Jerry Ma
parent d9e9c8c6b7
commit ea3cb0218a
4 changed files with 18 additions and 0 deletions

View File

@ -29,6 +29,7 @@
"brotli": {
"type": "ghtar",
"repo": "google/brotli",
"provide-pre-built": true,
"license": {
"type": "file",
"path": "LICENSE"
@ -253,6 +254,7 @@
"type": "git",
"rev": "master",
"url": "https://github.com/static-php/phc-winner-argon2",
"provide-pre-built": true,
"license": {
"type": "file",
"path": "LICENSE"
@ -261,6 +263,7 @@
"libavif": {
"type": "ghtar",
"repo": "AOMediaCodec/libavif",
"provide-pre-built": true,
"license": {
"type": "file",
"path": "LICENSE"
@ -314,6 +317,7 @@
"type": "filelist",
"url": "https://ftp.gnu.org/gnu/libiconv/",
"regex": "/href=\"(?<file>libiconv-(?<version>[^\"]+)\\.tar\\.gz)\"/",
"provide-pre-built": true,
"license": {
"type": "file",
"path": "COPYING"
@ -360,6 +364,7 @@
"type": "git",
"url": "https://github.com/glennrp/libpng.git",
"rev": "libpng16",
"provide-pre-built": true,
"license": {
"type": "file",
"path": "LICENSE"
@ -398,6 +403,7 @@
"type": "filelist",
"url": "https://download.osgeo.org/libtiff/",
"regex": "/href=\"(?<file>tiff-(?<version>[^\"]+)\\.tar\\.xz)\"/",
"provide-pre-built": true,
"license": {
"type": "file",
"path": "LICENSE.md"

View File

@ -34,5 +34,9 @@ trait brotli
unlink(BUILD_ROOT_PATH . '/lib/' . $filename);
}
}
if (file_exists(BUILD_BIN_PATH . '/brotli')) {
unlink(BUILD_BIN_PATH . '/brotli');
}
}
}

View File

@ -23,5 +23,9 @@ trait libargon2
unlink(BUILD_ROOT_PATH . '/lib/' . $filename);
}
}
if (file_exists(BUILD_BIN_PATH . '/argon2')) {
unlink(BUILD_BIN_PATH . '/argon2');
}
}
}

View File

@ -20,5 +20,9 @@ trait libiconv
->exec('make clean')
->exec("make -j{$this->builder->concurrency}")
->exec('make install DESTDIR=' . $destdir);
if (file_exists(BUILD_BIN_PATH . '/iconv')) {
unlink(BUILD_BIN_PATH . '/iconv');
}
}
}