mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
21 lines
552 B
PHP
21 lines
552 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace SPC\builder\unix\library;
|
|
|
|
use SPC\builder\macos\library\MacOSLibraryBase;
|
|
use SPC\store\FileSystem;
|
|
use SPC\util\executor\UnixAutoconfExecutor;
|
|
|
|
trait qdbm
|
|
{
|
|
protected function build(): void
|
|
{
|
|
$ac = UnixAutoconfExecutor::create($this)->configure();
|
|
FileSystem::replaceFileRegex($this->source_dir . '/Makefile', '/MYLIBS = libqdbm.a.*/m', 'MYLIBS = libqdbm.a');
|
|
$ac->make($this instanceof MacOSLibraryBase ? 'mac' : '');
|
|
$this->patchPkgconfPrefix(['qdbm.pc']);
|
|
}
|
|
}
|