opencl2-headers: update to 2.2.20200313.

This commit is contained in:
Andrew J. Hesford 2020-04-14 08:15:27 -04:00 committed by Juan RP
parent 767174dba3
commit e8463862b6
2 changed files with 12 additions and 49 deletions

View file

@ -1,36 +0,0 @@
From 1da98fd0ced4cb50f859725d5a8dc5e2633f9343 Mon Sep 17 00:00:00 2001
From: James Price <j.price@bristol.ac.uk>
Date: Wed, 12 Dec 2018 19:59:32 +0000
Subject: [PATCH] Use __vector instead of vector to fix altivec builds
Patch taken from Debian khronos-opencl-headers package:
https://sources.debian.org/patches/khronos-opencl-headers/1.2-svn26009-1/use__vector.patch/
---
CL/cl_platform.h | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/CL/cl_platform.h b/CL/cl_platform.h
index 0c817dd..184db25 100644
--- cl_platform.h
+++ cl_platform.h
@@ -401,13 +401,13 @@ typedef unsigned int cl_GLenum;
/* Define basic vector types */
#if defined( __VEC__ )
#include <altivec.h> /* may be omitted depending on compiler. AltiVec spec provides no way to detect whether the header is required. */
- typedef vector unsigned char __cl_uchar16;
- typedef vector signed char __cl_char16;
- typedef vector unsigned short __cl_ushort8;
- typedef vector signed short __cl_short8;
- typedef vector unsigned int __cl_uint4;
- typedef vector signed int __cl_int4;
- typedef vector float __cl_float4;
+ typedef __vector unsigned char __cl_uchar16;
+ typedef __vector signed char __cl_char16;
+ typedef __vector unsigned short __cl_ushort8;
+ typedef __vector signed short __cl_short8;
+ typedef __vector unsigned int __cl_uint4;
+ typedef __vector signed int __cl_int4;
+ typedef __vector float __cl_float4;
#define __CL_UCHAR16__ 1
#define __CL_CHAR16__ 1
#define __CL_USHORT8__ 1

View file

@ -1,22 +1,21 @@
# Template file for 'opencl2-headers'
pkgname=opencl2-headers
_openclver=2.0
_distver=20160105
_githash=ad68ab31a430c033868574fb49c769ac09d6b6d8
version="${_openclver}.${_distver}"
revision=2
_openclver=2.2
_distver=2020.03.13
version="${_openclver}.20200313"
revision=1
archs=noarch
wrksrc="OpenCL-Headers-${_githash}"
short_desc="OpenCL 2.0 (Open Computing Language) header files"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://www.khronos.org/registry/cl/"
wrksrc="OpenCL-Headers-${_distver}"
short_desc="OpenCL 2.2 (Open Computing Language) header files"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="Apache-2.0"
homepage="https://github.com/KhronosGroup/OpenCL-Headers"
distfiles="${homepage}/archive/v${_distver}.tar.gz"
checksum=664bbe587e5a0a00aac267f645b7c413586e7bc56dca9ff3b00037050d06f476
provides="opencl-headers-${version}_${revision}"
replaces="opencl-headers>=0"
distfiles="https://github.com/KhronosGroup/OpenCL-Headers/archive/${_githash}.tar.gz"
checksum=841b33da523ed095cc95cbf1de081e798636c037b45e9f57541e49911f13e85f
do_install() {
vmkdir usr/include/CL
install -m644 *.h ${DESTDIR}/usr/include/CL
install -m644 CL/*.h ${DESTDIR}/usr/include/CL
}