Add frankenphp SAPI build support

This commit is contained in:
crazywhalecc
2026-02-10 22:35:25 +08:00
committed by Jerry Ma
parent 82bf317911
commit 18434b68f6
12 changed files with 392 additions and 89 deletions

View File

@@ -19,4 +19,11 @@ class micro
{
FileSystem::replaceFileStr("{$package->getSourceDir()}/Makefile", 'OVERALL_TARGET =', 'OVERALL_TARGET = libphp.la');
}
#[BeforeStage('php', [php::class, 'makeForUnix'], 'php-micro')]
#[PatchDescription('Patch Makefile to skip installing micro binary')]
public function patchMakefileBeforeUnixMake(TargetPackage $package): void
{
FileSystem::replaceFileStr("{$package->getSourceDir()}/Makefile", 'install-micro', '');
}
}