Forward-port #1095

This commit is contained in:
crazywhalecc
2026-04-12 14:17:53 +08:00
parent c505430187
commit d2f007d4c4
5 changed files with 116 additions and 0 deletions

View 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'

View 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