2007-02-27 01:18:34 +01:00
|
|
|
{stdenv, fetchurl, pkgconfig, x11, libXmu, libXi, makedepend, libdrm, glproto, libXxf86vm}:
|
2004-06-09 19:53:30 +02:00
|
|
|
|
2007-02-27 01:18:34 +01:00
|
|
|
let
|
|
|
|
|
|
|
|
target =
|
|
|
|
if stdenv.system == "i686-linux" then "linux-dri-x86" else
|
|
|
|
if stdenv.system == "x86_64-linux" then "linux-dri-x86-64" else
|
|
|
|
abort "unsupported platform for Mesa";
|
|
|
|
|
|
|
|
in
|
2004-06-09 19:53:30 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-02-26 17:32:27 +01:00
|
|
|
name = "mesa-6.5.2";
|
2007-02-26 18:05:27 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = http://mesh.dl.sourceforge.net/sourceforge/mesa3d/MesaLib-6.5.2.tar.bz2;
|
|
|
|
sha256 = "0pxq3zjfdgcpkc92cyzl9hskdmc8qxxp7b2smywixmb10jim0zqk";
|
|
|
|
};
|
2007-02-27 01:18:34 +01:00
|
|
|
buildFlags = "${target}";
|
|
|
|
preBuild = "
|
|
|
|
makeFlagsArray=(INSTALL_DIR=$out DRI_DRIVER_INSTALL_DIR=$out/lib/modules/dri)
|
|
|
|
";
|
2005-11-02 21:58:38 +01:00
|
|
|
/* (fetchurl {
|
2006-01-30 17:04:03 +01:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/MesaGLUT-6.4.tar.bz2;
|
2005-11-02 21:58:38 +01:00
|
|
|
md5 = "1a8c4d4fc699233f5fdb902b8753099e";
|
2004-06-09 19:53:30 +02:00
|
|
|
})
|
2005-11-02 21:58:38 +01:00
|
|
|
(fetchurl {
|
2006-01-30 17:04:03 +01:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/MesaDemos-6.4.tar.bz2;
|
2005-11-02 21:58:38 +01:00
|
|
|
md5 = "1a8c4d4fc699233f5fdb902b8753099e";
|
|
|
|
}) */
|
2007-02-27 01:18:34 +01:00
|
|
|
buildInputs = [pkgconfig x11 libXmu libXi makedepend libdrm glproto libXxf86vm];
|
2004-06-09 19:53:30 +02:00
|
|
|
}
|