View | Details | Raw Unified | Return to bug 171914 | Differences between
and this patch

Collapse All | Expand All

(-)pocl/Makefile (+80 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=		pocl
4
PORTVERSION=	0.13
5
CATEGORIES=		devel
6
7
MAINTAINER=		ohartman@zedat.fu-berlin.de
8
COMMENT=		POrtable Computing Language (POCL)
9
10
MASTER_SITES=	SF
11
MASTER_SITE_SUBDIR=	pocl/
12
DISTNAME=	${PORTNAME}-${PORTVERSION:C/\.[0-9]$//}
13
14
LICENSE=		GPLv3
15
LICENSE_FILE=		${WRKSRC}/LICENSE
16
17
BUILD_DEPENDS=	${LOCALBASE}/llvm${LLVM_VERSION}/bin/llvm-config:${PORTSDIR}/devel/llvm${LLVM_VERSION} \
18
			${LOCALBASE}/bin/clang${LLVM_VERSION}:${PORTSDIR}/lang/clang${LLVM_VERSION}
19
RUN_DEPENDS=	${BUILD_DEPENDS}
20
RUN_DEPENDS=	${BUILD_DEPENDS}
21
22
LIB_DEPENDS=	libhwloc.so:${PORTSDIR}/devel/hwloc
23
24
CONFLICTS=		freeocl[0-9]*
25
26
NOT_FOR_ARCHS= 	i386
27
28
LLVM_VERSION=	38
29
CLANG_VERSION=	${LLVM_VERSION}
30
31
GNU_CONFIGURE=	yes
32
USE_LDCONFIG=	yes
33
USE_GL=			yes
34
USES=			autoreconf pkgconfig gmake pathfix libtool:keepla
35
36
INSTALL_TARGET= install-strip
37
38
MAKE_ARGS+=		PKGCONFIGDIR=${PREFIX}/libdata/pkgconfig
39
40
CPPFLAGS+=		-I${LOCALBASE}/include
41
LDFLAGS+=		-L${LOCALBASE}/lib
42
43
CONFIGURE_ENV=	LLVM_CONFIG="${LOCALBASE}/llvm${LLVM_VERSION}/bin/llvm-config"
44
CONFIGURE_ARGS= CLANGXX_FLAGS=-std=gnu++11
45
CONFIGURE_ENABLE= pedantic
46
47
ALL_TARGET=	all
48
49
OCL_ICD_VENDORS?=	${PREFIX}/etc/OpenCL/vendors
50
51
OPTIONS_DEFINE=		HEADER DEBUG
52
53
OPTIONS_GROUP=		TEST
54
OPTIONS_GROUP_TEST= OCLBOOK
55
56
OPTIONS_SINGLE=		ICD
57
OPTIONS_SINGLE_ICD=	OCL_ICD NO_ICD
58
OPTIONS_DEFAULT=	OCL_ICD
59
60
OCLBOOK_DESC=	Tests from the OpenCL book
61
DEBUG_DESC=		Debug build of pocl 
62
VIENNACL_DESC=	ViennaCL Test
63
OCL_ICD_DESC=	ICD loader: ocl-icd
64
NO_ICD_DESC=	No ICD loader (direct linkage against pocl lib)
65
HEADER_DESC=	Install CL headers from this port
66
67
HEADER_CONFLICTS=	opencl
68
69
HEADER_PKG_DEPENDS_OFF=	${LOCALBASE}/include/CL/cl.h:${PORTSDIR}/devel/opencl
70
71
OCL_ICD_PKG_DEPENDS=	${LOCALBASE}/include/ocl_icd.h:${PORTSDIR}/devel/ocl-icd
72
ICD_CONFIGURE_ENABLE= 	tests-with-icd
73
NO_ICD_CONFIGURE_ENABLE= direct-linkage
74
75
OCLBOOK_CONFIGURE_ENABLE= enable_testsuites="opencl-book-samples,cloverleaf,opencl_book_samples,halide,vexcl"
76
OCLBOOK_ALL_TARGET=	check
77
78
DEBUG_CONFIGURE_ENABLE=	debug
79
80
.include <bsd.port.mk>
(-)pocl/distinfo (+2 lines)
Line 0 Link Here
1
SHA256 (pocl-0.13.tar.gz) = a17f37d8f26819c0c8efc6de2b57f67a0c8a81514fc9cd5005434e49d67499f9
2
SIZE (pocl-0.13.tar.gz) = 1901208
(-)pocl/files/patch-Makefile.am (+23 lines)
Line 0 Link Here
1
--- Makefile.am.orig	2014-01-07 09:50:56.000000000 +0100
2
+++ Makefile.am	2014-06-20 17:07:10.000000000 +0200
3
@@ -26,7 +26,11 @@
4
 
5
 ACLOCAL_AMFLAGS = -I m4
6
 
7
+if FREEBSD_HOST_OS
8
+pkgconfigdir = $(PKGCONFIGDIR)
9
+else
10
 pkgconfigdir = $(libdir)/pkgconfig
11
+endif
12
 pkgconfig_DATA = pocl.pc
13
 
14
 CLEANFILES = install-paths.h
15
@@ -67,7 +71,7 @@
16
 	echo "#define PKGDATADIR \"${pkgdatadir}\"" > $@.new
17
 	echo "#define PKGLIBEXECDIR \"${pkglibexecdir}\"" >> $@.new
18
 	echo "#define PKGINCLUDEDIR \"${pkgincludedir}\"" >> $@.new
19
-	@if cmp --quiet $@.new $@ ; then \
20
+	@if cmp $@.new $@ ; then \
21
 		: "Paths not changed" ;\
22
 		$(RM) $@.new ;\
23
 	else \
(-)pocl/files/patch-configure.ac (+11 lines)
Line 0 Link Here
1
--- configure.ac.orig	2016-03-04 16:26:07.000000000 +0100
2
+++ configure.ac	2016-03-06 11:46:14.420446000 +0100
3
@@ -79,7 +79,7 @@
4
 # LLVM configuration
5
 #
6
 AC_ARG_VAR([LLVM_CONFIG], [Program used to retrieve LLVM options and binaries])
7
-AC_PATH_PROGS([LLVM_CONFIG], [llvm-config llvm-config-mp-3.7 llvm-config-3.7 llvm-config37 llvm-config-mp-3.6 llvm-config-3.6 llvm-config36])
8
+AC_PATH_PROGS([LLVM_CONFIG], [llvm-config llvm-config-mp-3.8 llvm-config-3.8 llvm-config-mp-3.7 llvm-config-3.7 llvm-config37 llvm-config-mp-3.6 llvm-config-3.6 llvm-config36])
9
 test -z "$LLVM_CONFIG" && AC_MSG_FAILURE([no llvm-config found in \$PATH])
10
 
11
 LLVM_VERSION=`$LLVM_CONFIG --version`
(-)pocl/files/patch-pocl.icd.in (+5 lines)
Line 0 Link Here
1
--- ./pocl.icd.in.orig	2014-06-20 18:21:22.000000000 +0200
2
+++ ./pocl.icd.in	2014-06-20 18:21:36.000000000 +0200
3
@@ -1 +1 @@
4
-@libdir@/libpocl.so.VER
5
+@libdir@/libpocl.so
(-)pocl/pkg-descr (+26 lines)
Line 0 Link Here
1
Portable OpenCL (pocl)
2
----------------------
3
4
Portable OpenCL aims to be an efficient open source (MIT-licensed) 
5
implementation of the OpenCL 1.2 standard. 
6
7
In addition to producing an easily portable open source OpenCL
8
implementation, another major goal of the project is improving 
9
performance portability of OpenCL programs with compiler 
10
optimizations, reducing the need for target-dependent manual 
11
optimizations. At the core of pocl is a set of LLVM passes 
12
used to statically parallelize multiple work-items with the kernel
13
compiler, even in the presence of work-group barriers. This enables 
14
parallelization of the fine-grained static concurrency in the work 
15
groups in multiple ways (SIMD, VLIW, superscalar,...).
16
17
The code base is modularized to allow easy adding of new "device drivers"
18
in the host-device layer. A generic multithreaded "target driver" is 
19
included. It allows running OpenCL applications on a host that supports 
20
the pthread library with multithreading at the work group granularity.
21
22
Links
23
-----
24
Home page/wiki:    WWW: http://pocl.sourceforge.net/
25
IRC:               #pocl @ irc.oftc.net
26
(-)pocl/pkg-message (+24 lines)
Line 0 Link Here
1
2
When using ICD, make sure you have set the environment variable
3
4
OCL_ICD_VENDORS=${PREFIX}/etc/OpenCL/vendors/
5
6
properly. Usually, this should point to 
7
${PREFIX}/etc/OpenCL/vendors/
8
with ${PREFIX} set to /usr/local in the standard environment.
9
10
Deadlocks (freezes) on FreeBSD:
11
12
OpenCL applications using pocl on FreeBSD must be compiled with 
13
options CFLAGS+=-pthread or CXXFLAGS+=-pthread, otherwise someone risk
14
that a library may not initialize the threading on BSD independently, 
15
even if an ICD loader is used.
16
17
See: 
18
	http://www.freebsd.org/cgi/query-pr.cgi?pr=163512
19
20
(Source: http://portablecl.org/docs/html/faq.html?highlight=freebsd)
21
22
For documentation, please consult
23
24
	http://portablecl.org/docs/html/
(-)pocl/pkg-plist (+27 lines)
Line 0 Link Here
1
bin/pocl-standalone
2
etc/OpenCL/vendors/pocl.icd
3
include/poclu.h
4
lib/libpocl.a
5
lib/libpocl.la
6
lib/libpocl.so
7
lib/libpocl.so.1
8
lib/libpocl.so.1.6.0
9
lib/libpoclu.a
10
lib/libpoclu.la
11
lib/libpoclu.so
12
lib/libpoclu.so.1
13
lib/libpoclu.so.1.6.0
14
lib/pocl/llvmopencl.a
15
lib/pocl/llvmopencl.la
16
lib/pocl/llvmopencl.so
17
lib/pocl/llvmopencl.so.7
18
lib/pocl/llvmopencl.so.7.0.0
19
libdata/pkgconfig/pocl.pc
20
%%DATADIR%%/include/_kernel.h
21
%%DATADIR%%/include/_kernel_c.h
22
%%DATADIR%%/include/_kernel_constants.h
23
%%DATADIR%%/include/pocl.h
24
%%DATADIR%%/include/pocl_device.h
25
%%DATADIR%%/include/pocl_tests.h
26
%%DATADIR%%/include/pocl_types.h
27
%%DATADIR%%/kernel-amd64-portbld-freebsd%%OSREL%%.bc

Return to bug 171914