mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-10 10:25:36 +08:00
fixes
This commit is contained in:
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
return (new PhpCsFixer\Config())
|
return (new PhpCsFixer\Config())
|
||||||
->setRiskyAllowed(true)
|
->setRiskyAllowed(true)
|
||||||
|
->setUnsupportedPhpVersionAllowed(true)
|
||||||
->setRules([
|
->setRules([
|
||||||
'@PSR12' => true,
|
'@PSR12' => true,
|
||||||
'@Symfony' => true,
|
'@Symfony' => true,
|
||||||
|
|||||||
@@ -497,6 +497,7 @@
|
|||||||
"static-libs-windows": [
|
"static-libs-windows": [
|
||||||
"libssh2.lib"
|
"libssh2.lib"
|
||||||
],
|
],
|
||||||
|
"provide-pre-built": true,
|
||||||
"headers": [
|
"headers": [
|
||||||
"libssh2.h",
|
"libssh2.h",
|
||||||
"libssh2_publickey.h",
|
"libssh2_publickey.h",
|
||||||
@@ -504,9 +505,6 @@
|
|||||||
],
|
],
|
||||||
"lib-depends": [
|
"lib-depends": [
|
||||||
"openssl"
|
"openssl"
|
||||||
],
|
|
||||||
"lib-suggests": [
|
|
||||||
"zlib"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"libtiff": {
|
"libtiff": {
|
||||||
|
|||||||
@@ -625,7 +625,6 @@
|
|||||||
"type": "filelist",
|
"type": "filelist",
|
||||||
"url": "https://download.osgeo.org/libtiff/",
|
"url": "https://download.osgeo.org/libtiff/",
|
||||||
"regex": "/href=\"(?<file>tiff-(?<version>[^\"]+)\\.tar\\.xz)\"/",
|
"regex": "/href=\"(?<file>tiff-(?<version>[^\"]+)\\.tar\\.xz)\"/",
|
||||||
"provide-pre-built": true,
|
|
||||||
"license": {
|
"license": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"path": "LICENSE.md"
|
"path": "LICENSE.md"
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ trait jbig
|
|||||||
*/
|
*/
|
||||||
public function patchBeforeBuild(): bool
|
public function patchBeforeBuild(): bool
|
||||||
{
|
{
|
||||||
// Patch Makefile to add -fPIC flag for position-independent code
|
|
||||||
FileSystem::replaceFileStr($this->source_dir . '/Makefile', 'CFLAGS = -O2 -W -Wno-unused-result', 'CFLAGS = -O2 -W -Wno-unused-result -fPIC');
|
FileSystem::replaceFileStr($this->source_dir . '/Makefile', 'CFLAGS = -O2 -W -Wno-unused-result', 'CFLAGS = -O2 -W -Wno-unused-result -fPIC');
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -24,7 +24,6 @@ trait jbig
|
|||||||
*/
|
*/
|
||||||
protected function build(): void
|
protected function build(): void
|
||||||
{
|
{
|
||||||
// Build the library
|
|
||||||
shell()->cd($this->source_dir)->initializeEnv($this)
|
shell()->cd($this->source_dir)->initializeEnv($this)
|
||||||
->exec("make -j{$this->builder->concurrency} {$this->builder->getEnvString()} lib")
|
->exec("make -j{$this->builder->concurrency} {$this->builder->getEnvString()} lib")
|
||||||
->exec('cp libjbig/libjbig.a ' . BUILD_LIB_PATH)
|
->exec('cp libjbig/libjbig.a ' . BUILD_LIB_PATH)
|
||||||
|
|||||||
Reference in New Issue
Block a user