Skip to content

Commit ecea6c1

Browse files
committed
libs for macos too
1 parent 81dce02 commit ecea6c1

File tree

5 files changed

+52
-2
lines changed

5 files changed

+52
-2
lines changed

config/lib.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,13 @@
322322
"headers": [
323323
"krb5.h",
324324
"gssapi/gssapi.h"
325+
],
326+
"lib-depends": [
327+
"openssl"
328+
],
329+
"lib-suggests": [
330+
"ldap",
331+
"libedit"
325332
]
326333
},
327334
"ldap": {
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace SPC\builder\macos\library;
6+
7+
class idn2 extends MacOSLibraryBase
8+
{
9+
use \SPC\builder\unix\library\idn2;
10+
11+
public const NAME = 'idn2';
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace SPC\builder\macos\library;
6+
7+
class libunistring extends MacOSLibraryBase
8+
{
9+
use \SPC\builder\unix\library\libunistring;
10+
11+
public const NAME = 'libunistring';
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace SPC\builder\macos\library;
6+
7+
class psl extends MacOSLibraryBase
8+
{
9+
use \SPC\builder\unix\library\psl;
10+
11+
public const NAME = 'psl';
12+
}

src/SPC/builder/unix/library/krb5.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,15 @@ protected function build(): void
1313
$this->source_dir .= '/src';
1414
shell()->cd($this->source_dir)->exec('autoreconf -if');
1515
UnixAutoconfExecutor::create($this)
16-
->appendEnv(['LDFLAGS' => '-Wl,--allow-multiple-definition'])
17-
->configure()
16+
->appendEnv([
17+
'LDFLAGS' => '-Wl,--allow-multiple-definition',
18+
])
19+
->optionalLib('ldap', '--with-ldap', '--without-ldap')
20+
->optionalLib('libedit', '--with-readline', '--without-readline')
21+
->configure(
22+
'--disable-nls',
23+
'--disable-rpath',
24+
)
1825
->make();
1926
$this->patchPkgconfPrefix([
2027
'krb5-gssapi.pc',

0 commit comments

Comments
 (0)