Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Oct 2016 11:24:21 +0000 (UTC)
From:      Koop Mast <kwm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r424465 - head/devel/opencl
Message-ID:  <201610221124.u9MBOLBR097555@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kwm
Date: Sat Oct 22 11:24:21 2016
New Revision: 424465
URL: https://svnweb.freebsd.org/changeset/ports/424465

Log:
  Update opencl (headers) to 2.1.
  
  * Use github macro's for fetching sources instead of manualy fetching.
  * Switch to a pkg-plist
  
  PR:		212362
  Submitted by:	maintainer (original patch),
  		kwm@ and swills@ (updated versions)
  Approved by:	maintainer timeout (for updated versions)

Added:
  head/devel/opencl/pkg-plist   (contents, props changed)
Modified:
  head/devel/opencl/Makefile
  head/devel/opencl/distinfo
  head/devel/opencl/pkg-descr

Modified: head/devel/opencl/Makefile
==============================================================================
--- head/devel/opencl/Makefile	Sat Oct 22 10:55:53 2016	(r424464)
+++ head/devel/opencl/Makefile	Sat Oct 22 11:24:21 2016	(r424465)
@@ -2,40 +2,40 @@
 # $FreeBSD$
 
 PORTNAME=	opencl
-PORTVERSION=	2.0
+PORTVERSION=	2.1
 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 \
-		cl_d3d10.h cl_d3d11.h  cl_gl.h cl_gl_ext.h cl.hpp
-DIST_SUBDIR=	${PORTNAME}
-EXTRACT_ONLY=
 
 MAINTAINER=	ohartman@zedat.fu-berlin.de
-COMMENT=	Open Computing Language (OpenCL) specifications V2.0 (header files)
+COMMENT=	Open Computing Language (OpenCL) specifications V2.1 (header files)
 
 LICENSE=	unknown
 LICENSE_NAME=	BSD-esque license agreement
 LICENSE_TEXT=	License is included in each of the header files of this port
 LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
-CONFLICTS=	opencl-1.[0-1]
+CONFLICTS=	opencl-1.[0-2]
 
-NO_BUILD=	yes
+USE_GITHUB=	yes
+GH_ACCOUNT=	KhronosGroup
+GH_PROJECT=	OpenCL-Headers:DEFAULT OpenCL-CLHPP:clhpp
+GH_TAGNAME=	${HEADER_TAG}:DEFAULT ${CLHPP_TAG}:clhpp
+
+# the header releases don't have tags yet, so use git commit for now
+HEADER_TAG=	2d06e09
+CLHPP_TAG=	v2.0.10
 
-.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
+USES=		python:build
+NO_CONFIGURE=	yes
+
+do-build:
+	@cd ${WRKSRC_clhpp} && ${PYTHON_CMD} gen_cl_hpp.py
 
 do-install:
-		@${MKDIR} ${STAGEDIR}${PREFIX}/include/CL
-.for f in ${DISTFILES}
-		${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${PREFIX}/include/CL
-.endfor
+	@${MKDIR} ${STAGEDIR}${PREFIX}/include/CL
+	${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/CL
+	${INSTALL_DATA} ${WRKSRC_clhpp}/cl.hpp \
+		${STAGEDIR}${PREFIX}/include/CL/cl.hpp
+	${INSTALL_DATA} ${WRKSRC_clhpp}/input_cl2.hpp \
+		${STAGEDIR}${PREFIX}/include/CL/cl2.hpp
 
 .include <bsd.port.mk>

Modified: head/devel/opencl/distinfo
==============================================================================
--- head/devel/opencl/distinfo	Sat Oct 22 10:55:53 2016	(r424464)
+++ head/devel/opencl/distinfo	Sat Oct 22 11:24:21 2016	(r424465)
@@ -1,20 +1,5 @@
-SHA256 (opencl/opencl.h) = fceb7e76d81159caab6308a05ff05d18fbd84718eff4263473ecd148c458987c
-SIZE (opencl/opencl.h) = 1754
-SHA256 (opencl/cl_platform.h) = 042877b8091bfeeb489018505ce36c37cd3295e691856461b1c0a8fbb6b2cc21
-SIZE (opencl/cl_platform.h) = 42192
-SHA256 (opencl/cl.h) = 5c39e93d4492cd3005ae806a91b7dd3cad28f4e69036208be21e37f8a4395717
-SIZE (opencl/cl.h) = 70803
-SHA256 (opencl/cl_ext.h) = be1ff04c63b678383828ab1e69ecf3bec54eec4cf4ae33e210b4a16eff47d809
-SIZE (opencl/cl_ext.h) = 14002
-SHA256 (opencl/cl_dx9_media_sharing.h) = 41968538b82523ef8fb642a1a4da20a6262ce0448f71541db080f8ccc03971b6
-SIZE (opencl/cl_dx9_media_sharing.h) = 5181
-SHA256 (opencl/cl_d3d10.h) = 14b00ef68a2d7f471c7ef5b4576bc103888da70fc525b263b49ff7fff150e188
-SIZE (opencl/cl_d3d10.h) = 4883
-SHA256 (opencl/cl_d3d11.h) = 707709a73b6b43b96c55e813efb2d655efcc82eb103da4b8aea191231df7e1fd
-SIZE (opencl/cl_d3d11.h) = 4877
-SHA256 (opencl/cl_gl.h) = 40375d991f4e847c94ad56c6c14400e3e7d72620117b49636518a96d57f30647
-SIZE (opencl/cl_gl.h) = 7346
-SHA256 (opencl/cl_gl_ext.h) = dccb3b45e53bfe0219bb48e6dbe9591bbe6a090a8b0d93a3b8580f526abc4616
-SIZE (opencl/cl_gl_ext.h) = 2630
-SHA256 (opencl/cl.hpp) = eeacf0fefc51d618dda67d52e2bbff7dc9a67e90bc38166b3fad26d44800013a
-SIZE (opencl/cl.hpp) = 915453
+TIMESTAMP = 1477133498
+SHA256 (KhronosGroup-OpenCL-Headers-2.1-2d06e09_GH0.tar.gz) = 6e5d2fc99809fd963ac2ce3648e79fa7997262741992b7a4ccd923f8d1194f6f
+SIZE (KhronosGroup-OpenCL-Headers-2.1-2d06e09_GH0.tar.gz) = 30745
+SHA256 (KhronosGroup-OpenCL-CLHPP-v2.0.10_GH0.tar.gz) = fa27456295c3fa534ce824eb0314190a8b3ebd3ba4d93a0b1270fc65bf378f2b
+SIZE (KhronosGroup-OpenCL-CLHPP-v2.0.10_GH0.tar.gz) = 129954

Modified: head/devel/opencl/pkg-descr
==============================================================================
--- head/devel/opencl/pkg-descr	Sat Oct 22 10:55:53 2016	(r424464)
+++ head/devel/opencl/pkg-descr	Sat Oct 22 11:24:21 2016	(r424465)
@@ -3,4 +3,4 @@ for general purpose parallel programming
 other processors, giving software developers portable and efficient
 access to the power of these heterogeneous processing platforms.
 
-This is OpenCL 2.0
+These header are covering OpenCL API 2.1

Added: head/devel/opencl/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/opencl/pkg-plist	Sat Oct 22 11:24:21 2016	(r424465)
@@ -0,0 +1,15 @@
+include/CL/cl.h
+include/CL/cl.hpp
+include/CL/cl2.hpp
+include/CL/cl_d3d10.h
+include/CL/cl_d3d11.h
+include/CL/cl_dx9_media_sharing.h
+include/CL/cl_dx9_media_sharing_intel.h
+include/CL/cl_egl.h
+include/CL/cl_ext.h
+include/CL/cl_ext_intel.h
+include/CL/cl_gl.h
+include/CL/cl_gl_ext.h
+include/CL/cl_platform.h
+include/CL/cl_va_api_media_sharing_intel.h
+include/CL/opencl.h



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