Skip to content

Commit a1b8d20

Browse files
committed
add gsasl
1 parent 1fed8f2 commit a1b8d20

File tree

6 files changed

+66
-2
lines changed

6 files changed

+66
-2
lines changed

config/lib.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@
107107
"ldap",
108108
"krb5",
109109
"idn2",
110-
"psl"
110+
"psl",
111+
"gsasl"
111112
],
112113
"lib-suggests-macos": [
113114
"libssh2",
@@ -904,6 +905,21 @@
904905
"idn2"
905906
]
906907
},
908+
"gsasl": {
909+
"source": "gsasl",
910+
"pkg-configs": [
911+
"libgsasl"
912+
],
913+
"headers": [
914+
"gsasl.h"
915+
],
916+
"lib-depends": [
917+
"idn2"
918+
],
919+
"lib-suggests": [
920+
"krb5"
921+
]
922+
},
907923
"pthreads4w": {
908924
"source": "pthreads4w",
909925
"static-libs-windows": [

config/source.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,6 +1200,16 @@
12001200
"path": "LICENSE"
12011201
}
12021202
},
1203+
"gsasl": {
1204+
"type": "filelist",
1205+
"url": "https://ftp.gnu.org/gnu/gsasl/",
1206+
"regex": "/href=\\\"(?<file>gsasl-(?<version>[^\\\"]+)\\.tar\\.gz)\\\"/",
1207+
"prefer-stable": true,
1208+
"license": {
1209+
"type": "file",
1210+
"path": "COPYING.LESSER"
1211+
}
1212+
},
12031213
"yaml": {
12041214
"type": "git",
12051215
"path": "php-src/ext/yaml",
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\linux\library;
6+
7+
class gsasl extends LinuxLibraryBase
8+
{
9+
use \SPC\builder\unix\library\gsasl;
10+
11+
public const NAME = 'gsasl';
12+
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ protected function build(): void
2424
->optionalLib('idn2', ...cmake_boolean_args('USE_LIBIDN2'))
2525
->optionalLib('psl', ...cmake_boolean_args('CURL_USE_LIBPSL'))
2626
->optionalLib('krb5', ...cmake_boolean_args('CURL_USE_GSSAPI'))
27+
->optionalLib('gsasl', ...cmake_boolean_args('USE_GSASL'))
2728
->optionalLib('idn2', ...cmake_boolean_args('CURL_USE_IDN2'))
2829
->optionalLib('libcares', '-DENABLE_ARES=ON')
2930
->addConfigureArgs(
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace SPC\builder\unix\library;
6+
7+
use SPC\util\executor\UnixAutoconfExecutor;
8+
9+
trait gsasl
10+
{
11+
protected function build(): void
12+
{
13+
UnixAutoconfExecutor::create($this)
14+
->optionalLib('idn2', ...ac_with_args('libidn2', true))
15+
->optionalLib('krb5', ...ac_with_args('gssapi', true))
16+
->configure(
17+
'--disable-nls',
18+
'--disable-rpath',
19+
'--disable-doc',
20+
)
21+
->make();
22+
$this->patchPkgconfPrefix(['libgsasl.pc']);
23+
$this->patchLaDependencyPrefix();
24+
}
25+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ protected function build(): void
2222
'LDFLAGS' => '-Wl,--allow-multiple-definition',
2323
])
2424
->optionalLib('ldap', '--with-ldap', '--without-ldap')
25-
->optionalLib('libedit', '--with-readline', '--without-readline')
25+
->optionalLib('libedit', '--with-libedit', '--without-libedit')
2626
->configure(
2727
'--disable-nls',
2828
'--disable-rpath',

0 commit comments

Comments
 (0)