mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-03 06:45:39 +08:00
21 lines
500 B
PHP
21 lines
500 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace SPC\builder\macos\library;
|
|
|
|
class icu extends MacOSLibraryBase
|
|
{
|
|
public const NAME = 'icu';
|
|
|
|
protected function build(): void
|
|
{
|
|
$root = BUILD_ROOT_PATH;
|
|
shell()->cd($this->source_dir . '/source')
|
|
->exec("./runConfigureICU MacOSX --enable-static --disable-shared --prefix={$root}")
|
|
->exec('make clean')
|
|
->exec("make -j{$this->builder->concurrency}")
|
|
->exec('make install');
|
|
}
|
|
}
|