[91663] trunk/dports/devel/bullet

jmr at macports.org jmr at macports.org
Sat Apr 7 04:13:37 PDT 2012


Revision: 91663
          https://trac.macports.org/changeset/91663
Author:   jmr at macports.org
Date:     2012-04-07 04:13:35 -0700 (Sat, 07 Apr 2012)
Log Message:
-----------
bullet: fix case of opencl.h

Modified Paths:
--------------
    trunk/dports/devel/bullet/Portfile

Added Paths:
-----------
    trunk/dports/devel/bullet/files/
    trunk/dports/devel/bullet/files/opencl-case.patch

Modified: trunk/dports/devel/bullet/Portfile
===================================================================
--- trunk/dports/devel/bullet/Portfile	2012-04-07 10:35:31 UTC (rev 91662)
+++ trunk/dports/devel/bullet/Portfile	2012-04-07 11:13:35 UTC (rev 91663)
@@ -29,6 +29,15 @@
 checksums           rmd160  f1fdef82395e7790b42d712c8b853f545e776825 \
                     sha256  fa58de72f8bc7854dc0de495b0418841da6b88ac0f6b741f3d29fb590b49d0ba
 
+patchfiles          opencl-case.patch
+post-patch {
+    # these have CRLF line endings which patch(1) really doesn't like
+    reinplace "s|#include <OpenCL/OpenCL.h>|#include <OpenCL/opencl.h>|" \
+        ${worksrcpath}/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/btSoftBodySolver_OpenCL.cpp \
+        ${worksrcpath}/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/btSoftBodySolverBuffer_OpenCL.h \
+        ${worksrcpath}/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/btSoftBodySolverVertexBuffer_OpenGL.h
+}
+
 configure.args-append \
                     -DBUILD_SHARED_LIBS=ON \
                     -DINSTALL_LIBS=ON

Added: trunk/dports/devel/bullet/files/opencl-case.patch
===================================================================
--- trunk/dports/devel/bullet/files/opencl-case.patch	                        (rev 0)
+++ trunk/dports/devel/bullet/files/opencl-case.patch	2012-04-07 11:13:35 UTC (rev 91663)
@@ -0,0 +1,22 @@
+--- Demos/VectorAdd_OpenCL/MiniCL_VectorAdd.cpp.orig	2011-09-15 11:17:34.000000000 +1000
++++ Demos/VectorAdd_OpenCL/MiniCL_VectorAdd.cpp	2012-04-07 20:39:43.000000000 +1000
+@@ -12,7 +12,7 @@
+ 	#include "MiniCL/cl.h"
+ #else //USE_MINICL
+ 	#ifdef __APPLE__
+-		#include <OpenCL/OpenCL.h>
++		#include <OpenCL/opencl.h>
+ 	#else
+ 		#include <CL/cl.h>
+ 	#endif //__APPLE__
+--- Extras/RigidBodyGpuPipeline/opencl/vector_add/main.cpp.orig	2012-03-05 11:54:32.000000000 +1100
++++ Extras/RigidBodyGpuPipeline/opencl/vector_add/main.cpp	2012-04-07 20:40:36.000000000 +1000
+@@ -9,7 +9,7 @@
+ //#define LOAD_FROM_FILE
+ 
+ #ifdef __APPLE__
+-	#include <OpenCL/OpenCL.h>
++	#include <OpenCL/opencl.h>
+ #else
+ 	#include <CL/cl.h>
+ #endif //__APPLE__
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120407/e25c8296/attachment.html>


More information about the macports-changes mailing list