Add go-xcaddy,musl-toolchain,php,upx, and also glfw linux support

This commit is contained in:
crazywhalecc
2026-02-04 15:28:10 +08:00
parent 0afa1dd80c
commit e9c27dee1f
16 changed files with 365 additions and 102 deletions

9
config/artifact/glfw.yml Normal file
View File

@@ -0,0 +1,9 @@
glfw:
metadata:
license-files:
- LICENSE
license: MIT
source:
type: git
url: 'https://github.com/mario-deluna/php-glfw'
rev: master

View File

@@ -0,0 +1,7 @@
php-src:
metadata:
license-files:
- LICENSE
license: PHP-3.01
source:
type: php-release

View File

@@ -244,27 +244,6 @@
"arg-type": "with-path"
}
},
"ext-glfw": {
"type": "php-extension",
"artifact": "ext-glfw",
"depends": [
"glfw"
],
"depends@windows": [],
"license": {
"type": "file",
"path": "LICENSE"
},
"php-extension": {
"support": {
"Windows": "wip",
"BSD": "no",
"Linux": "no"
},
"arg-type": "custom",
"notes": true
}
},
"ext-gmp": {
"type": "php-extension",
"depends": [

View File

@@ -1,70 +1,8 @@
{
"frankenphp": {
"type": "virtual-target",
"artifact": "frankenphp",
"depends": [
"php-embed",
"go-xcaddy"
],
"depends@macos": [
"php-embed",
"go-xcaddy",
"libxml2"
]
},
"go-xcaddy": {
"type": "target",
"artifact": "go-xcaddy",
"static-bins": [
"xcaddy"
]
},
"musl-toolchain": {
"type": "target",
"artifact": "musl-toolchain"
},
"nasm": {
"type": "target",
"artifact": "nasm"
},
"php": {
"type": "target",
"artifact": "php-src",
"depends@macos": [
"libxml2"
]
},
"php-cgi": {
"type": "virtual-target",
"depends": [
"php"
]
},
"php-cli": {
"type": "virtual-target",
"depends": [
"php"
]
},
"php-embed": {
"type": "virtual-target",
"depends": [
"php"
]
},
"php-fpm": {
"type": "virtual-target",
"depends": [
"php"
]
},
"php-micro": {
"type": "virtual-target",
"artifact": "micro",
"depends": [
"php"
]
},
"php-sdk-binary-tools": {
"type": "target",
"artifact": "php-sdk-binary-tools"
@@ -73,10 +11,6 @@
"type": "target",
"artifact": "strawberry-perl"
},
"upx": {
"type": "target",
"artifact": "upx"
},
"vswhere": {
"type": "target",
"artifact": "vswhere",

View File

@@ -0,0 +1,5 @@
ext-glfw:
type: php-extension
artifact: glfw
depends:
- glfw

6
config/pkg/lib/glfw.yml Normal file
View File

@@ -0,0 +1,6 @@
glfw:
type: library
artifact: glfw
lang: cpp
static-libs@unix:
- libglfw3.a

View File

@@ -0,0 +1,6 @@
go-xcaddy:
type: target
artifact:
binary: custom
static-bins:
- xcaddy

View File

@@ -0,0 +1,6 @@
musl-toolchain:
type: target
artifact:
binary:
linux-x86_64: { type: url, url: 'https://dl.static-php.dev/static-php-cli/deps/musl-toolchain/x86_64-musl-toolchain.tgz', extract: '{pkg_root_path}/musl-toolchain' }
linux-aarch64: { type: url, url: 'https://dl.static-php.dev/static-php-cli/deps/musl-toolchain/aarch64-musl-toolchain.tgz', extract: '{pkg_root_path}/musl-toolchain' }

44
config/pkg/target/php.yml Normal file
View File

@@ -0,0 +1,44 @@
frankenphp:
type: virtual-target
artifact:
source:
type: ghtar
repo: php/frankenphp
prefer-stable: true
metadata:
license-files: [LICENSE]
license: MIT
depends:
- php-embed
- go-xcaddy
php:
type: target
artifact: php-src
depends@macos:
- libxml2
php-cgi:
type: virtual-target
depends:
- php
php-cli:
type: virtual-target
depends:
- php
php-embed:
type: virtual-target
depends:
- php
php-fpm:
type: virtual-target
depends:
- php
php-micro:
type: virtual-target
artifact:
source:
type: git
extract: php-src/sapi/micro
rev: master
url: 'https://github.com/static-php/phpmicro'
depends:
- php

View File

@@ -0,0 +1,7 @@
upx:
type: target
artifact:
binary:
linux-x86_64: { type: ghrel, repo: upx/upx, match: upx.+-amd64_linux\.tar\.xz, extract: { upx: '{pkg_root_path}/bin/upx' } }
linux-aarch64: { type: ghrel, repo: upx/upx, match: upx.+-arm64_linux\.tar\.xz, extract: { upx: '{pkg_root_path}/bin/upx' } }
windows-x86_64: { type: ghrel, repo: upx/upx, match: upx.+-win64\.zip, extract: { upx.exe: '{pkg_root_path}/bin/upx.exe' } }