2011-12-12 15:02:12 +01:00
|
|
|
{ stdenv, fetchurl, SDL, mesa, SDL_ttf, gettext, zlib, SDL_mixer, SDL_image, guile
|
|
|
|
, debug ? false }:
|
2009-05-17 01:14:37 +02:00
|
|
|
|
2011-12-12 17:51:09 +01:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2009-05-17 01:14:37 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "trackballs-1.1.4";
|
2011-12-12 15:02:12 +01:00
|
|
|
|
2009-05-17 01:14:37 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://sourceforge/trackballs/trackballs-1.1.4.tar.gz;
|
|
|
|
sha256 = "19ilnif59sxa8xmfisk90wngrd11pj8s86ixzypv8krm4znbm7a5";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zlib mesa SDL SDL_ttf SDL_mixer SDL_image guile gettext ];
|
|
|
|
|
2011-12-12 15:02:12 +01:00
|
|
|
CFLAGS = optionalString debug "-g -O0";
|
2009-05-17 01:14:37 +02:00
|
|
|
CXXFLAGS = CFLAGS;
|
2011-12-12 15:02:12 +01:00
|
|
|
dontStrip = debug;
|
|
|
|
postUnpack = optionalString debug
|
2012-01-18 21:16:00 +01:00
|
|
|
"mkdir -p $out/src; cp -R * $out/src ; cd $out/src";
|
2009-05-17 01:14:37 +02:00
|
|
|
|
2015-10-11 16:21:43 +02:00
|
|
|
NIX_CFLAGS_COMPILE = "-iquote ${SDL.dev}/include/SDL";
|
2011-12-12 17:52:03 +01:00
|
|
|
configureFlags = optionalString debug "--enable-debug";
|
2009-05-17 01:14:37 +02:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e 's/images icons music/images music/' share/Makefile.in
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://trackballs.sourceforge.net/;
|
|
|
|
description = "3D Marble Madness clone";
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-05-17 01:14:37 +02:00
|
|
|
};
|
|
|
|
}
|