git: a8a9e7bbcea7 - main - devel/ocl-icd: Fix build after devel/opencl update

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Sat, 06 May 2023 13:04:18 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a8a9e7bbcea77ea4ce13972cf66e323b2a8adb56

commit a8a9e7bbcea77ea4ce13972cf66e323b2a8adb56
Author:     O. Hartmann <ohartmann@walstatt.org>
AuthorDate: 2023-05-05 21:33:44 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2023-05-06 12:59:23 +0000

    devel/ocl-icd: Fix build after devel/opencl update
    
    ocl-icd comes with a copy of Khrono's OpenCL headers. ocl-icd hasn't been
    updated since 8/2021, the copy of OpenCL headers is outdated and results in a
    compile error while compiling the port with most recent OpenCL headers 3.0.14
    provided by Khronos.
    The patch simply provides withj the correct
    
    CONFIGURE_ARGS=--enable-official-khronos-headers
    
    to ensure the pickup of devel/opencl headers.
    
    PR:             271255
    Reported by:    leres@
    Fixes:          0eb6406f6594
---
 devel/ocl-icd/Makefile | 31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)

diff --git a/devel/ocl-icd/Makefile b/devel/ocl-icd/Makefile
index a059bddac127..f5631d76417b 100644
--- a/devel/ocl-icd/Makefile
+++ b/devel/ocl-icd/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	ocl-icd
-DISTVERSIONPREFIX=	v
 PORTVERSION=	2.3.1
+PORTREVISION=	1
+DISTVERSIONPREFIX=	v
 CATEGORIES=	devel
 
 MAINTAINER=	ohartmann@walstatt.org
@@ -10,28 +11,28 @@ WWW=		https://github.com/OCL-dev/ocl-icd
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BUILD_DEPENDS=	opencl>3.0:devel/opencl
+BUILD_DEPENDS=	opencl>=3.0:devel/opencl
 
 USES=		autoreconf gmake libtool localbase:ldflags pathfix ruby:build
 
-USE_GITHUB=	yes
-GH_ACCOUNT=	OCL-dev
-USE_LDCONFIG=	yes
-GNU_CONFIGURE=	yes
-CPPFLAGS+=	-DCL_TARGET_OPENCL_VERSION=300
+USE_GITHUB=		yes
+GH_ACCOUNT=		OCL-dev
+USE_LDCONFIG=		yes
+GNU_CONFIGURE=		yes
+CONFIGURE_ARGS+=	--enable-official-khronos-headers \
+			--enable-custom-vendordir \
+			--enable-pthread-once
 
 INSTALL_TARGET=	install-strip
 
-CONFIGURE_ARGS+=--disable-official-khronos-headers \
-		--enable-custom-vendordir \
-		--enable-pthread-once
+CPPFLAGS+=	-DCL_TARGET_OPENCL_VERSION=300
 
-OPTIONS_DEFINE=	DOCS MANPAGES
-OPTIONS_DEFAULT=MANPAGES
-OPTIONS_SUB=	yes
+OPTIONS_DEFINE=		DOCS MANPAGES
+OPTIONS_DEFAULT=	MANPAGES
+OPTIONS_SUB=		yes
 
-MANPAGES_BUILD_DEPENDS=	xmlto:textproc/xmlto \
-			asciidoc:textproc/asciidoc
+MANPAGES_BUILD_DEPENDS=	asciidoc:textproc/asciidoc \
+			xmlto:textproc/xmlto
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|/etc/|${LOCALBASE}/etc/|g' \