Page MenuHomeFreeBSD

D10251.id27194.diff
No OneTemporary

D10251.id27194.diff

Index: head/lang/beignet/Makefile
===================================================================
--- head/lang/beignet/Makefile
+++ head/lang/beignet/Makefile
@@ -2,14 +2,17 @@
# $FreeBSD$
PORTNAME= beignet
-PORTVERSION= 1.3.0
+PORTVERSION= 1.3.1
+DISTVERSIONSUFFIX= -source
CATEGORIES= lang
MASTER_SITES= https://01.org/sites/default/files/
-DISTVERSIONSUFFIX= -source
MAINTAINER= x11@FreeBSD.org
COMMENT= OpenCL library for Intel GPUs
+LICENSE= LGPL21+
+LICENSE_FILE= ${WRKSRC}/COPYING
+
BUILD_DEPENDS= clang${LLVMVER}:devel/llvm${LLVMVER} \
opencl>=0:devel/opencl
LIB_DEPENDS= libOpenCL.so:devel/ocl-icd \
@@ -22,30 +25,37 @@
USES= cmake gmake ncurses pkgconfig shebangfix
USE_XORG= sm ice x11 xext xfixes
USE_GL= gl egl
+USE_LDCONFIG= ${LOCALBASE}/lib/${PORTNAME}
SHEBANG_FILES= src/git_sha1.sh backend/kernels/compile.sh
-LLVMVER= 39
+ALL_TARGET= all
+LLVMVER= ${MESA_LLVM_VER:U39}
CMAKE_ARGS+= -DLLVM_CONFIG_EXECUTABLE=${LOCALBASE}/bin/llvm-config${LLVMVER}
+PLIST_SUB= OCL20=${"${ARCH:Mamd64}" != "":?"":"@comment "}
+
ONLY_FOR_ARCHS= i386 amd64
-ONLY_FOR_ARCHS_REASON= Beignet needs a graphics driver supported by the Intel KMS driver
+ONLY_FOR_ARCHS_REASON= Beignet needs a graphics driver supported by the Intel KMS driver
-# running tests from makefile doesn't work quite yet, so comment them out for now.
-#OPTIONS_DEFINE= TESTS
-#TESTS_DESC= Build and run the test suite
+OPTIONS_DEFINE= FP64 TEST
+FP64_DESC= Double precision (experimental)
+
+FP64_CMAKE_BOOL= EXPERIMENTAL_DOUBLE
+TEST_ALL_TARGET= flat_address_space utest_run
post-patch:
@${REINPLACE_CMD} -e 's|llvm-dis|llvm-dis${LLVMVER}|g; \
s|clang |clang${LLVMVER} |g' \
${WRKSRC}/backend/kernels/compile.sh
-#post-patch-TESTS-off:
- @${REINPLACE_CMD} -e 's|ADD_SUBDIRECTORY(utests)||g' \
- ${WRKSRC}/CMakeLists.txt
+
+# XXX bug 213732: compiler_fill_gl_image() [FAILED]
+do-test-TEST-on:
+ -@(cd ${TEST_WRKSRC}/utests; . ./setenv.sh; \
+ ./flat_address_space; ./utest_run; )
+
+pre-install-TEST-on: do-test-TEST-on
post-install:
@${RM} -r ${STAGEDIR}${PREFIX}/include/CL
-#post-install-TESTS-on:
-# @cd ${WRKSRC}/utests && sh ./setenv.sh && ./utest_run
-
.include <bsd.port.mk>
Index: head/lang/beignet/distinfo
===================================================================
--- head/lang/beignet/distinfo
+++ head/lang/beignet/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1488314347
-SHA256 (beignet-1.3.0-source.tar.gz) = 63d98b4fe8fba3dbc0299d29fef84560625e5ac51b16b8fed453021d4afb5cd5
-SIZE (beignet-1.3.0-source.tar.gz) = 1133643
+TIMESTAMP = 1489436686
+SHA256 (beignet-1.3.1-source.tar.gz) = 399b7bc64d674b3092683263f7c085c5592686b9d837817e77857248e5cb561f
+SIZE (beignet-1.3.1-source.tar.gz) = 1136608
Index: head/lang/beignet/files/patch-utests_image__from__buffer.cpp
===================================================================
--- head/lang/beignet/files/patch-utests_image__from__buffer.cpp
+++ head/lang/beignet/files/patch-utests_image__from__buffer.cpp
@@ -0,0 +1,20 @@
+--- utests/image_from_buffer.cpp.orig 2017-03-13 21:06:07 UTC
++++ utests/image_from_buffer.cpp
+@@ -1,6 +1,6 @@
+ #include <string.h>
+ #include "utest_helper.hpp"
+-#include <malloc.h>
++#include <cstdlib>
+ #include <cstring>
+
+ static void image_from_buffer(void)
+@@ -33,8 +33,7 @@ static void image_from_buffer(void)
+ // Setup kernel and images
+ size_t buffer_sz = sizeof(uint32_t) * w * h;
+ uint32_t* src_data;
+- src_data = (uint32_t*)memalign(base_address_alignment, buffer_sz);
+- if(!src_data) {
++ if(posix_memalign((void**)&src_data, base_address_alignment, buffer_sz)) {
+ fprintf(stderr, "run out of memory\n");
+ return;
+ }
Index: head/lang/beignet/pkg-plist
===================================================================
--- head/lang/beignet/pkg-plist
+++ head/lang/beignet/pkg-plist
@@ -1,6 +1,8 @@
etc/OpenCL/vendors/intel-beignet.icd
lib/beignet/beignet.bc
lib/beignet/beignet.pch
+%%OCL20%%lib/beignet/beignet_20.bc
+%%OCL20%%lib/beignet/beignet_20.pch
lib/beignet/include/ocl.h
lib/beignet/include/ocl_as.h
lib/beignet/include/ocl_async.h

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 14, 2:54 AM (20 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15789214
Default Alt Text
D10251.id27194.diff (4 KB)

Event Timeline