mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-06 00:05:42 +08:00
Forward-port #1095
This commit is contained in:
16
config/pkg/ext/ext-decimal.yml
Normal file
16
config/pkg/ext/ext-decimal.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
ext-decimal:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: ghtagtar
|
||||
repo: php-decimal/ext-decimal
|
||||
match: 'v2\.\d.*'
|
||||
extract: php-src/ext/decimal
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: MIT
|
||||
depends:
|
||||
- libmpdec
|
||||
php-extension:
|
||||
arg-type@unix: '--enable-decimal --with-libmpdec-path=@build_root_path@'
|
||||
arg-type@windows: '--with-decimal'
|
||||
15
config/pkg/lib/libmpdec.yml
Normal file
15
config/pkg/lib/libmpdec.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
libmpdec:
|
||||
type: library
|
||||
artifact:
|
||||
source:
|
||||
type: url
|
||||
url: 'https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-4.0.1.tar.gz'
|
||||
metadata:
|
||||
license-files: [COPYRIGHT.txt]
|
||||
license: BSD-2-Clause
|
||||
headers:
|
||||
- mpdecimal.h
|
||||
static-libs@unix:
|
||||
- libmpdec.a
|
||||
static-libs@windows:
|
||||
- libmpdec_a.lib
|
||||
Reference in New Issue
Block a user