dhewm3: linking with mesa (for non-nvidia cards)

It was just doing a dlopen(libGL), so mesa wasn't in the rpath.
Now it is.
This commit is contained in:
Lluís Batlle i Rossell 2013-04-04 23:06:40 +02:00
parent d0d4e66652
commit 3db052eb7a

View file

@ -9,6 +9,11 @@ stdenv.mkDerivation rec {
sha256 = "0c17k60xhimpqi1xi9s1l7jbc97pqjnk4lgwyjb0agc3dkr73zwd";
};
# Add mesa linking
patchPhase = ''
sed -i 's/\<idlib\()\?\)$/idlib GL\1/' CMakeLists.txt
'';
unpackPhase = ''
unzip ${src}
cd */neo
@ -24,5 +29,5 @@ stdenv.mkDerivation rec {
description = "Doom 3 port to SDL";
license = "GPLv3";
};
}
}