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> |