2023-04-29 18:59:47 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace SPC\builder\unix\library;
|
|
|
|
|
|
2025-06-09 19:32:31 +08:00
|
|
|
use SPC\util\executor\UnixAutoconfExecutor;
|
|
|
|
|
|
2023-04-29 18:59:47 +08:00
|
|
|
trait libiconv
|
|
|
|
|
{
|
2023-08-20 19:51:45 +08:00
|
|
|
protected function build(): void
|
2023-04-29 18:59:47 +08:00
|
|
|
{
|
2025-10-23 22:14:57 +02:00
|
|
|
UnixAutoconfExecutor::create($this)
|
|
|
|
|
->configure(
|
|
|
|
|
'--enable-extra-encodings',
|
|
|
|
|
'--enable-year2038',
|
|
|
|
|
)
|
|
|
|
|
->make('install-lib', with_install: false)
|
|
|
|
|
->make('install-lib', with_install: false, dir: $this->getSourceDir() . '/libcharset');
|
2025-06-10 19:46:55 +07:00
|
|
|
$this->patchLaDependencyPrefix();
|
2023-04-29 18:59:47 +08:00
|
|
|
}
|
|
|
|
|
}
|