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:
|
|
|
|
- 2.5.1
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
tea.xyz/gx/cc: c99
|
|
|
|
tea.xyz/gx/make: '*'
|
|
|
|
script: |
|
|
|
|
./configure --prefix={{ prefix }}
|
|
|
|
make --jobs {{ hw.concurrency }} install
|
2022-08-31 21:05:21 +03:00
|
|
|
rm -rf {{prefix}}/share # docs are online
|
2022-08-03 01:24:06 +03:00
|
|
|
|
2022-09-16 21:39:00 +03:00
|
|
|
if test {{hw.platform}} = darwin; then
|
2022-09-25 15:47:23 +03:00
|
|
|
install_name_tool -change \
|
|
|
|
@rpath/libmpdec.3.dylib \
|
|
|
|
@loader_path/libmpdec.3.dylib \
|
|
|
|
{{prefix}}/lib/libmpdec++.dylib
|
2022-09-16 21:39:00 +03:00
|
|
|
fi
|
|
|
|
|
2022-08-03 01:24:06 +03:00
|
|
|
test:
|
|
|
|
dependencies:
|
|
|
|
tea.xyz/gx/cc: c99
|
|
|
|
script: |
|
2022-08-31 21:05:21 +03:00
|
|
|
cc test.c -o test -lmpdec
|
2022-08-03 01:24:06 +03:00
|
|
|
./test
|