mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
+khronos.org/opencl-headers (#2746)
* +khronos.org/opencl-headers * Removed unneeded build args * Removed unneeded build arg --------- Co-authored-by: James Reynolds <magnsuviri@me.com>
This commit is contained in:
parent
f1a13b9116
commit
5460f2600e
35
projects/khronos.org/opencl-headers/package.yml
Normal file
35
projects/khronos.org/opencl-headers/package.yml
Normal file
|
@ -0,0 +1,35 @@
|
|||
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:
|
||||
tea.xyz/gx/cc: c99
|
||||
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:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
fixture: |
|
||||
#include <stdio.h>
|
||||
#include <CL/opencl.h>
|
||||
int main(void) {
|
||||
return 0;
|
||||
}
|
||||
script: |
|
||||
mv $FIXTURE b.c
|
||||
cc b.c
|
||||
./a.out
|
Loading…
Reference in a new issue