Increase polygon vertex count for Box2D
svn path=/nixpkgs/trunk/; revision=25177
This commit is contained in:
parent
7b4b615a86
commit
af589388b0
@ -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";
|
||||
|
@ -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 ''
|
||||
|
Loading…
Reference in New Issue
Block a user