Commit c4b86a2b authored by bsam's avatar bsam
Browse files

Add freeocl 0.3.6, free Open Computing Language (OpenCL) implementation

for CPU.

PR:		ports/171376
Submitted by:	Oliver Hartmann <ohartman@zedat.fu-berlin.de>
parent 7319ad35
......@@ -447,6 +447,7 @@
SUBDIR += fpc-zlib
SUBDIR += fpp
SUBDIR += frama-c
SUBDIR += freeocl
SUBDIR += frink
SUBDIR += fsmgenerator
SUBDIR += ftjam
......
# Created by: Oliver Hartmann <ohartman@zedat.fu-berlin.de>
# $FreeBSD$
PORTNAME= freeocl
PORTVERSION= 0.3.6
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
DISTNAME= FreeOCL-${PORTVERSION}-src
MAINTAINER= ohartman@zedat.fu-berlin.de
COMMENT= Free Open Computing Language (OpenCL) implementation for CPU
BUILD_DEPENDS= ${LOCALBASE}/lib/libatomic_ops.a:${PORTSDIR}/devel/libatomic_ops \
${LOCALBASE}/include/CL/opencl.h:${PORTSDIR}/devel/opencl
LICENCE= LGPL3
WRKSRC= ${WRKDIR}/FreeOCL-${PORTVERSION}-Source
USE_GCC= 4.6+
USE_CMAKE= yes
USE_LDCONFIG= yes
CMAKE_BUILD_TYPE=Release
post-patch:
${REINPLACE_CMD} -e 's:%%PREFIX%%:${PREFIX}:g' ${WRKSRC}/src/icd/icd_loader.cpp \
${WRKSRC}/CMakeLists.txt
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800000
BROKEN= this port does not compile at 7.x: "src/program.cpp:531:37: error: 'RTLD_NOLOAD' was not declared in this scope"
.endif
.include <bsd.port.post.mk>
SHA256 (FreeOCL-0.3.6-src.tar.gz) = d1eea6d6214781a67efee6b691f06407780fb51f8dd742a83324478a6cfb8f1a
SIZE (FreeOCL-0.3.6-src.tar.gz) = 216517
--- CMakeLists.txt.orig 2012-09-22 12:55:02.000000000 +0400
+++ CMakeLists.txt 2012-09-22 12:55:27.000000000 +0400
@@ -83,7 +83,7 @@ endif(LIBRT)
add_subdirectory(samples)
add_subdirectory(src)
-install(FILES icd/freeocl.icd DESTINATION /etc/OpenCL/vendors/)
+install(FILES icd/freeocl.icd DESTINATION %%PREFIX%%/etc/OpenCL/vendors/)
# OpenCL headers shouldn't be needed in the runtime package
# install(DIRECTORY include/CL/ DESTINATION include/CL/ FILES_MATCHING PATTERN "*.h")
install(DIRECTORY include/FreeOCL/ DESTINATION include/FreeOCL/ FILES_MATCHING PATTERN "*.h")
--- src/icd/icd_loader.cpp.orig 2012-09-22 13:14:12.000000000 +0400
+++ src/icd/icd_loader.cpp 2012-09-22 13:15:03.000000000 +0400
@@ -53,8 +53,8 @@ namespace FreeOCL
icd_loader::icd_loader()
{
- // Get the list of all *.icd files in /etc/OpenCL/vendors/
- const std::deque<std::string> &files = list_files("/etc/OpenCL/vendors/", ".icd");
+ // Get the list of all *.icd files in %%PREFIX%%/etc/OpenCL/vendors/
+ const std::deque<std::string> &files = list_files("%%PREFIX%%/etc/OpenCL/vendors/", ".icd");
// For each file
for(std::deque<std::string>::const_iterator i = files.begin() ; i != files.end() ; ++i)
{
FreeOCL - a free OpenCL implementation for CPU
etc/OpenCL/vendors/freeocl.icd
include/FreeOCL/asyncmemop.h
include/FreeOCL/atomic.h
include/FreeOCL/common.h
include/FreeOCL/config.h
include/FreeOCL/converters.h
include/FreeOCL/geometric.h
include/FreeOCL/image1d_array_t.h
include/FreeOCL/image1d_buffer_t.h
include/FreeOCL/image1d_t.h
include/FreeOCL/image2d_array_t.h
include/FreeOCL/image2d_t.h
include/FreeOCL/image3d_t.h
include/FreeOCL/imgreadwrite.h
include/FreeOCL/integer.h
include/FreeOCL/math.h
include/FreeOCL/memfence.h
include/FreeOCL/opencl_c.h
include/FreeOCL/printf.h
include/FreeOCL/relational.h
include/FreeOCL/simdopts.h
include/FreeOCL/sync.h
include/FreeOCL/vectors.h
include/FreeOCL/vloadstore.h
include/FreeOCL/vmisc.h
include/FreeOCL/workitem.h
lib/libFreeOCL.so
lib/libOpenCL.so
lib/libOpenCL.so.1
lib/libOpenCL.so.1.2
@dirrm include/FreeOCL
@dirrm etc/OpenCL/vendors
@dirrm etc/OpenCL
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment