mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 08:45:40 +08:00
Add go-xcaddy,musl-toolchain,php,upx, and also glfw linux support
This commit is contained in:
9
config/artifact/glfw.yml
Normal file
9
config/artifact/glfw.yml
Normal 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
|
||||
7
config/artifact/php-src.yml
Normal file
7
config/artifact/php-src.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
php-src:
|
||||
metadata:
|
||||
license-files:
|
||||
- LICENSE
|
||||
license: PHP-3.01
|
||||
source:
|
||||
type: php-release
|
||||
@@ -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": [
|
||||
|
||||
@@ -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",
|
||||
|
||||
5
config/pkg/ext/ext-glfw.yml
Normal file
5
config/pkg/ext/ext-glfw.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
ext-glfw:
|
||||
type: php-extension
|
||||
artifact: glfw
|
||||
depends:
|
||||
- glfw
|
||||
6
config/pkg/lib/glfw.yml
Normal file
6
config/pkg/lib/glfw.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
glfw:
|
||||
type: library
|
||||
artifact: glfw
|
||||
lang: cpp
|
||||
static-libs@unix:
|
||||
- libglfw3.a
|
||||
6
config/pkg/target/go-xcaddy.yml
Normal file
6
config/pkg/target/go-xcaddy.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
go-xcaddy:
|
||||
type: target
|
||||
artifact:
|
||||
binary: custom
|
||||
static-bins:
|
||||
- xcaddy
|
||||
6
config/pkg/target/musl-toolchain.yml
Normal file
6
config/pkg/target/musl-toolchain.yml
Normal 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
44
config/pkg/target/php.yml
Normal 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
|
||||
7
config/pkg/target/upx.yml
Normal file
7
config/pkg/target/upx.yml
Normal 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' } }
|
||||
Reference in New Issue
Block a user