pantry/projects/khronos.org/opencl-headers/package.yml
2023-10-01 20:41:57 -04:00

32 lines
606 B
YAML

distributable:
url: https://github.com/KhronosGroup/OpenCL-Headers/archive/refs/tags/v{{version.raw}}.tar.gz
strip-components: 1
versions:
github: KhronosGroup/OpenCL-Headers
strip: /^v/
build:
dependencies:
gnu.org/make: '*'
cmake.org: '*'
python.org: ^3.11
script:
- cmake -S . -B build $ARGS
- cmake --build build
- cmake --install build
env:
ARGS:
- -DCMAKE_INSTALL_PREFIX={{prefix}}
test:
fixture: |
#include <stdio.h>
#include <CL/opencl.h>
int main(void) {
return 0;
}
script: |
mv $FIXTURE b.c
cc b.c
./a.out