Increase polygon vertex count for Box2D

svn path=/nixpkgs/trunk/; revision=25177
This commit is contained in:
Michael Raskin 2010-12-17 15:40:34 +00:00
parent 7b4b615a86
commit af589388b0
2 changed files with 10 additions and 2 deletions

View File

@ -27,7 +27,7 @@ rec {
inherit (sourceInfo) name version;
inherit buildInputs;
phaseNames = ["fixIncludes" "setVars" "doMake" "doDeploy"];
phaseNames = ["fixIncludes" "setVars" "changeSettings" "doMake" "doDeploy"];
goSrcDir = ''cd Box2D'';
@ -58,6 +58,10 @@ rec {
ensureDir "$out/share"
cp -r Examples "$out/share"
'' ["minInit" "addInputs" "doMake" "defEnsureDir"];
changeSettings = a.fullDepEntry ''
sed -i Source/Common/b2Settings.h -e 's@b2_maxPolygonVertices .*@b2_maxPolygonVertices = 15;@'
'' ["minInit" "addInputs" "doUnpack"];
meta = {
description = "2D physics engine";

View File

@ -27,8 +27,12 @@ rec {
inherit (sourceInfo) name version;
inherit buildInputs;
phaseNames = ["doCmake" "doMakeInstall"];
phaseNames = ["changeSettings" "doCmake" "doMakeInstall"];
changeSettings = a.fullDepEntry ''
sed -i Box2D/Common/b2Settings.h -e 's@b2_maxPolygonVertices .*@b2_maxPolygonVertices 15@'
'' ["minInit" "addInputs" "doUnpack"];
goSrcDir = ''cd Box2D'';
doCmake = a.fullDepEntry ''