mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-06 16:25:39 +08:00
refactor to pkg-config and add some add-on libs for gd
This commit is contained in:
@@ -22,14 +22,7 @@ namespace SPC\builder\macos\library;
|
||||
|
||||
class bzip2 extends MacOSLibraryBase
|
||||
{
|
||||
public const NAME = 'bzip2';
|
||||
use \SPC\builder\unix\library\bzip2;
|
||||
|
||||
protected function build()
|
||||
{
|
||||
shell()->cd($this->source_dir)
|
||||
->exec("make {$this->builder->configure_env} PREFIX='" . BUILD_ROOT_PATH . "' clean")
|
||||
->exec("make -j{$this->builder->concurrency} {$this->builder->configure_env} PREFIX='" . BUILD_ROOT_PATH . "' libbz2.a")
|
||||
->exec('cp libbz2.a ' . BUILD_LIB_PATH)
|
||||
->exec('cp bzlib.h ' . BUILD_INCLUDE_PATH);
|
||||
}
|
||||
public const NAME = 'bzip2';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user