30 lines
688 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;
f_passthru(
$this->builder->set_x . ' && ' .
"cd {$this->source_dir} && " .
"{$this->builder->configure_env} ./configure " .
'--enable-static --disable-shared ' .
'--prefix= && ' . // use prefix=/
'make clean && ' .
"make -j{$this->builder->concurrency} && " .
'make install DESTDIR=' . $destdir
);
}
}