mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
libs for macos too
This commit is contained in:
parent
81dce02431
commit
ecea6c12cd
@ -322,6 +322,13 @@
|
|||||||
"headers": [
|
"headers": [
|
||||||
"krb5.h",
|
"krb5.h",
|
||||||
"gssapi/gssapi.h"
|
"gssapi/gssapi.h"
|
||||||
|
],
|
||||||
|
"lib-depends": [
|
||||||
|
"openssl"
|
||||||
|
],
|
||||||
|
"lib-suggests": [
|
||||||
|
"ldap",
|
||||||
|
"libedit"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"ldap": {
|
"ldap": {
|
||||||
|
|||||||
12
src/SPC/builder/macos/library/idn2.php
Normal file
12
src/SPC/builder/macos/library/idn2.php
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace SPC\builder\macos\library;
|
||||||
|
|
||||||
|
class idn2 extends MacOSLibraryBase
|
||||||
|
{
|
||||||
|
use \SPC\builder\unix\library\idn2;
|
||||||
|
|
||||||
|
public const NAME = 'idn2';
|
||||||
|
}
|
||||||
12
src/SPC/builder/macos/library/libunistring.php
Normal file
12
src/SPC/builder/macos/library/libunistring.php
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace SPC\builder\macos\library;
|
||||||
|
|
||||||
|
class libunistring extends MacOSLibraryBase
|
||||||
|
{
|
||||||
|
use \SPC\builder\unix\library\libunistring;
|
||||||
|
|
||||||
|
public const NAME = 'libunistring';
|
||||||
|
}
|
||||||
12
src/SPC/builder/macos/library/psl.php
Normal file
12
src/SPC/builder/macos/library/psl.php
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace SPC\builder\macos\library;
|
||||||
|
|
||||||
|
class psl extends MacOSLibraryBase
|
||||||
|
{
|
||||||
|
use \SPC\builder\unix\library\psl;
|
||||||
|
|
||||||
|
public const NAME = 'psl';
|
||||||
|
}
|
||||||
@ -13,8 +13,15 @@ trait krb5
|
|||||||
$this->source_dir .= '/src';
|
$this->source_dir .= '/src';
|
||||||
shell()->cd($this->source_dir)->exec('autoreconf -if');
|
shell()->cd($this->source_dir)->exec('autoreconf -if');
|
||||||
UnixAutoconfExecutor::create($this)
|
UnixAutoconfExecutor::create($this)
|
||||||
->appendEnv(['LDFLAGS' => '-Wl,--allow-multiple-definition'])
|
->appendEnv([
|
||||||
->configure()
|
'LDFLAGS' => '-Wl,--allow-multiple-definition',
|
||||||
|
])
|
||||||
|
->optionalLib('ldap', '--with-ldap', '--without-ldap')
|
||||||
|
->optionalLib('libedit', '--with-readline', '--without-readline')
|
||||||
|
->configure(
|
||||||
|
'--disable-nls',
|
||||||
|
'--disable-rpath',
|
||||||
|
)
|
||||||
->make();
|
->make();
|
||||||
$this->patchPkgconfPrefix([
|
$this->patchPkgconfPrefix([
|
||||||
'krb5-gssapi.pc',
|
'krb5-gssapi.pc',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user