git: f5ca30bdc4f4 - main - devel/ocl-icd: update to 2.3.2, fix DOC/MANPAGE Handhabung
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 30 Sep 2024 14:08:42 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f5ca30bdc4f4f54c027f9d767416c3ade46afd7f
commit f5ca30bdc4f4f54c027f9d767416c3ade46afd7f
Author: O. Hartmann <ohartmann@walstatt.org>
AuthorDate: 2024-01-24 16:06:45 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-09-30 14:02:01 +0000
devel/ocl-icd: update to 2.3.2, fix DOC/MANPAGE Handhabung
PR: 276593, 276592
Reported by: devel@stasyan.com
---
devel/ocl-icd/Makefile | 10 ++++++++--
devel/ocl-icd/distinfo | 6 +++---
devel/ocl-icd/pkg-message | 21 +++++++++++++++++++++
devel/ocl-icd/pkg-plist | 1 +
4 files changed, 33 insertions(+), 5 deletions(-)
diff --git a/devel/ocl-icd/Makefile b/devel/ocl-icd/Makefile
index 61c28ae7707a..6d7d875d5580 100644
--- a/devel/ocl-icd/Makefile
+++ b/devel/ocl-icd/Makefile
@@ -1,7 +1,6 @@
PORTNAME= ocl-icd
-PORTVERSION= 2.3.1
-PORTREVISION= 2
DISTVERSIONPREFIX= v
+DISTVERSION= 2.3.2
CATEGORIES= devel
MAINTAINER= ohartmann@walstatt.org
@@ -35,8 +34,15 @@ OPTIONS_SUB= yes
MANPAGES_BUILD_DEPENDS= asciidoc:textproc/asciidoc \
xmlto:textproc/xmlto
+.include <bsd.port.options.mk>
+
post-patch:
+.if ${PORT_OPTIONS:MDOCS} || ${PORT_OPTIONS:MMANPAGES}
@${REINPLACE_CMD} -e 's|/etc/|${LOCALBASE}/etc/|g' \
${WRKSRC}/doc/libOpenCL.7.txt.in
+.else
+ @${REINPLACE_CMD} -e 's|doc tests|tests|g' \
+ ${WRKSRC}/Makefile.am
+.endif
.include <bsd.port.mk>
diff --git a/devel/ocl-icd/distinfo b/devel/ocl-icd/distinfo
index d806d7632b26..68c17e0cb088 100644
--- a/devel/ocl-icd/distinfo
+++ b/devel/ocl-icd/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1635003200
-SHA256 (OCL-dev-ocl-icd-v2.3.1_GH0.tar.gz) = a32b67c2d52ffbaf490be9fc18b46428ab807ab11eff7664d7ff75e06cfafd6d
-SIZE (OCL-dev-ocl-icd-v2.3.1_GH0.tar.gz) = 102616
+TIMESTAMP = 1686998862
+SHA256 (OCL-dev-ocl-icd-v2.3.2_GH0.tar.gz) = ec47d7dcd961ea06695b067e8b7edb82e420ddce03e0081a908c62fd0b8535c5
+SIZE (OCL-dev-ocl-icd-v2.3.2_GH0.tar.gz) = 108988
diff --git a/devel/ocl-icd/pkg-message b/devel/ocl-icd/pkg-message
new file mode 100644
index 000000000000..5ff8915adbaf
--- /dev/null
+++ b/devel/ocl-icd/pkg-message
@@ -0,0 +1,21 @@
+Check your environment variable
+
+ OLC_ICD_VENODRDIR
+
+On FreeBSD, this is set to
+
+ OCL_ICD_VENDORDIR=/usr/local/etc/OpenCL/vendors
+
+The OCL_ICD_VENDORDIR
+(ICD = Installable Client Driver) holds the platform
+specific driver configuration files (i.e Intel,
+nVidia, AMD, other OpenCL capable devices).
+
+It could be set globally from your system's shell environemt
+setting, for
+
+csh in /etc/csh.cshrc:
+ setenv OCL_ICD_VENDORDIR /usr/local/etc/OpenCL/vendors
+
+or for sh/bash/ksh and derivatives, /etc/profile:
+ export OCL_ICD_VENDORDIR=/usr/local/etc/OpenCL/vendors
diff --git a/devel/ocl-icd/pkg-plist b/devel/ocl-icd/pkg-plist
index 089a7471b891..fddc29156ae6 100644
--- a/devel/ocl-icd/pkg-plist
+++ b/devel/ocl-icd/pkg-plist
@@ -1,3 +1,4 @@
+bin/cllayerinfo
include/ocl_icd.h
lib/libOpenCL.so
lib/libOpenCL.so.1