mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
Merge pull request #250604 from NixOS/quake3-urbanterror-fix-preconfigure-phase
{ioquake3, urbanterror}: fix `Makefile.local` creation and use, and align
This commit is contained in:
commit
46c03ec8ee
6
pkgs/games/quake3/ioquake/Makefile.local
Normal file
6
pkgs/games/quake3/ioquake/Makefile.local
Normal file
@ -0,0 +1,6 @@
|
||||
USE_CURL = 1
|
||||
USE_CURL_DLOPEN = 0
|
||||
USE_FREETYPE = 1
|
||||
USE_INTERNAL_LIBS = 0
|
||||
USE_OPENAL = 1
|
||||
USE_OPENAL_DLOPEN = 0
|
@ -16,6 +16,7 @@
|
||||
, libjpeg
|
||||
, makeDesktopItem
|
||||
, freetype
|
||||
, mumble
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
@ -47,11 +48,14 @@ stdenv.mkDerivation {
|
||||
libvorbis
|
||||
libjpeg
|
||||
freetype
|
||||
mumble
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
makeFlags = [ "USE_INTERNAL_LIBS=0" "USE_FREETYPE=1" "USE_OPENAL_DLOPEN=0" "USE_CURL_DLOPEN=0" ];
|
||||
preConfigure = ''
|
||||
cp ${./Makefile.local} ./Makefile.local
|
||||
'';
|
||||
|
||||
installTargets = [ "copyfiles" ];
|
||||
|
||||
|
5
pkgs/games/urbanterror/Makefile.local
Normal file
5
pkgs/games/urbanterror/Makefile.local
Normal file
@ -0,0 +1,5 @@
|
||||
USE_CURL = 1
|
||||
USE_CURL_DLOPEN = 0
|
||||
USE_FREETYPE = 1
|
||||
USE_OPENAL = 1
|
||||
USE_OPENAL_DLOPEN = 0
|
@ -56,15 +56,8 @@ stdenv.mkDerivation {
|
||||
SDL
|
||||
];
|
||||
|
||||
configurePhase = ''
|
||||
runHook preConfigure
|
||||
|
||||
echo "USE_OPENAL = 1" > Makefile.local
|
||||
echo "USE_OPENAL_DLOPEN = 0" >> Makefile.local
|
||||
echo "USE_CURL = 1" >> Makefile.local
|
||||
echo "USE_CURL_DLOPEN = 0" >> Makefile.local
|
||||
|
||||
runHook postConfigure
|
||||
preConfigure = ''
|
||||
cp ${./Makefile.local} ./Makefile.local
|
||||
'';
|
||||
|
||||
installTargets = [ "copyfiles" ];
|
||||
|
Loading…
Reference in New Issue
Block a user