Added chipmunk 2 physics library
svn path=/nixpkgs/trunk/; revision=13519
This commit is contained in:
parent
8c90c64e94
commit
e357cb4e65
|
@ -0,0 +1,38 @@
|
|||
args :
|
||||
let
|
||||
lib = args.lib;
|
||||
fetchurl = args.fetchurl;
|
||||
FullDepEntry = args.FullDepEntry;
|
||||
|
||||
version = lib.getAttr ["version"] "4.1.0" args;
|
||||
buildInputs = with args; [
|
||||
cmake freeglut mesa
|
||||
libX11 xproto inputproto libXi libXmu
|
||||
];
|
||||
in
|
||||
rec {
|
||||
src = fetchurl {
|
||||
url = "http://files.slembcke.net/chipmunk/release/Chipmunk-${version}.tgz";
|
||||
sha256 = "0ry17lf4kdcac91bpavks2cswch3izsmmam0yhczk7rayj9cvqsh";
|
||||
};
|
||||
|
||||
inherit buildInputs;
|
||||
configureFlags = [];
|
||||
|
||||
/* doConfigure should be specified separately */
|
||||
phaseNames = ["genMakefile" "doMakeInstall" "demoInstall"];
|
||||
|
||||
genMakefile = FullDepEntry ''
|
||||
cmake -D CMAKE_INSTALL_PREFIX=$out .
|
||||
'' ["minInit" "addInputs" "doUnpack"];
|
||||
|
||||
demoInstall = FullDepEntry(''
|
||||
ensureDir $out/bin
|
||||
cp chipmunk_demos $out/bin
|
||||
'') ["doMakeInstall" "defEnsureDir"];
|
||||
|
||||
name = "chipmunk-" + version;
|
||||
meta = {
|
||||
description = "Chipmunk 2D physics engine";
|
||||
};
|
||||
}
|
|
@ -2674,6 +2674,11 @@ let
|
|||
inherit fetchurl stdenv pkgconfig cairo x11 fontconfig freetype;
|
||||
};
|
||||
|
||||
chipmunk = builderDefsPackage (import ../development/libraries/chipmunk) {
|
||||
inherit cmake freeglut mesa;
|
||||
inherit (xlibs) libX11 xproto inputproto libXi libXmu;
|
||||
};
|
||||
|
||||
chmlib = import ../development/libraries/chmlib {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue