2020-11-30 08:33:03 +00:00
|
|
|
{ stdenv, fetchurl, cmake
|
|
|
|
, libGL, libGLU, libX11, libXv, libXtst, libjpeg_turbo, fltk
|
|
|
|
, xorg
|
|
|
|
, opencl-headers, opencl-clhpp, ocl-icd
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "virtualgl-lib";
|
2020-11-30 08:33:03 +00:00
|
|
|
version = "2.6.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/virtualgl/VirtualGL-${version}.tar.gz";
|
2020-11-30 08:33:03 +00:00
|
|
|
sha256 = "1giin3jmcs6y616bb44bpz30frsmj9f8pz2vg7jvb9vcfc9456rr";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DVGL_SYSTEMFLTK=1" "-DTJPEG_LIBRARY=${libjpeg_turbo.out}/lib/libturbojpeg.so" ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
buildInputs = [ libjpeg_turbo libGL libGLU fltk
|
|
|
|
libX11 libXv libXtst xorg.xcbutilkeysyms
|
|
|
|
opencl-headers opencl-clhpp ocl-icd
|
|
|
|
];
|
|
|
|
|
|
|
|
fixupPhase = ''
|
|
|
|
substituteInPlace $out/bin/vglrun \
|
|
|
|
--replace "LD_PRELOAD=libvglfaker" "LD_PRELOAD=$out/lib/libvglfaker" \
|
|
|
|
--replace "LD_PRELOAD=libdlfaker" "LD_PRELOAD=$out/lib/libdlfaker" \
|
|
|
|
--replace "LD_PRELOAD=libgefaker" "LD_PRELOAD=$out/lib/libgefaker"
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://www.virtualgl.org/";
|
|
|
|
description = "X11 GL rendering in a remote computer with full 3D hw acceleration";
|
|
|
|
license = licenses.wxWindows;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|