pantry/projects/gnu.org/gmp/package.yml

34 lines
723 B
YAML
Raw Normal View History

distributable:
url: https://gmplib.org/download/gmp/gmp-{{ version }}.tar.xz
strip-components: 1
#FIXME: need actual versions
versions:
- 6.2.1
#TODO make by default runs test
# disable that
# but we should have a `build.test` node that runs it after build
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
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:
dependencies:
tea.xyz/gx/cc: c99
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