Line 0
Link Here
|
|
|
1 |
# $FreeBSD$ |
2 |
|
3 |
PORTNAME= pocl |
4 |
PORTVERSION= 0.13 |
5 |
CATEGORIES= devel |
6 |
MASTER_SITES= SF/pocl \ |
7 |
http://portablecl.org/downloads/ |
8 |
|
9 |
MAINTAINER= ohartman@zedat.fu-berlin.de |
10 |
COMMENT= POrtable Computing Language (POCL) |
11 |
|
12 |
LICENSE= GPLv3 |
13 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
14 |
|
15 |
BUILD_DEPENDS= llvm${LLVM_VERSION}>=0:devel/llvm${LLVM_VERSION} |
16 |
LIB_DEPENDS= libhwloc.so:devel/hwloc \ |
17 |
libltdl.so:devel/libltdl |
18 |
RUN_DEPENDS= llvm${LLVM_VERSION}>=0:devel/llvm${LLVM_VERSION} |
19 |
|
20 |
CONFLICTS= freeocl[0-9]* |
21 |
|
22 |
NOT_FOR_ARCHS= i386 |
23 |
|
24 |
LLVM_VERSION= 37 |
25 |
|
26 |
GNU_CONFIGURE= yes |
27 |
USE_LDCONFIG= yes |
28 |
USE_GL= yes |
29 |
#USES= autoreconf gmake localbase pathfix pkgconfig libtool |
30 |
USES= gmake localbase ncurses pathfix pkgconfig libtool:keepla |
31 |
|
32 |
INSTALL_TARGET= install-strip |
33 |
|
34 |
MAKE_ARGS+= PKGCONFIGDIR=${PREFIX}/libdata/pkgconfig |
35 |
|
36 |
CONFIGURE_ENV= LLVM_CONFIG="${LOCALBASE}/llvm${LLVM_VERSION}/bin/llvm-config" \ |
37 |
CLANGXX_FLAGS=-std=gnu++11 |
38 |
CONFIGURE_ENABLE= pedantic |
39 |
|
40 |
ALL_TARGET= all |
41 |
|
42 |
OCL_ICD_VENDORS?= ${PREFIX}/etc/OpenCL/vendors |
43 |
|
44 |
OPTIONS_DEFINE= HEADER DEBUG |
45 |
|
46 |
OPTIONS_GROUP= TEST |
47 |
OPTIONS_GROUP_TEST= OCLBOOK |
48 |
|
49 |
OPTIONS_SINGLE= ICD |
50 |
OPTIONS_SINGLE_ICD= OCL_ICD NO_ICD |
51 |
OPTIONS_DEFAULT= OCL_ICD |
52 |
|
53 |
OCLBOOK_DESC= Tests from the OpenCL book |
54 |
DEBUG_DESC= Debug build of pocl |
55 |
VIENNACL_DESC= ViennaCL Test |
56 |
OCL_ICD_DESC= ICD loader: ocl-icd |
57 |
NO_ICD_DESC= No ICD loader (direct linkage against pocl lib) |
58 |
HEADER_DESC= Install CL headers from this port |
59 |
|
60 |
HEADER_CONFLICTS= opencl |
61 |
|
62 |
HEADER_BUILD_DEPENDS_OFF= opencl>=2.1:devel/opencl |
63 |
|
64 |
OCL_ICD_LIB_DEPENDS= libOpenCL.so:devel/ocl-icd |
65 |
ICD_CONFIGURE_ENABLE= tests-with-icd |
66 |
NO_ICD_CONFIGURE_ENABLE= direct-linkage |
67 |
|
68 |
OCLBOOK_CONFIGURE_ENABLE= enable_testsuites="opencl-book-samples,cloverleaf,opencl_book_samples,halide,vexcl" |
69 |
OCLBOOK_ALL_TARGET= check |
70 |
|
71 |
DEBUG_CONFIGURE_ENABLE= debug |
72 |
|
73 |
do-test: |
74 |
cd ${WRKSRC} && ${GMAKE} check |
75 |
|
76 |
.include <bsd.port.mk> |