pkgs/games/warsow: Now mesa will be added to RPATH. Small cleanup.
svn path=/nixpkgs/trunk/; revision=20935
This commit is contained in:
parent
bb8a2181ad
commit
c68b4a9297
@ -19,10 +19,9 @@ stdenv.mkDerivation rec {
|
|||||||
cd source
|
cd source
|
||||||
unzip $src2 'basewsw/*' -d release
|
unzip $src2 'basewsw/*' -d release
|
||||||
'';
|
'';
|
||||||
inherit openal;
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
substituteInPlace Makefile --replace "openal-config" "pkg-config openal"
|
substituteInPlace Makefile --replace openal-config 'pkg-config openal'
|
||||||
substituteInPlace snd_openal/snd_main.c --replace libopenal.so.0 $openal/lib/libopenal.so
|
substituteInPlace snd_openal/snd_main.c --replace libopenal.so.0 ${openal}/lib/libopenal.so
|
||||||
'';
|
'';
|
||||||
buildInputs = [ unzip pkgconfig zlib curl libjpeg libvorbis libXxf86dga
|
buildInputs = [ unzip pkgconfig zlib curl libjpeg libvorbis libXxf86dga
|
||||||
libXxf86vm libXinerama SDL mesa openal ];
|
libXxf86vm libXinerama SDL mesa openal ];
|
||||||
@ -38,6 +37,11 @@ stdenv.mkDerivation rec {
|
|||||||
cp -rv basewsw libs $dest
|
cp -rv basewsw libs $dest
|
||||||
cp -v warsow wsw_server wswtv_server $out/bin
|
cp -v warsow wsw_server wswtv_server $out/bin
|
||||||
'';
|
'';
|
||||||
|
postFixup = ''
|
||||||
|
p=$out/opt/warsow/warsow.*
|
||||||
|
cur_rpath=$(patchelf --print-rpath $p)
|
||||||
|
patchelf --set-rpath $cur_rpath:${mesa}/lib $p
|
||||||
|
'';
|
||||||
meta = {
|
meta = {
|
||||||
description = "A multiplayer FPS designed for competitive gaming.";
|
description = "A multiplayer FPS designed for competitive gaming.";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user