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:
Pol Dellaiera 2023-08-22 06:47:39 +02:00 committed by GitHub
commit 46c03ec8ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 10 deletions

View 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

View File

@ -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" ];

View File

@ -0,0 +1,5 @@
USE_CURL = 1
USE_CURL_DLOPEN = 0
USE_FREETYPE = 1
USE_OPENAL = 1
USE_OPENAL_DLOPEN = 0

View File

@ -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" ];