pantry/projects/c-ares.org/package.yml
Max Howell ff60942840 +c-ares
Closes #202
2023-04-11 17:19:21 -04:00

33 lines
648 B
YAML

distributable:
url: https://c-ares.org/download/c-ares-{{version}}.tar.gz
strip-components: 1
versions:
- 1.19.0
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
cmake.org: ^3
working-directory: build
script: |
cmake .. -DCMAKE_INSTALL_PREFIX="{{prefix}}" -DCMAKE_BUILD_TYPE=Release
make --jobs {{hw.concurrency}} install
test:
dependencies:
tea.xyz/gx/cc: c99
fixture: |
#include <stdio.h>
#include <ares.h>
int main() {
ares_library_init(ARES_LIB_INIT_ALL);
ares_library_cleanup();
return 0;
}
script: |
mv $FIXTURE b.c
cc b.c -lcares
./a.out