# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup cmake 1.0 name bullet version 2.80-2527 revision 1 set base_version [lindex [split ${version} -] 0] categories devel license zlib platforms darwin supported_archs i386 x86_64 maintainers stromnov openmaintainer description Bullet Physics Engine long_description ${description} homepage http://bulletphysics.org/ master_sites googlecode:bullet extract.suffix .tgz distname ${name}-${base_version}-rev[lindex [split ${version} -] 1] dist_subdir ${name}/${version} 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 |#include |" \ ${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 livecheck.version ${base_version}