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-17 00:14:37 +01:00
|
|
|
|
2011-12-12 16:51:09 +00:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2009-05-17 00:14:37 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "trackballs-1.1.4";
|
2011-12-12 14:02:12 +00:00
|
|
|
|
2009-05-17 00:14:37 +01: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 10:09:14 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2011-12-12 14:02:12 +00:00
|
|
|
CFLAGS = optionalString debug "-g -O0";
|
2009-05-17 00:14:37 +01: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-17 00:14:37 +01:00
|
|
|
|
2015-10-11 15:21:43 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-iquote ${SDL.dev}/include/SDL";
|
2011-12-12 16:52:03 +00:00
|
|
|
configureFlags = optionalString debug "--enable-debug";
|
2009-05-17 00:14:37 +01: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 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-05-17 00:14:37 +01:00
|
|
|
};
|
|
|
|
}
|