2012-02-05 01:51:35 +01:00
|
|
|
{ stdenv, fetchurl, mesa, libX11, openssl, libXext
|
|
|
|
, libjpeg_turbo, cmake }:
|
2010-07-10 10:45:44 +02:00
|
|
|
|
2010-07-13 21:12:42 +02:00
|
|
|
let
|
|
|
|
libDir = if stdenv.is64bit then "lib64" else "lib";
|
|
|
|
in
|
2010-07-10 10:45:44 +02:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "virtualgl-2.1.4";
|
|
|
|
src = fetchurl {
|
2012-02-05 01:51:35 +01:00
|
|
|
url = mirror://sourceforge/virtualgl/VirtualGL-2.3.tar.gz;
|
|
|
|
sha256 = "2f00c4eb20b0ae88e957a23fb66882e4ade2faa208abd30aa8c4f61570ecd4b9";
|
2010-07-10 10:45:44 +02:00
|
|
|
};
|
|
|
|
|
2012-02-05 01:51:35 +01:00
|
|
|
patches = [ ./xshm.patch ./fixturbopath.patch ];
|
2010-07-10 10:45:44 +02:00
|
|
|
|
2010-07-13 21:12:42 +02:00
|
|
|
prePatch = ''
|
|
|
|
sed -i s,LD_PRELOAD=lib,LD_PRELOAD=$out/${libDir}/lib, rr/vglrun
|
|
|
|
'';
|
|
|
|
|
2012-02-05 01:51:35 +01:00
|
|
|
cmakeFlags = [ "-DTJPEG_LIBRARY=${libjpeg_turbo}/lib/libturbojpeg.so" ];
|
|
|
|
|
|
|
|
preInstall = ''
|
2010-07-10 10:45:44 +02:00
|
|
|
export makeFlags="prefix=$out"
|
|
|
|
'';
|
|
|
|
|
2012-02-05 01:51:35 +01:00
|
|
|
buildInputs = [ cmake mesa libX11 openssl libXext libjpeg_turbo ];
|
2010-07-10 10:45:44 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.virtualgl.org/;
|
|
|
|
description = "X11 GL rendering in a remote computer with full 3D hw acceleration";
|
|
|
|
license = "free"; # many parts under different free licenses
|
|
|
|
};
|
|
|
|
}
|