forked from mirrors/nixpkgs
641f956581
(my git-svn info:) Merge branch 'mips64' into stdenv-updates Conflicts: pkgs/applications/networking/browsers/firefox/3.6.nix pkgs/top-level/all-packages.nix svn path=/nixpkgs/branches/stdenv-updates/; revision=23588
35 lines
931 B
Nix
35 lines
931 B
Nix
{ stdenv, fetchurl, pkgconfig, x11, xlibs, libdrm, expat, lipo ? null }:
|
|
|
|
if ! stdenv.lib.lists.elem stdenv.system stdenv.lib.platforms.mesaPlatforms then
|
|
throw "unsupported platform for Mesa"
|
|
else
|
|
|
|
stdenv.mkDerivation {
|
|
name = "mesa-7.8.2";
|
|
|
|
src = fetchurl {
|
|
url = ftp://ftp.freedesktop.org/pub/mesa/7.8.2/MesaLib-7.8.2.tar.bz2;
|
|
md5 = "6be2d343a0089bfd395ce02aaf8adb57";
|
|
};
|
|
|
|
configureFlags =
|
|
"--disable-gallium"
|
|
+ (if stdenv.system == "mips64-linux" then
|
|
" --with-dri-drivers=swrast --with-driver=dri" else "")
|
|
+ (if stdenv.isDarwin then " --disable-egl" else "");
|
|
|
|
buildInputs =
|
|
[ pkgconfig expat x11 libdrm xlibs.glproto
|
|
xlibs.libXxf86vm xlibs.libXfixes xlibs.libXdamage xlibs.dri2proto
|
|
lipo
|
|
];
|
|
|
|
passthru = { inherit libdrm; };
|
|
|
|
meta = {
|
|
description = "An open source implementation of OpenGL";
|
|
homepage = http://www.mesa3d.org/;
|
|
license = "bsd";
|
|
};
|
|
}
|