29 lines
644 B
PHP
Raw Normal View History

2023-03-18 18:46:10 +08:00
<?php
declare(strict_types=1);
namespace SPC\builder\macos\library;
2023-03-18 19:09:59 +08:00
/**
* gmp is a template library class for unix
*/
2023-03-18 18:46:10 +08:00
class gmp extends MacOSLibraryBase
{
public const NAME = 'gmp';
protected function build()
{
[,,$destdir] = SEPARATED_PATH;
2023-04-03 20:47:24 +08:00
shell()->cd($this->source_dir)
->exec(
"{$this->builder->configure_env} ./configure " .
'--enable-static --disable-shared ' .
'--prefix='
)
->exec('make clean')
->exec("make -j{$this->builder->concurrency}")
->exec("make install DESTDIR={$destdir}");
2023-03-18 18:46:10 +08:00
}
}