Lines 1-46
Link Here
|
1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= pocl |
3 |
PORTNAME= pocl |
4 |
PORTVERSION= 0.14 |
4 |
PORTVERSION= 1.2 |
5 |
CATEGORIES= lang |
5 |
DISTVERSIONPREFIX= v |
6 |
MASTER_SITES= SF/pocl \ |
6 |
DISTVERSIONSUFFIX= -RC2 |
7 |
http://portablecl.org/downloads/ |
7 |
CATEGORIES= lang |
8 |
|
8 |
|
9 |
MAINTAINER= ohartman@zedat.fu-berlin.de |
9 |
MAINTAINER= ohartmann@walstatt.org |
10 |
COMMENT= POrtable Computing Language (POCL) |
10 |
COMMENT= POrtable Computing Language (POCL) |
11 |
|
11 |
|
12 |
LICENSE= MIT |
12 |
LICENSE= MIT |
13 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
13 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
14 |
|
14 |
|
15 |
BROKEN_FreeBSD_10= pocl is not supported on 10.x |
15 |
BROKEN_FreeBSD_10= pocl is not supported on 10.x |
16 |
ONLY_FOR_ARCHS= amd64 i386 |
16 |
|
|
|
17 |
ONLY_FOR_ARCHS= i386 amd64 arm64 |
17 |
ONLY_FOR_ARCHS_REASON= only tested on x86 |
18 |
ONLY_FOR_ARCHS_REASON= only tested on x86 |
18 |
|
19 |
|
19 |
BUILD_DEPENDS= llvm${LLVM_VERSION}>=0:devel/llvm${LLVM_VERSION} \ |
20 |
BUILD_DEPENDS= llvm${LLVM_VERSION}>=0:devel/llvm${LLVM_VERSION} \ |
20 |
opencl>=2.1:devel/opencl |
21 |
opencl>=2.1:devel/opencl |
21 |
LIB_DEPENDS= libhwloc.so:devel/hwloc \ |
22 |
LIB_DEPENDS= libhwloc.so:devel/hwloc \ |
22 |
libOpenCL.so:devel/ocl-icd \ |
23 |
libOpenCL.so:devel/ocl-icd \ |
23 |
libltdl.so:devel/libltdl |
24 |
libltdl.so:devel/libltdl |
24 |
RUN_DEPENDS= llvm${LLVM_VERSION}>=0:devel/llvm${LLVM_VERSION} |
25 |
RUN_DEPENDS= llvm${LLVM_VERSION}>=0:devel/llvm${LLVM_VERSION} |
25 |
|
26 |
|
26 |
LLVM_VERSION= ${MESA_LLVM_VER:U40} |
27 |
LLVM_VERSION= ${MESA_LLVM_VER:U60} |
27 |
|
28 |
|
28 |
USES= cmake:outsource localbase:ldflags ncurses pkgconfig |
29 |
USES= cmake localbase:ldflags ncurses pkgconfig |
29 |
USE_CXXSTD= gnu++11 |
30 |
|
|
|
31 |
USE_GITHUB= yes |
30 |
USE_LDCONFIG= yes |
32 |
USE_LDCONFIG= yes |
|
|
33 |
USE_CXXSTD= gnu++11 |
31 |
|
34 |
|
32 |
CMAKE_ARGS= -DWITH_LLVM_CONFIG="${LOCALBASE}/llvm${LLVM_VERSION}/bin/llvm-config" \ |
35 |
CMAKE_ARGS= -DWITH_LLVM_CONFIG="${LOCALBASE}/llvm${LLVM_VERSION}/bin/llvm-config" \ |
33 |
-DPOCL_INSTALL_PKGCONFIG_DIR="${PREFIX}/libdata/pkgconfig" \ |
36 |
-DPOCL_INSTALL_PKGCONFIG_DIR="${PREFIX}/libdata/pkgconfig" \ |
34 |
-DKERNELLIB_HOST_CPU_VARIANTS="distro" |
37 |
-DKERNELLIB_HOST_CPU_VARIANTS="distro" |
35 |
PLIST_SUB= OPSYS=${OPSYS:tl} ARCH=${ARCH:S/amd64/x86_64/} |
38 |
PLIST_SUB= OPSYS=${OPSYS:tl} ARCH=${ARCH:S/amd64/x86_64/} |
36 |
|
39 |
|
37 |
OPTIONS_DEFINE= TEST |
40 |
OPTIONS_DEFINE= TEST CUDA VECMATH |
38 |
|
41 |
|
39 |
TEST_DESC= Tests from the OpenCL book |
42 |
TEST_DESC= Tests from the OpenCL book |
40 |
TEST_CMAKE_OFF= -DENABLE_TESTSUITES="" |
43 |
TEST_CMAKE_OFF= -DENABLE_TESTSUITES="" |
41 |
TEST_CMAKE_ON= -DENABLE_TESTSUITES="all" |
44 |
TEST_CMAKE_ON= -DENABLE_TESTSUITES="all" |
42 |
TEST_TARGET= test |
45 |
TEST_TARGET= test |
43 |
|
46 |
|
|
|
47 |
CUDA_DESC= Enable CUDA backend (requires LLVM NVPTX supp.) |
48 |
CUDA_CMAKE_OFF= -DENABLE_CUDA=OFF |
49 |
CUDA_CMAKE_ON= -DENABLE_CUDA=ON |
50 |
|
51 |
VECMATH_DESC= Vectormath Lib |
52 |
VECMATH_CMAKE_OFF= -DENABLE_VECMATHLIB=OFF |
53 |
VECMATH_CMAKE_ON= -DENABLE_VECMATHLIB=ON |
54 |
|
44 |
pre-install-TEST-on: do-test |
55 |
pre-install-TEST-on: do-test |
45 |
|
56 |
|
46 |
.include <bsd.port.mk> |
57 |
.include <bsd.port.mk> |