Lines 2-9
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= beignet |
4 |
PORTNAME= beignet |
5 |
PORTVERSION= 1.3.0 |
5 |
PORTVERSION= 1.3.1 |
6 |
PORTREVISION= 1 |
|
|
7 |
CATEGORIES= lang |
6 |
CATEGORIES= lang |
8 |
MASTER_SITES= https://01.org/sites/default/files/ |
7 |
MASTER_SITES= https://01.org/sites/default/files/ |
9 |
DISTVERSIONSUFFIX= -source |
8 |
DISTVERSIONSUFFIX= -source |
Lines 11-16
DISTVERSIONSUFFIX= -source
Link Here
|
11 |
MAINTAINER= x11@FreeBSD.org |
10 |
MAINTAINER= x11@FreeBSD.org |
12 |
COMMENT= OpenCL library for Intel GPUs |
11 |
COMMENT= OpenCL library for Intel GPUs |
13 |
|
12 |
|
|
|
13 |
LICENSE= LGPL21+ |
14 |
LICENSE_FILE= ${WRKSRC}/COPYING |
15 |
|
14 |
BUILD_DEPENDS= clang${LLVMVER}:devel/llvm${LLVMVER} \ |
16 |
BUILD_DEPENDS= clang${LLVMVER}:devel/llvm${LLVMVER} \ |
15 |
opencl>=0:devel/opencl |
17 |
opencl>=0:devel/opencl |
16 |
LIB_DEPENDS= libOpenCL.so:devel/ocl-icd \ |
18 |
LIB_DEPENDS= libOpenCL.so:devel/ocl-icd \ |
Lines 24-29
USES= cmake gmake ncurses pkgconfig shebangfix
Link Here
|
24 |
USE_XORG= sm ice x11 xext xfixes |
26 |
USE_XORG= sm ice x11 xext xfixes |
25 |
USE_GL= gl egl |
27 |
USE_GL= gl egl |
26 |
SHEBANG_FILES= src/git_sha1.sh backend/kernels/compile.sh |
28 |
SHEBANG_FILES= src/git_sha1.sh backend/kernels/compile.sh |
|
|
29 |
ALL_TARGET= all |
27 |
LLVMVER= 39 |
30 |
LLVMVER= 39 |
28 |
|
31 |
|
29 |
CMAKE_ARGS+= -DLLVM_CONFIG_EXECUTABLE=${LOCALBASE}/bin/llvm-config${LLVMVER} |
32 |
CMAKE_ARGS+= -DLLVM_CONFIG_EXECUTABLE=${LOCALBASE}/bin/llvm-config${LLVMVER} |
Lines 31-52
CMAKE_ARGS+= -DLLVM_CONFIG_EXECUTABLE=${LOCALBASE}/bin/llvm-config${LLVMVER}
Link Here
|
31 |
ONLY_FOR_ARCHS= i386 amd64 |
34 |
ONLY_FOR_ARCHS= i386 amd64 |
32 |
ONLY_FOR_ARCHS_REASON= Beignet needs a graphics driver supported by the Intel KMS driver |
35 |
ONLY_FOR_ARCHS_REASON= Beignet needs a graphics driver supported by the Intel KMS driver |
33 |
|
36 |
|
34 |
# running tests from makefile doesn't work quite yet, so comment them out for now. |
37 |
OPTIONS_DEFINE= FP64 OPENCL20 TEST |
35 |
#OPTIONS_DEFINE= TESTS |
38 |
OPTIONS_DEFAULT_amd64= OPENCL20 |
36 |
#TESTS_DESC= Build and run the test suite |
39 |
OPTIONS_EXCLUDE= ${ARCH:Namd64:C/.+/OPENCL20/} |
|
|
40 |
OPTIONS_SUB= yes |
41 |
|
42 |
FP64_DESC= Double precision (experimental) |
43 |
FP64_CMAKE_BOOL= EXPERIMENTAL_DOUBLE |
44 |
|
45 |
OPENCL20_DESC= OpenCL 2.0 support |
46 |
OPENCL20_CMAKE_BOOL= ENABLE_OPENCL_20 |
47 |
|
48 |
TEST_ALL_TARGET= flat_address_space utest_run |
37 |
|
49 |
|
38 |
post-patch: |
50 |
post-patch: |
39 |
@${REINPLACE_CMD} -e 's|llvm-dis|llvm-dis${LLVMVER}|g; \ |
51 |
@${REINPLACE_CMD} -e 's|llvm-dis|llvm-dis${LLVMVER}|g; \ |
40 |
s|clang |clang${LLVMVER} |g' \ |
52 |
s|clang |clang${LLVMVER} |g' \ |
41 |
${WRKSRC}/backend/kernels/compile.sh |
53 |
${WRKSRC}/backend/kernels/compile.sh |
42 |
#post-patch-TESTS-off: |
54 |
|
43 |
@${REINPLACE_CMD} -e 's|ADD_SUBDIRECTORY(utests)||g' \ |
55 |
# XXX bug 213732: compiler_fill_gl_image() [FAILED] |
44 |
${WRKSRC}/CMakeLists.txt |
56 |
do-test-TEST-on: |
|
|
57 |
-@(cd ${TEST_WRKSRC}/utests; . ./setenv.sh; \ |
58 |
./flat_address_space; \ |
59 |
./utest_run; \ |
60 |
) |
61 |
|
62 |
pre-install-TEST-on: do-test-TEST-on |
45 |
|
63 |
|
46 |
post-install: |
64 |
post-install: |
47 |
@${RM} -r ${STAGEDIR}${PREFIX}/include/CL |
65 |
@${RM} -r ${STAGEDIR}${PREFIX}/include/CL |
48 |
|
66 |
|
49 |
#post-install-TESTS-on: |
|
|
50 |
# @cd ${WRKSRC}/utests && sh ./setenv.sh && ./utest_run |
51 |
|
52 |
.include <bsd.port.mk> |
67 |
.include <bsd.port.mk> |