pantry/projects/bytereef.org/mpdecimal/package.yml
2023-04-14 01:25:23 -04:00

27 lines
622 B
YAML

distributable:
url: https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-{{ version }}.tar.gz
strip-components: 1
versions:
- 2.5.1
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |
./configure --prefix={{ prefix }}
make --jobs {{hw.concurrency}} install
rm -rf {{prefix}}/share # docs are online
env:
darwin:
# fixes a ruby-machos error
LDFLAGS: -headerpad_max_install_names $LDFLAGS
LDXXFLAGS: -headerpad_max_install_names $LDXXFLAGS
test:
dependencies:
tea.xyz/gx/cc: c99
script: |
cc test.c -o test -lmpdec
./test