28 lines
746 B
PHP
Raw Normal View History

2023-06-02 11:47:11 +02:00
<?php
declare(strict_types=1);
namespace SPC\builder\macos\library;
use SPC\store\FileSystem;
2023-06-02 11:47:11 +02:00
class icu extends MacOSLibraryBase
{
2024-07-09 11:15:34 +08:00
use \SPC\builder\unix\library\icu;
2023-06-02 11:47:11 +02:00
public const NAME = 'icu';
protected function build(): void
2023-06-02 11:47:11 +02:00
{
$root = BUILD_ROOT_PATH;
shell()->cd($this->source_dir . '/source')
2024-07-19 22:49:13 +08:00
->exec("./runConfigureICU MacOSX --enable-static --disable-shared --disable-extras --disable-samples --disable-tests --prefix={$root}")
2023-06-02 11:47:11 +02:00
->exec('make clean')
->exec("make -j{$this->builder->concurrency}")
->exec('make install');
2024-07-09 11:15:34 +08:00
2025-07-22 21:13:35 +08:00
$this->patchPkgconfPrefix(patch_option: PKGCONF_PATCH_PREFIX);
FileSystem::removeDir(BUILD_LIB_PATH . '/icu');
2023-06-02 11:47:11 +02:00
}
}