mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
add gsasl
This commit is contained in:
parent
1fed8f2802
commit
a1b8d201ae
@ -107,7 +107,8 @@
|
||||
"ldap",
|
||||
"krb5",
|
||||
"idn2",
|
||||
"psl"
|
||||
"psl",
|
||||
"gsasl"
|
||||
],
|
||||
"lib-suggests-macos": [
|
||||
"libssh2",
|
||||
@ -904,6 +905,21 @@
|
||||
"idn2"
|
||||
]
|
||||
},
|
||||
"gsasl": {
|
||||
"source": "gsasl",
|
||||
"pkg-configs": [
|
||||
"libgsasl"
|
||||
],
|
||||
"headers": [
|
||||
"gsasl.h"
|
||||
],
|
||||
"lib-depends": [
|
||||
"idn2"
|
||||
],
|
||||
"lib-suggests": [
|
||||
"krb5"
|
||||
]
|
||||
},
|
||||
"pthreads4w": {
|
||||
"source": "pthreads4w",
|
||||
"static-libs-windows": [
|
||||
|
||||
@ -1200,6 +1200,16 @@
|
||||
"path": "LICENSE"
|
||||
}
|
||||
},
|
||||
"gsasl": {
|
||||
"type": "filelist",
|
||||
"url": "https://ftp.gnu.org/gnu/gsasl/",
|
||||
"regex": "/href=\\\"(?<file>gsasl-(?<version>[^\\\"]+)\\.tar\\.gz)\\\"/",
|
||||
"prefer-stable": true,
|
||||
"license": {
|
||||
"type": "file",
|
||||
"path": "COPYING.LESSER"
|
||||
}
|
||||
},
|
||||
"yaml": {
|
||||
"type": "git",
|
||||
"path": "php-src/ext/yaml",
|
||||
|
||||
12
src/SPC/builder/linux/library/gsasl.php
Normal file
12
src/SPC/builder/linux/library/gsasl.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace SPC\builder\linux\library;
|
||||
|
||||
class gsasl extends LinuxLibraryBase
|
||||
{
|
||||
use \SPC\builder\unix\library\gsasl;
|
||||
|
||||
public const NAME = 'gsasl';
|
||||
}
|
||||
@ -24,6 +24,7 @@ trait curl
|
||||
->optionalLib('idn2', ...cmake_boolean_args('USE_LIBIDN2'))
|
||||
->optionalLib('psl', ...cmake_boolean_args('CURL_USE_LIBPSL'))
|
||||
->optionalLib('krb5', ...cmake_boolean_args('CURL_USE_GSSAPI'))
|
||||
->optionalLib('gsasl', ...cmake_boolean_args('USE_GSASL'))
|
||||
->optionalLib('idn2', ...cmake_boolean_args('CURL_USE_IDN2'))
|
||||
->optionalLib('libcares', '-DENABLE_ARES=ON')
|
||||
->addConfigureArgs(
|
||||
|
||||
25
src/SPC/builder/unix/library/gsasl.php
Normal file
25
src/SPC/builder/unix/library/gsasl.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace SPC\builder\unix\library;
|
||||
|
||||
use SPC\util\executor\UnixAutoconfExecutor;
|
||||
|
||||
trait gsasl
|
||||
{
|
||||
protected function build(): void
|
||||
{
|
||||
UnixAutoconfExecutor::create($this)
|
||||
->optionalLib('idn2', ...ac_with_args('libidn2', true))
|
||||
->optionalLib('krb5', ...ac_with_args('gssapi', true))
|
||||
->configure(
|
||||
'--disable-nls',
|
||||
'--disable-rpath',
|
||||
'--disable-doc',
|
||||
)
|
||||
->make();
|
||||
$this->patchPkgconfPrefix(['libgsasl.pc']);
|
||||
$this->patchLaDependencyPrefix();
|
||||
}
|
||||
}
|
||||
@ -22,7 +22,7 @@ trait krb5
|
||||
'LDFLAGS' => '-Wl,--allow-multiple-definition',
|
||||
])
|
||||
->optionalLib('ldap', '--with-ldap', '--without-ldap')
|
||||
->optionalLib('libedit', '--with-readline', '--without-readline')
|
||||
->optionalLib('libedit', '--with-libedit', '--without-libedit')
|
||||
->configure(
|
||||
'--disable-nls',
|
||||
'--disable-rpath',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user