pantry/projects/hboehm.info/gc/package.yml
Max Howell 81e7a5e16f
pkgx
2023-10-01 14:44:42 -04:00

34 lines
785 B
YAML

distributable:
url: https://github.com/ivmai/bdwgc/releases/download/v{{version}}/gc-{{version}}.tar.gz
strip-components: 1
versions:
github: ivmai/bdwgc
build:
dependencies:
freedesktop.org/pkg-config: '*'
github.com/ivmai/libatomic_ops: '*'
script:
- ./configure $ARGS
- make --jobs {{ hw.concurrency }}
- make --jobs {{ hw.concurrency }} check
- make --jobs {{ hw.concurrency }} install
env:
ARGS:
- --prefix="{{prefix}}"
- --disable-debug
- --disable-dependency-tracking
- --enable-cplusplus
- --enable-static
- --enable-large-config
test:
dependencies:
freedesktop.org/pkg-config: '*'
script:
- pkg-config --modversion bdw-gc | grep {{version}}
- cc test.cc -lgc -o test
- ./test