2023-04-30 15:04:50 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace SPC\builder\unix\library;
|
|
|
|
|
|
|
|
|
|
trait ncurses
|
|
|
|
|
{
|
2023-08-20 19:51:45 +08:00
|
|
|
protected function build(): void
|
2023-04-30 15:04:50 +08:00
|
|
|
{
|
|
|
|
|
shell()->cd($this->source_dir)
|
|
|
|
|
->exec(
|
|
|
|
|
"{$this->builder->configure_env} ./configure " .
|
|
|
|
|
'--enable-static ' .
|
|
|
|
|
'--disable-shared ' .
|
|
|
|
|
'--enable-overwrite ' .
|
|
|
|
|
'--with-curses-h ' .
|
|
|
|
|
'--enable-pc-files ' .
|
|
|
|
|
'--enable-echo ' .
|
2023-04-30 15:43:08 +08:00
|
|
|
// '--enable-widec ' .
|
2023-04-30 15:04:50 +08:00
|
|
|
'--with-normal ' .
|
|
|
|
|
'--with-ticlib ' .
|
|
|
|
|
'--without-tests ' .
|
|
|
|
|
'--without-dlsym ' .
|
|
|
|
|
'--without-debug ' .
|
|
|
|
|
'-enable-symlinks' .
|
|
|
|
|
'--bindir=' . BUILD_ROOT_PATH . '/bin ' .
|
|
|
|
|
'--includedir=' . BUILD_ROOT_PATH . '/include ' .
|
|
|
|
|
'--libdir=' . BUILD_ROOT_PATH . '/lib ' .
|
|
|
|
|
'--prefix=' . BUILD_ROOT_PATH
|
|
|
|
|
)
|
|
|
|
|
->exec('make clean')
|
|
|
|
|
->exec("make -j{$this->builder->concurrency}")
|
|
|
|
|
->exec('make install');
|
|
|
|
|
}
|
|
|
|
|
}
|