2022-08-19 23:48:18 +03:00
|
|
|
distributable:
|
2023-05-01 20:14:59 +03:00
|
|
|
url: https://gmplib.org/download/gmp/gmp-{{ version }}.tar.bz2
|
2022-08-19 23:48:18 +03:00
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2023-05-01 20:14:59 +03:00
|
|
|
url: https://gmplib.org/download/gmp
|
|
|
|
match: /gmp-(\d+\.\d+\.\d+)\.tar\.bz2/
|
|
|
|
strip:
|
|
|
|
- /gmp-/
|
|
|
|
- /.tar.bz2/
|
2022-08-19 23:48:18 +03:00
|
|
|
|
|
|
|
#TODO make by default runs test
|
|
|
|
# disable that
|
|
|
|
# but we should have a `build.test` node that runs it after build
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
gnu.org/m4: 1
|
|
|
|
script: |-
|
|
|
|
./configure \
|
|
|
|
--enable-cxx \
|
|
|
|
--with-pic \
|
|
|
|
--build={{ hw.target }} \
|
|
|
|
--prefix="{{ prefix }}"
|
|
|
|
make --jobs {{ hw.concurrency }}
|
|
|
|
make --jobs {{ hw.concurrency }} check
|
|
|
|
make --jobs {{ hw.concurrency }} install
|
|
|
|
|
2022-09-01 02:04:25 +03:00
|
|
|
test:
|
|
|
|
script: |
|
2022-09-29 05:07:44 +03:00
|
|
|
cc test.c {{ prefix }}/lib/libgmp.a
|
2022-09-01 02:04:25 +03:00
|
|
|
./a.out
|