Lines 4-10
Link Here
|
4 |
PORTNAME= beignet |
4 |
PORTNAME= beignet |
5 |
DISTVERSION= 1.3.2 |
5 |
DISTVERSION= 1.3.2 |
6 |
DISTVERSIONSUFFIX= -source |
6 |
DISTVERSIONSUFFIX= -source |
7 |
PORTREVISION= 4 |
7 |
PORTREVISION= 5 |
8 |
CATEGORIES= lang |
8 |
CATEGORIES= lang |
9 |
MASTER_SITES= https://01.org/sites/default/files/ |
9 |
MASTER_SITES= https://01.org/sites/default/files/ |
10 |
|
10 |
|
Lines 14-25
COMMENT= OpenCL library for Intel GPUs
Link Here
|
14 |
LICENSE= LGPL21+ |
14 |
LICENSE= LGPL21+ |
15 |
LICENSE_FILE= ${WRKSRC}/COPYING |
15 |
LICENSE_FILE= ${WRKSRC}/COPYING |
16 |
|
16 |
|
17 |
BUILD_DEPENDS= clang${LLVMVER}:devel/llvm${LLVMVER} \ |
17 |
BUILD_DEPENDS= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} \ |
18 |
opencl>=0:devel/opencl |
18 |
opencl>=0:devel/opencl |
19 |
LIB_DEPENDS= libOpenCL.so:devel/ocl-icd \ |
19 |
LIB_DEPENDS= libOpenCL.so:devel/ocl-icd \ |
20 |
libdrm.so:graphics/libdrm |
20 |
libdrm.so:graphics/libdrm |
21 |
RUN_DEPENDS= opencl>=0:devel/opencl \ |
21 |
RUN_DEPENDS= opencl>=0:devel/opencl \ |
22 |
clang${LLVMVER}:devel/llvm${LLVMVER} |
22 |
clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} |
23 |
|
23 |
|
24 |
WRKSRC= ${WRKDIR}/Beignet-${DISTVERSION}-Source |
24 |
WRKSRC= ${WRKDIR}/Beignet-${DISTVERSION}-Source |
25 |
|
25 |
|
Lines 29-40
USE_GL= gl egl
Link Here
|
29 |
USE_LDCONFIG= ${LOCALBASE}/lib/${PORTNAME} |
29 |
USE_LDCONFIG= ${LOCALBASE}/lib/${PORTNAME} |
30 |
SHEBANG_FILES= src/git_sha1.sh backend/kernels/compile.sh |
30 |
SHEBANG_FILES= src/git_sha1.sh backend/kernels/compile.sh |
31 |
ALL_TARGET= all |
31 |
ALL_TARGET= all |
32 |
LLVMVER= ${MESA_LLVM_VER:U60} |
|
|
33 |
|
32 |
|
34 |
CMAKE_ARGS= -DCLANG_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/clang${LLVMVER} \ |
33 |
CMAKE_ARGS= -DCLANG_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/clang${LLVM_DEFAULT} \ |
35 |
-DLLVM_AS_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/llvm-as${LLVMVER} \ |
34 |
-DLLVM_AS_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/llvm-as${LLVM_DEFAULT} \ |
36 |
-DLLVM_CONFIG_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/llvm-config${LLVMVER} \ |
35 |
-DLLVM_CONFIG_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/llvm-config${LLVM_DEFAULT} \ |
37 |
-DLLVM_LINK_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/llvm-link${LLVMVER} |
36 |
-DLLVM_LINK_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/llvm-link${LLVM_DEFAULT} |
38 |
|
37 |
|
39 |
ONLY_FOR_ARCHS= i386 amd64 |
38 |
ONLY_FOR_ARCHS= i386 amd64 |
40 |
ONLY_FOR_ARCHS_REASON= Beignet needs a graphics driver supported by the Intel KMS driver |
39 |
ONLY_FOR_ARCHS_REASON= Beignet needs a graphics driver supported by the Intel KMS driver |
Lines 53-60
OCL20_CMAKE_BOOL= ENABLE_OPENCL_20
Link Here
|
53 |
TEST_ALL_TARGET= flat_address_space utest_run |
52 |
TEST_ALL_TARGET= flat_address_space utest_run |
54 |
|
53 |
|
55 |
post-patch: |
54 |
post-patch: |
56 |
@${REINPLACE_CMD} -e 's|llvm-dis|llvm-dis${LLVMVER}|g; \ |
55 |
@${REINPLACE_CMD} -e 's|llvm-dis|llvm-dis${LLVM_DEFAULT}|g; \ |
57 |
s|clang |clang${LLVMVER} |g' \ |
56 |
s|clang |clang${LLVM_DEFAULT} |g' \ |
58 |
${WRKSRC}/backend/kernels/compile.sh |
57 |
${WRKSRC}/backend/kernels/compile.sh |
59 |
|
58 |
|
60 |
# XXX bug 213732: compiler_device_enqueue() Interrupt signal (SIGSEGV) received. |
59 |
# XXX bug 213732: compiler_device_enqueue() Interrupt signal (SIGSEGV) received. |