View | Details | Raw Unified | Return to bug 181244
Collapse All | Expand All

(-)devel/ocl-icd/Makefile (+48 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	ocl-icd
4
PORTVERSION=	2.2.7
5
CATEGORIES=	devel
6
MASTER_SITES=	https://forge.imag.fr/frs/download.php/667/
7
8
MAINTAINER=	ohartman@zedat.fu-berlin.de
9
COMMENT=	OpenCL Installable Client Driver
10
11
LICENSE=	BSD2CLAUSE
12
LICENSE_FILE=	${WRKSRC}/COPYING
13
14
BUILD_DEPENDS=	opencl>=0:${PORTSDIR}/devel/opencl
15
16
CONFLICTS=	freeocl-[0-9]* opencl-icd-[0-9]*
17
18
USE_RUBY=	yes
19
USE_LDCONFIG=	yes
20
GNU_CONFIGURE=	yes
21
RUBY_NO_RUN_DEPENDS=yes
22
USES=		gmake pathfix libtool
23
INSTALL_TARGET=	install-strip
24
25
CONFIGURE_ARGS+=--disable-official-khronos-headers
26
27
CPPFLAGS+=	-I${LOCALBASE}/include
28
LDFLAGS+=	-L${LOCALBASE}/lib
29
30
OPTIONS_DEFINE=	MANPAGES
31
OPTIONS_DEFAULT=MANPAGES
32
OPTIONS_SUB=	yes
33
34
MANPAGES_BUILD_DEPENDS=	xmlto:${PORTSDIR}/textproc/xmlto \
35
			asciidoc:${PORTSDIR}/textproc/asciidoc
36
37
.include <bsd.port.options.mk>
38
39
.if !${PORT_OPTIONS:MMANPAGES}
40
CONFIGURE_ENV+=	ac_cv_path_A2X=""
41
.endif
42
43
post-patch:
44
	@${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' \
45
		${WRKSRC}/doc/libOpenCL.7.txt \
46
		${WRKSRC}/ocl_icd_loader.c
47
48
.include <bsd.port.mk>
(-)devel/ocl-icd/distinfo (+2 lines)
Line 0 Link Here
1
SHA256 (ocl-icd-2.2.7.tar.gz) = be78886c83b903dd5861f35d62d473e4228b3c13e25535a8665c87cb8a51390b
2
SIZE (ocl-icd-2.2.7.tar.gz) = 450053
(-)devel/ocl-icd/files/patch-ocl_icd_loader.c (+11 lines)
Line 0 Link Here
1
--- ocl_icd_loader.c.orig	2015-06-08 20:29:52.812376622 +0200
2
+++ ocl_icd_loader.c	2015-06-30 11:13:41.123245000 +0200
3
@@ -55,7 +55,7 @@ int debug_ocl_icd_mask=0;
4
 
5
 typedef __typeof__(clGetPlatformInfo) *clGetPlatformInfo_fn;
6
 
7
-inline void dump_vendor_icd(const char* info, const struct vendor_icd *v) {
8
+static inline void dump_vendor_icd(const char* info, const struct vendor_icd *v) {
9
   debug(D_DUMP, "%s %p={ num=%i, handle=%p, f=%p}\n", info,
10
 	v, v->num_platforms, v->dl_handle, v->ext_fn_ptr);
11
 }
(-)devel/ocl-icd/pkg-descr (+6 lines)
Line 0 Link Here
1
OpenCL implementations are provided as ICD (Installable Client Driver). An
2
OpenCL program can use several ICD thanks to the use of an ICD Loader as
3
provided by this project. This free ICD Loader can load any (free or non
4
free) ICD.
5
6
WWW: https://forge.imag.fr/projects/ocl-icd/
(-)devel/ocl-icd/pkg-plist (+10 lines)
Line 0 Link Here
1
include/ocl_icd.h
2
lib/libOpenCL.so
3
lib/libOpenCL.so.1
4
lib/libOpenCL.so.1.0.0
5
libdata/pkgconfig/OpenCL.pc
6
libdata/pkgconfig/ocl-icd.pc
7
%%MANPAGES%%man/man7/libOpenCL.7.gz
8
%%MANPAGES%%man/man7/libOpenCL.so.7.gz
9
%%PORTDOCS%%%%DOCSDIR%%/examples/ocl_icd_bindings.c
10
%%MANPAGES%%%%PORTDOCS%%%%DOCSDIR%%/html/libOpenCL.html

Return to bug 181244