Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Sep 2012 14:29:45 +0000 (UTC)
From:      Boris Samorodov <bsam@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r304678 - in head/devel: . freeocl freeocl/files
Message-ID:  <201209221429.q8METjqJ083057@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bsam
Date: Sat Sep 22 14:29:45 2012
New Revision: 304678
URL: http://svn.freebsd.org/changeset/ports/304678

Log:
  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>

Added:
  head/devel/freeocl/
  head/devel/freeocl/Makefile   (contents, props changed)
  head/devel/freeocl/distinfo   (contents, props changed)
  head/devel/freeocl/files/
  head/devel/freeocl/files/patch-CMakeLists.txt   (contents, props changed)
  head/devel/freeocl/files/patch-src_icd_icd_loader.cpp   (contents, props changed)
  head/devel/freeocl/pkg-descr   (contents, props changed)
  head/devel/freeocl/pkg-plist   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sat Sep 22 14:27:51 2012	(r304677)
+++ head/devel/Makefile	Sat Sep 22 14:29:45 2012	(r304678)
@@ -447,6 +447,7 @@
     SUBDIR += fpc-zlib
     SUBDIR += fpp
     SUBDIR += frama-c
+    SUBDIR += freeocl
     SUBDIR += frink
     SUBDIR += fsmgenerator
     SUBDIR += ftjam

Added: head/devel/freeocl/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/freeocl/Makefile	Sat Sep 22 14:29:45 2012	(r304678)
@@ -0,0 +1,33 @@
+# 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>

Added: head/devel/freeocl/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/freeocl/distinfo	Sat Sep 22 14:29:45 2012	(r304678)
@@ -0,0 +1,2 @@
+SHA256 (FreeOCL-0.3.6-src.tar.gz) = d1eea6d6214781a67efee6b691f06407780fb51f8dd742a83324478a6cfb8f1a
+SIZE (FreeOCL-0.3.6-src.tar.gz) = 216517

Added: head/devel/freeocl/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/freeocl/files/patch-CMakeLists.txt	Sat Sep 22 14:29:45 2012	(r304678)
@@ -0,0 +1,11 @@
+--- 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")

Added: head/devel/freeocl/files/patch-src_icd_icd_loader.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/freeocl/files/patch-src_icd_icd_loader.cpp	Sat Sep 22 14:29:45 2012	(r304678)
@@ -0,0 +1,13 @@
+--- 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)
+ 		{

Added: head/devel/freeocl/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/freeocl/pkg-descr	Sat Sep 22 14:29:45 2012	(r304678)
@@ -0,0 +1 @@
+FreeOCL - a free OpenCL implementation for CPU

Added: head/devel/freeocl/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/freeocl/pkg-plist	Sat Sep 22 14:29:45 2012	(r304678)
@@ -0,0 +1,33 @@
+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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209221429.q8METjqJ083057>