* Build a DRI-accelerated Mesa.

svn path=/nixpkgs/trunk/; revision=8066
This commit is contained in:
Eelco Dolstra 2007-02-27 00:18:34 +00:00
parent f6b15579b8
commit 4788912bde
3 changed files with 16 additions and 17 deletions

View file

@ -1,11 +0,0 @@
source $stdenv/setup
buildFlags="linux-x86"
installPhase=installPhase
installPhase() {
ensureDir $out
./bin/installmesa $out
}
genericBuild

View file

@ -1,6 +1,13 @@
{stdenv, fetchurl, x11, libXmu, libXi}:
{stdenv, fetchurl, pkgconfig, x11, libXmu, libXi, makedepend, libdrm, glproto, libXxf86vm}:
assert stdenv.system == "i686-linux";
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
stdenv.mkDerivation {
name = "mesa-6.5.2";
@ -8,6 +15,10 @@ stdenv.mkDerivation {
url = http://mesh.dl.sourceforge.net/sourceforge/mesa3d/MesaLib-6.5.2.tar.bz2;
sha256 = "0pxq3zjfdgcpkc92cyzl9hskdmc8qxxp7b2smywixmb10jim0zqk";
};
buildFlags = "${target}";
preBuild = "
makeFlagsArray=(INSTALL_DIR=$out DRI_DRIVER_INSTALL_DIR=$out/lib/modules/dri)
";
/* (fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/MesaGLUT-6.4.tar.bz2;
md5 = "1a8c4d4fc699233f5fdb902b8753099e";
@ -16,6 +27,5 @@ stdenv.mkDerivation {
url = http://nix.cs.uu.nl/dist/tarballs/MesaDemos-6.4.tar.bz2;
md5 = "1a8c4d4fc699233f5fdb902b8753099e";
}) */
builder = ./builder.sh;
buildInputs = [x11 libXmu libXi];
buildInputs = [pkgconfig x11 libXmu libXi makedepend libdrm glproto libXxf86vm];
}

View file

@ -1571,8 +1571,8 @@ rec {
};
mesa = import ../development/libraries/mesa {
inherit fetchurl stdenv x11;
inherit (xlibs) libXmu libXi;
inherit fetchurl stdenv pkgconfig x11 libdrm;
inherit (xlibs) libXmu libXi makedepend glproto libXxf86vm;
};
mesaHeaders = import ../development/libraries/mesa/headers.nix {