gemrb: 0.8.7 -> 0.9.0 (#127631)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

authored by Peter Hoeg Sandro and committed by GitHub 4d66930f 44f27213

+52 -14
+52 -14
pkgs/games/gemrb/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake 2 - , freetype, SDL2, SDL2_mixer, openal, zlib, libpng, python2, libvorbis 3 - , libiconv }: 4 5 stdenv.mkDerivation rec { 6 pname = "gemrb"; 7 - version = "0.8.7"; 8 9 src = fetchFromGitHub { 10 owner = "gemrb"; 11 repo = "gemrb"; 12 rev = "v${version}"; 13 - sha256 = "14j9mhrbi4gnrbv25nlsvcxzkylijzrnwbqqnrg7pr452lb3srpb"; 14 }; 15 16 - # TODO: make libpng, libvorbis, sdl_mixer, freetype, vlc, glew (and other gl 17 - # reqs) optional 18 - buildInputs = [ freetype python2 openal SDL2 SDL2_mixer zlib libpng libvorbis libiconv ]; 19 20 nativeBuildInputs = [ cmake ]; 21 22 - # TODO: add proper OpenGL support. We are currently (0.8.7) getting a shader 23 - # error on execution when enabled. 24 cmakeFlags = [ 25 "-DLAYOUT=opt" 26 - # "-DOPENGL_BACKEND=GLES" 27 - # "-DOpenGL_GL_PREFERENCE=GLVND" 28 ]; 29 30 meta = with lib; { 31 description = "A reimplementation of the Infinity Engine, used by games such as Baldur's Gate"; 32 longDescription = '' ··· 36 ruleset (Baldur's Gate and Icewind Dale series, Planescape: Torment). 37 ''; 38 homepage = "https://gemrb.org/"; 39 - license = licenses.gpl2; 40 maintainers = with maintainers; [ peterhoeg ]; 41 - platforms = platforms.all; 42 }; 43 }
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , cmake 5 + , SDL2 6 + , SDL2_mixer 7 + , freetype 8 + , libGL 9 + , libiconv 10 + , libpng 11 + , libvlc 12 + , libvorbis 13 + , openal 14 + , python2 # 0.9.0 crashes after character generation with py3, so stick to py2 for now 15 + , zlib 16 + }: 17 + 18 + let 19 + # the GLES backend on rpi is untested as I don't have the hardware 20 + backend = 21 + if (stdenv.isx86_32 || stdenv.isx86_64) then "OpenGL" else "GLES"; 22 23 + in 24 stdenv.mkDerivation rec { 25 pname = "gemrb"; 26 + version = "0.9.0"; 27 28 src = fetchFromGitHub { 29 owner = "gemrb"; 30 repo = "gemrb"; 31 rev = "v${version}"; 32 + sha256 = "sha256-h/dNPY0QZ2m7aYgRla3r1E8APJqO99ePa2ABhhh3Aoc="; 33 }; 34 35 + buildInputs = [ 36 + SDL2 37 + SDL2_mixer 38 + freetype 39 + libGL 40 + libiconv 41 + libpng 42 + libvlc 43 + libvorbis 44 + openal 45 + python2 46 + zlib 47 + ]; 48 49 nativeBuildInputs = [ cmake ]; 50 51 + LIBVLC_INCLUDE_PATH = "${lib.getDev libvlc}/include"; 52 + LIBVLC_LIBRARY_PATH = "${lib.getLib libvlc}/lib"; 53 + 54 cmakeFlags = [ 55 + # use the Mesa drivers for video on ARM (harmless on x86) 56 + "-DDISABLE_VIDEOCORE=ON" 57 "-DLAYOUT=opt" 58 + "-DOPENGL_BACKEND=${backend}" 59 + "-DOpenGL_GL_PREFERENCE=GLVND" 60 ]; 61 62 + postInstall = '' 63 + for s in 36 48 72 96 144; do 64 + install -Dm444 ../artwork/gemrb-logo-glow-''${s}px.png $out/share/icons/hicolor/''${s}x''${s}/gemrb.png 65 + done 66 + install -Dm444 ../artwork/gemrb-logo.png $out/share/icons/gemrb.png 67 + ''; 68 + 69 meta = with lib; { 70 description = "A reimplementation of the Infinity Engine, used by games such as Baldur's Gate"; 71 longDescription = '' ··· 75 ruleset (Baldur's Gate and Icewind Dale series, Planescape: Torment). 76 ''; 77 homepage = "https://gemrb.org/"; 78 + license = licenses.gpl2Only; 79 maintainers = with maintainers; [ peterhoeg ]; 80 }; 81 }