From owner-svn-ports-head@FreeBSD.ORG Sun Sep 1 14:25:12 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 72FA1C33; Sun, 1 Sep 2013 14:25:12 +0000 (UTC) (envelope-from marino@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 523422E7C; Sun, 1 Sep 2013 14:25:12 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r81EPCq4049330; Sun, 1 Sep 2013 14:25:12 GMT (envelope-from marino@svn.freebsd.org) Received: (from marino@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r81EPB4v049325; Sun, 1 Sep 2013 14:25:11 GMT (envelope-from marino@svn.freebsd.org) Message-Id: <201309011425.r81EPB4v049325@svn.freebsd.org> From: John Marino Date: Sun, 1 Sep 2013 14:25:11 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r325857 - in head/devel/opencl: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Sep 2013 14:25:12 -0000 Author: marino Date: Sun Sep 1 14:25:11 2013 New Revision: 325857 URL: http://svnweb.freebsd.org/changeset/ports/325857 Log: devel/opencl: Unbreak fetch This port has been unfetchable for some time due to a checksum mismatch. PR: ports/180338 Submitted by: Oliver Hartmann (maintainer) Added: head/devel/opencl/files/ head/devel/opencl/files/patch-cl.hpp (contents, props changed) head/devel/opencl/pkg-message (contents, props changed) Modified: head/devel/opencl/Makefile head/devel/opencl/distinfo Modified: head/devel/opencl/Makefile ============================================================================== --- head/devel/opencl/Makefile Sun Sep 1 13:42:47 2013 (r325856) +++ head/devel/opencl/Makefile Sun Sep 1 14:25:11 2013 (r325857) @@ -3,7 +3,7 @@ PORTNAME= opencl PORTVERSION= 1.2 -PORTREVISION= 2 +PORTREVISION= 5 CATEGORIES= devel MASTER_SITES= http://www.khronos.org/registry/cl/api/${PORTVERSION}/ DISTFILES= opencl.h cl_platform.h cl.h cl_ext.h cl_dx9_media_sharing.h \ @@ -12,21 +12,27 @@ DIST_SUBDIR= ${PORTNAME} EXTRACT_ONLY= MAINTAINER= ohartman@zedat.fu-berlin.de -COMMENT= Open Computing Language (OpenCL) specifications V1.2 +COMMENT= Open Computing Language (OpenCL) specifications V1.2 (header files) CONFLICTS= opencl-1.[0-1] NO_BUILD= yes -NO_WRKSUBDIR= yes -PLIST_DIRS= include/CL +PLIST_DIRS+= include/CL .for f in ${DISTFILES} PLIST_FILES+=include/CL/$f .endfor +pre-patch: + @${MKDIR} ${WRKSRC} +.for f in ${DISTFILES} + @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/$f ${WRKSRC}/ +.endfor + do-install: - ${MKDIR} ${PREFIX}/include/CL - ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/*.h ${PREFIX}/include/CL - ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/*.hpp ${PREFIX}/include/CL + @${MKDIR} ${PREFIX}/include/CL +.for f in ${DISTFILES} + @${INSTALL_DATA} ${WRKSRC}/$f ${PREFIX}/include/CL +.endfor .include Modified: head/devel/opencl/distinfo ============================================================================== --- head/devel/opencl/distinfo Sun Sep 1 13:42:47 2013 (r325856) +++ head/devel/opencl/distinfo Sun Sep 1 14:25:11 2013 (r325857) @@ -4,8 +4,8 @@ SHA256 (opencl/cl_platform.h) = e212b89b SIZE (opencl/cl_platform.h) = 41127 SHA256 (opencl/cl.h) = a5465c2ed1a0687878c8f7aa25f94626d7cd3a3868163ecaa6e8b36d6ed52368 SIZE (opencl/cl.h) = 61545 -SHA256 (opencl/cl_ext.h) = 3eafb74bc1b9456fd0e12393bfe65e48c9b3246d3c36b9f69ac253f73e0b50c7 -SIZE (opencl/cl_ext.h) = 11540 +SHA256 (opencl/cl_ext.h) = d23a11d1daebe39c6f5a9743f356bb58cdf0bf5a2019c723a6e2dc1e7dcb0360 +SIZE (opencl/cl_ext.h) = 13646 SHA256 (opencl/cl_dx9_media_sharing.h) = 26fb40bac8e229747bdc27b350b836e3703c1e946cb40893f4c8ab2289203920 SIZE (opencl/cl_dx9_media_sharing.h) = 5157 SHA256 (opencl/cl_d3d10.h) = c7adb38a19663ee240977afc64903f4638d9c5c03ca478793c9f7a15c1c6ac2b @@ -16,5 +16,5 @@ SHA256 (opencl/cl_gl.h) = aa49d380177ac5 SIZE (opencl/cl_gl.h) = 7343 SHA256 (opencl/cl_gl_ext.h) = 4d663bbfc932ab405623e5f5d1bba3f438351d0ead65e1ccdd9bb769caf7a7d0 SIZE (opencl/cl_gl_ext.h) = 2630 -SHA256 (opencl/cl.hpp) = 006671ee638a29a95c19bf37fbbf71ec8df445d2ea46df81f65faaff2d8a5133 -SIZE (opencl/cl.hpp) = 272297 +SHA256 (opencl/cl.hpp) = d7c8f5c17f88e098dc9f71d80e4b7408fab353e2828b0ba4d4bb55adaa427e83 +SIZE (opencl/cl.hpp) = 277155 Added: head/devel/opencl/files/patch-cl.hpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/opencl/files/patch-cl.hpp Sun Sep 1 14:25:11 2013 (r325857) @@ -0,0 +1,52 @@ +--- cl.hpp.orig 2013-09-01 13:35:56.642641000 +0000 ++++ cl.hpp +@@ -210,11 +210,10 @@ + #include + #endif + +-#if defined(linux) || defined(__APPLE__) || defined(__MACOSX) ++#if defined(linux) || defined(__APPLE__) || defined(__MACOSX) \ ++ || defined(__FreeBSD__) || defined(__DragonFly__) + #include + +-#include +-#include + #endif // linux + + #include +@@ -1037,7 +1036,7 @@ namespace detail { + #endif // !_WIN32 + } + +- inline void fence() { _mm_mfence(); } ++ inline void fence() { __sync_synchronize(); } + }; // namespace detail + + +@@ -2037,6 +2036,26 @@ public: + #endif // #if defined(CL_VERSION_1_1) + }; + ++template ++cl_int detail::GetInfoHelper >:: ++ get(Func f, cl_uint name, VECTOR_CLASS* param) ++ { ++ ::size_t required; ++ cl_int err = f(name, 0, NULL, &required); ++ if (err != CL_SUCCESS) { ++ return err; ++ } ++ ++ cl_device_id* value = (cl_device_id*) alloca(required); ++ err = f(name, required, value, NULL); ++ if (err != CL_SUCCESS) { ++ return err; ++ } ++ ++ param->assign(&value[0], &value[required/sizeof(cl_device_id)]); ++ return CL_SUCCESS; ++ } ++ + /*! \brief Class interface for cl_platform_id. + * + * \note Copies of these objects are inexpensive, since they don't 'own' Added: head/devel/opencl/pkg-message ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/opencl/pkg-message Sun Sep 1 14:25:11 2013 (r325857) @@ -0,0 +1,4 @@ +OpenCL is the first open, royalty-free standard for cross-platform, +parallel programming of modern processors. + +Patchset provided by POCL developers for cl.hpp applied.