2011-12-12 14:02:12 +00:00
|
|
|
{ stdenv, fetchurl, SDL, mesa, SDL_ttf, gettext, zlib, SDL_mixer, SDL_image, guile
|
|
|
|
, debug ? false }:
|
2009-05-16 23:14:37 +00:00
|
|
|
|
2011-12-12 16:51:09 +00:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2009-05-16 23:14:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "trackballs-1.1.4";
|
2011-12-12 14:02:12 +00:00
|
|
|
|
2009-05-16 23:14:37 +00: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 ];
|
|
|
|
|
2016-08-04 09:09:14 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2011-12-12 14:02:12 +00:00
|
|
|
CFLAGS = optionalString debug "-g -O0";
|
2009-05-16 23:14:37 +00:00
|
|
|
CXXFLAGS = CFLAGS;
|
2011-12-12 14:02:12 +00:00
|
|
|
dontStrip = debug;
|
|
|
|
postUnpack = optionalString debug
|
2012-01-18 20:16:00 +00:00
|
|
|
"mkdir -p $out/src; cp -R * $out/src ; cd $out/src";
|
2009-05-16 23:14:37 +00:00
|
|
|
|
2015-10-11 14:21:43 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-iquote ${SDL.dev}/include/SDL";
|
2011-12-12 16:52:03 +00:00
|
|
|
configureFlags = optionalString debug "--enable-debug";
|
2009-05-16 23:14:37 +00: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 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-05-16 23:14:37 +00:00
|
|
|
};
|
|
|
|
}
|