2022-08-03 01:24:06 +03:00
|
|
|
distributable:
|
|
|
|
url: https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-{{ version }}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2023-05-01 20:14:59 +03:00
|
|
|
url: https://www.bytereef.org/mpdecimal/download.html
|
|
|
|
match: /mpdecimal-\d+\.\d+\.\d+\.tar\.gz/
|
|
|
|
strip:
|
|
|
|
- /mpdecimal-/
|
|
|
|
- /.tar.gz/
|
2022-08-03 01:24:06 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
script: |
|
|
|
|
./configure --prefix={{ prefix }}
|
2023-05-01 20:50:12 +03:00
|
|
|
make --jobs {{hw.concurrency}}
|
|
|
|
make install
|
2022-08-31 21:05:21 +03:00
|
|
|
rm -rf {{prefix}}/share # docs are online
|
2023-04-14 07:57:31 +03:00
|
|
|
env:
|
|
|
|
darwin:
|
|
|
|
# fixes a ruby-machos error
|
|
|
|
LDFLAGS: -headerpad_max_install_names $LDFLAGS
|
|
|
|
LDXXFLAGS: -headerpad_max_install_names $LDXXFLAGS
|
2022-08-03 01:24:06 +03:00
|
|
|
test:
|
|
|
|
script: |
|
2022-08-31 21:05:21 +03:00
|
|
|
cc test.c -o test -lmpdec
|
2022-08-03 01:24:06 +03:00
|
|
|
./test
|