2010-04-29 15:56:52 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, x11, xlibs, libdrm, expat, lipo ? null }:
|
2004-06-09 18:53:30 +01:00
|
|
|
|
2010-03-01 12:32:40 +00:00
|
|
|
if ! stdenv.lib.lists.elem stdenv.system stdenv.lib.platforms.mesaPlatforms then
|
2009-04-20 23:06:12 +01:00
|
|
|
throw "unsupported platform for Mesa"
|
|
|
|
else
|
2004-06-09 18:53:30 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2010-01-13 12:43:17 +00:00
|
|
|
name = "mesa-7.6.1";
|
2010-04-29 15:57:02 +01:00
|
|
|
|
2007-02-26 17:05:27 +00:00
|
|
|
src = fetchurl {
|
2010-01-13 12:43:17 +00:00
|
|
|
url = ftp://ftp.freedesktop.org/pub/mesa/7.6.1/MesaLib-7.6.1.tar.bz2;
|
|
|
|
md5 = "7db4617e9e10ad3aca1b64339fd71b7d";
|
2007-02-26 17:05:27 +00:00
|
|
|
};
|
2010-01-13 12:43:17 +00:00
|
|
|
|
2010-04-29 15:57:07 +01:00
|
|
|
configureFlags = "--disable-gallium"
|
|
|
|
+ (if stdenv.isDarwin then " --disable-egl" else "");
|
2010-04-29 15:57:02 +01:00
|
|
|
|
2009-10-29 17:19:25 +00:00
|
|
|
buildInputs =
|
|
|
|
[ pkgconfig expat x11 libdrm xlibs.glproto
|
|
|
|
xlibs.libXxf86vm xlibs.libXfixes xlibs.libXdamage xlibs.dri2proto
|
2010-04-29 15:56:52 +01:00
|
|
|
lipo
|
2009-10-29 17:19:25 +00:00
|
|
|
];
|
2010-04-29 15:57:02 +01:00
|
|
|
|
2009-10-29 17:19:25 +00:00
|
|
|
passthru = { inherit libdrm; };
|
2010-04-29 15:57:02 +01:00
|
|
|
|
2007-11-05 23:59:55 +00:00
|
|
|
meta = {
|
2008-03-01 17:44:50 +00:00
|
|
|
description = "An open source implementation of OpenGL";
|
2007-11-05 23:59:55 +00:00
|
|
|
homepage = http://www.mesa3d.org/;
|
2009-10-29 17:19:25 +00:00
|
|
|
license = "bsd";
|
2007-11-05 23:59:55 +00:00
|
|
|
};
|
2004-06-09 18:53:30 +01:00
|
|
|
}
|