diff --git a/devel/opencl/Makefile b/devel/opencl/Makefile index e190a99b87f4..d79453d45127 100644 --- a/devel/opencl/Makefile +++ b/devel/opencl/Makefile @@ -3,7 +3,7 @@ PORTNAME= opencl PORTVERSION= 2.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MAINTAINER= ohartman@zedat.fu-berlin.de diff --git a/devel/opencl/files/patch-cl__platform.h b/devel/opencl/files/patch-cl__platform.h new file mode 100644 index 000000000000..fbf617c34a5a --- /dev/null +++ b/devel/opencl/files/patch-cl__platform.h @@ -0,0 +1,13 @@ +--- cl_platform.h.orig 2020-06-18 22:38:47 UTC ++++ cl_platform.h +@@ -429,7 +429,9 @@ typedef unsigned int cl_GLenum; + + /* Define basic vector types */ + #if defined( __VEC__ ) +- #include /* may be omitted depending on compiler. AltiVec spec provides no way to detect whether the header is required. */ ++# if !defined(__clang__) ++ #include /* may be omitted depending on compiler. AltiVec spec provides no way to detect whether the header is required. */ ++# endif + typedef vector unsigned char __cl_uchar16; + typedef vector signed char __cl_char16; + typedef vector unsigned short __cl_ushort8;