mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
29 lines
659 B
YAML
29 lines
659 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
|
|
|
|
if test {{hw.platform}} = darwin; then
|
|
install_name_tool -change \
|
|
@rpath/libmpdec.3.dylib \
|
|
@loader_path/libmpdec.3.dylib \
|
|
{{prefix}}/lib/libmpdec++.dylib
|
|
fi
|
|
|
|
test:
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
script: |
|
|
cc test.c -o test -lmpdec
|
|
./test
|