Merge remote-tracking branch 'origin/main' into cplus

This commit is contained in:
crazywhalecc 2023-10-31 01:02:02 +08:00
commit 98b906db40
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680
2 changed files with 4 additions and 0 deletions

View File

@ -94,6 +94,8 @@ Here's how to download from GitHub Actions:
You can also download binaries from a self-hosted server: [enter](https://dl.static-php.dev/static-php-cli/spc-bin/nightly/).
> SPC single-file binary is built by phpmicro and box.
### Manual build (using source code)
Clone repo first:

View File

@ -35,5 +35,7 @@ trait libwebp
$this->patchPkgconfPrefix(['libsharpyuv.pc', 'libwebp.pc', 'libwebpdecoder.pc', 'libwebpdemux.pc', 'libwebpmux.pc'], PKGCONF_PATCH_PREFIX | PKGCONF_PATCH_LIBDIR);
$this->patchPkgconfPrefix(['libsharpyuv.pc'], PKGCONF_PATCH_CUSTOM, ['/^includedir=.*$/m', 'includedir=${prefix}/include/webp']);
$this->cleanLaFiles();
// fix imagemagick binary linking issue
$this->patchPkgconfPrefix(['libwebp.pc'], PKGCONF_PATCH_CUSTOM, ['/-lwebp$/m', '-lwebp -lsharpyuv']);
}
}