From 03ccbe3f78ba498847732d2499fe321d9cececd8 Mon Sep 17 00:00:00 2001 From: LluĂ­s Batlle i Rossell Date: Tue, 24 Aug 2010 19:36:42 +0000 Subject: Adding a more-or-less working 'egoboo'. I'll update to a better expression after some egoboo upstream work. svn path=/nixpkgs/trunk/; revision=23408 --- pkgs/games/egoboo/default.nix | 57 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 pkgs/games/egoboo/default.nix (limited to 'pkgs/games/egoboo') diff --git a/pkgs/games/egoboo/default.nix b/pkgs/games/egoboo/default.nix new file mode 100644 index 00000000000..a1b7262f3b9 --- /dev/null +++ b/pkgs/games/egoboo/default.nix @@ -0,0 +1,57 @@ +{ stdenv, fetchurl, mesa, SDL, SDL_mixer, SDL_image, SDL_ttf }: + +stdenv.mkDerivation rec { + # pf5234 (a developer?) at freenode #egoboo told me that I better use 2.7.3 until + # they fix more, because it even has at least one bugs less than 2.7.4. + # 2.8.0 does not start properly on linux + # They just starting making that 2.8.0 work on linux. + name = "egoboo-2.7.3"; + + src = fetchurl { + url = "mirror://sourceforge/egoboo/${name}.tar.gz"; + sha256 = "18cjgp9kakrsa90jcb4cl8hhh9k57mi5d1sy5ijjpd3p7zl647hd"; + }; + + buildPhase = '' + cd source + make -C enet all + # The target 'all' has trouble + make -C game -f Makefile.unix egoboo + ''; + + # The user will need to have all the files in '.' to run egoboo, with + # writeable controls.txt and setup.txt + installPhase = '' + ensureDir $out/share/${name} + cp -v game/egoboo $out/share/${name} + cd .. + cp -v -Rd controls.txt setup.txt players modules basicdat $out/share/${name} + ''; + + buildInputs = [ mesa SDL SDL_mixer SDL_image SDL_ttf ]; + + /* + This big commented thing may be needed for versions 2.8.0 or beyond + I keep it here for future updates. + + # Some files have to go to $HOME, but we put them in the 'shared'. + patchPhase = '' + sed -i -e 's,''${HOME}/.''${PROJ_NAME},''${PREFIX}/share/games/''${PROJ_NAME},g' Makefile + ''; + + preBuild = '' + makeFlags=PREFIX=$out + ''; + */ + + meta = { + description = "3D dungeon crawling adventure"; + + homepage = http://www.freedink.org/; + license = "GPLv2+"; + + # I take it out of hydra as it does not work as well as I'd like + # maintainers = [ stdenv.lib.maintainers.bjg ]; + # platforms = stdenv.lib.platforms.all; + }; +} -- cgit 1.4.1