libs for macos too

This commit is contained in:
Marc Henderkes 2025-11-18 14:35:58 +01:00
parent 81dce02431
commit ecea6c12cd
5 changed files with 52 additions and 2 deletions

View File

@ -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": {

View 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';
}

View 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';
}

View 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';
}

View File

@ -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',