gemrb: 0.8.1 -> 0.8.5
Additionally: - use SDL2 instead of SDL
This commit is contained in:
parent
78b3d6de28
commit
9a4cd40337
@ -1,37 +1,39 @@
|
|||||||
{ stdenv, fetchurl, cmake, SDL, openal, zlib, libpng, python, libvorbis }:
|
{ stdenv, fetchFromGitHub, cmake
|
||||||
|
, freetype, SDL2, SDL2_mixer, openal, zlib, libpng, python, libvorbis }:
|
||||||
assert stdenv.cc.libc != null;
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "gemrb-0.8.1";
|
name = "gemrb-${version}";
|
||||||
|
version = "0.8.5";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "mirror://sourceforge/gemrb/${name}.tar.gz";
|
owner = "gemrb";
|
||||||
sha256 = "1g68pc0x4azy6zm5y7813g0qky96q796si9v3vafiy7sa8ph49kl";
|
repo = "gemrb";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0xkjsiawxz53rac26vqz9sfgva0syff8x8crabrpbpxgmbacih7a";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cmake python openal SDL zlib libpng libvorbis ];
|
|
||||||
# TODO: make libpng, libvorbis, sdl_mixer, freetype, vlc, glew (and other gl reqs) optional
|
# TODO: make libpng, libvorbis, sdl_mixer, freetype, vlc, glew (and other gl reqs) optional
|
||||||
|
buildInputs = [ freetype python openal SDL2 SDL2_mixer zlib libpng libvorbis ];
|
||||||
|
|
||||||
# Necessary to find libdl.
|
nativeBuildInputs = [ cmake ];
|
||||||
CMAKE_LIBRARY_PATH = "${stdenv.cc.libc.out}/lib";
|
|
||||||
|
|
||||||
# Can't have -werror because of the Vorbis header files.
|
enableParallelBuilding = true;
|
||||||
cmakeFlags = "-DDISABLE_WERROR=ON -DCMAKE_VERBOSE_MAKEFILE=ON";
|
|
||||||
|
|
||||||
# upstream prefers some symbols to remain
|
cmakeFlags = [
|
||||||
dontStrip = true;
|
"-DLAYOUT=opt"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A reimplementation of the Infinity Engine, used by games such as Baldur's Gate";
|
description = "A reimplementation of the Infinity Engine, used by games such as Baldur's Gate";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
GemRB (Game engine made with pre-Rendered Background) is a portable open-source implementation of
|
GemRB (Game engine made with pre-Rendered Background) is a portable
|
||||||
Bioware's Infinity Engine. It was written to support pseudo-3D role playing games based on the
|
open-source implementation of Bioware's Infinity Engine. It was written to
|
||||||
Dungeons & Dragons ruleset (Baldur's Gate and Icewind Dale series, Planescape: Torment).
|
support pseudo-3D role playing games based on the Dungeons & Dragons
|
||||||
|
ruleset (Baldur's Gate and Icewind Dale series, Planescape: Torment).
|
||||||
'';
|
'';
|
||||||
homepage = http://gemrb.org/;
|
homepage = http://gemrb.org/;
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
platforms = stdenv.lib.platforms.all;
|
maintainer = with maintainers; [ peterhoeg ];
|
||||||
hydraPlatforms = [];
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user