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'';
|
||||
|
||||
@ -59,6 +59,10 @@ rec {
|
||||
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";
|
||||
maintainers = with a.lib.maintainers;
|
||||
|
@ -27,7 +27,11 @@ 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'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user