3
0
Fork 0
forked from mirrors/nixpkgs

Updated eduke32 to rev 1944

svn path=/nixpkgs/trunk/; revision=27936
This commit is contained in:
Sander van der Burg 2011-07-25 10:48:07 +00:00
parent 2cc5d14382
commit f0e799a492

View file

@ -1,19 +1,18 @@
{stdenv, fetchsvn, SDL, SDL_mixer, unzip, libvorbis, mesa, gtk, pkgconfig, nasm, makeDesktopItem}: {stdenv, fetchurl, SDL, SDL_mixer, libvorbis, mesa, gtk, pkgconfig, nasm, makeDesktopItem}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "eduke32"; name = "eduke32-1944";
src = fetchsvn { src = fetchurl {
url = https://eduke32.svn.sourceforge.net/svnroot/eduke32/polymer/eduke32; url = http://dukeworld.duke4.net/eduke32/synthesis/20110724-1944/eduke32_src_20110724-1944.tar.bz2;
rev = 1597; sha256 = "0y2y9agydfkdq4krp4lz22br3p23as6hrqhq7l9djw0pm2y76fqh";
sha256 = "be917420d628584e1b950570f67332f66cee0d24edfcee39c7bd62e6b9456436";
}; };
buildInputs = [ unzip SDL SDL_mixer libvorbis mesa gtk pkgconfig ] buildInputs = [ SDL SDL_mixer libvorbis mesa gtk pkgconfig ]
++ stdenv.lib.optional (stdenv.system == "i686-linux") nasm; ++ stdenv.lib.optional (stdenv.system == "i686-linux") nasm;
NIX_LDFLAGS = "-lgcc_s";
NIX_CFLAGS_COMPILE = "-I${SDL}/include/SDL"; NIX_CFLAGS_COMPILE = "-I${SDL}/include/SDL";
NIX_LDFLAGS = "-L${SDL}/lib";
desktopItem = makeDesktopItem { desktopItem = makeDesktopItem {
name = "eduke32"; name = "eduke32";
@ -24,6 +23,10 @@ stdenv.mkDerivation rec {
categories = "Application;Game;"; categories = "Application;Game;";
}; };
preConfigure = ''
sed -i -e "s|/usr/bin/sdl-config|${SDL}/bin/sdl-config|" build/Makefile.shared
'';
buildPhase = '' buildPhase = ''
make OPTLEVEL=0 make OPTLEVEL=0
''; '';
@ -39,7 +42,7 @@ stdenv.mkDerivation rec {
if [ "$EDUKE32_DATA_DIR" = "" ] if [ "$EDUKE32_DATA_DIR" = "" ]
then then
EDUKE32_DATA_DIR=/var/games/eduke32 EDUKE32_DATA_DIR=/var/lib/games/eduke32
fi fi
if [ "$EDUKE32_GRP_FILE" = "" ] if [ "$EDUKE32_GRP_FILE" = "" ]
then then
@ -58,7 +61,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Enhanched port of Duke Nukem 3D for various platforms"; description = "Enhanched port of Duke Nukem 3D for various platforms";
license = "GPL"; license = "GPLv2+ and BUILD license";
homepage = http://eduke32.com;
maintainers = [ stdenv.lib.maintainers.sander ]; maintainers = [ stdenv.lib.maintainers.sander ];
}; };
} }