Merge pull request #280985 from wegank/ogre-freeimage

ogre: drop freeimage
This commit is contained in:
7c6f434c 2024-01-20 15:06:04 +00:00 committed by GitHub
commit a95a4c1544
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -6,7 +6,6 @@
, unzip
, SDL2
, boost
, freeimage
, freetype
, libpng
, ois
@ -55,7 +54,6 @@ let
buildInputs = [
SDL2
boost
freeimage
freetype
libpng
ois

View File

@ -48,6 +48,13 @@ stdenv.mkDerivation rec {
hash = "sha256-fglm1FetFGHM/qGTtpxDb8+k2iAREn5DQR5GPujuLms=";
};
postPatch = ''
substituteInPlace config/*-default.cfg \
--replace "screenshot_png = off" "screenshot_png = on"
substituteInPlace source/*/BaseApp_Create.cpp \
--replace "Codec_FreeImage" "Codec_STBI"
'';
preConfigure = ''
rmdir data/tracks
ln -s ${tracks}/ data/tracks