2010-05-02 11:27:51 +02:00
|
|
|
{ stdenv, fetchurl, SDL, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx
|
2013-02-28 16:34:19 +01:00
|
|
|
, pkgconfig, intltool, fontconfig, libzip, zip, zlib }:
|
2010-05-02 11:27:51 +02:00
|
|
|
|
2013-02-28 16:34:19 +01:00
|
|
|
let
|
|
|
|
version = "1.08.20121209";
|
|
|
|
|
|
|
|
freedink_data = stdenv.mkDerivation rec {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "freedink-data";
|
|
|
|
inherit version;
|
2013-02-28 16:34:19 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-13 23:52:01 +02:00
|
|
|
url = "mirror://gnu/freedink/${pname}-${version}.tar.gz";
|
2013-02-28 16:34:19 +01:00
|
|
|
sha256 = "1mhns09l1s898x18ahbcy9gabrmgsr8dv7pm0a2ivid8mhxahn1j";
|
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = "substituteInPlace Makefile --replace /usr/local $out";
|
|
|
|
};
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "freedink";
|
|
|
|
inherit version;
|
2010-05-02 11:27:51 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-13 23:52:01 +02:00
|
|
|
url = "mirror://gnu/freedink/${pname}-${version}.tar.gz";
|
2013-02-28 16:34:19 +01:00
|
|
|
sha256 = "19xximbcm6506kvpf3s0q96697kmzca3yrjdr6dgphklp33zqsqr";
|
2010-05-02 11:27:51 +02:00
|
|
|
};
|
|
|
|
|
2013-02-28 16:34:19 +01:00
|
|
|
buildInputs = [
|
|
|
|
SDL SDL_mixer SDL_image SDL_ttf SDL_gfx
|
|
|
|
pkgconfig intltool fontconfig libzip zip zlib
|
|
|
|
];
|
|
|
|
|
2017-11-21 05:27:10 +01:00
|
|
|
preConfigure = ''
|
|
|
|
# Build fails on Linux with windres.
|
|
|
|
export ac_cv_prog_ac_ct_WINDRES=
|
|
|
|
'';
|
|
|
|
|
2013-02-28 16:34:19 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p "$out/share/"
|
|
|
|
ln -s ${freedink_data}/share/dink "$out/share/"
|
|
|
|
'';
|
2010-05-02 11:27:51 +02:00
|
|
|
|
2017-11-21 05:27:10 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2010-05-02 11:27:51 +02:00
|
|
|
meta = {
|
2013-02-28 16:34:19 +01:00
|
|
|
description = "A free, portable and enhanced version of the Dink Smallwood game engine";
|
2010-05-02 11:27:51 +02:00
|
|
|
|
2013-02-28 16:34:19 +01:00
|
|
|
longDescription = ''
|
|
|
|
GNU FreeDink is a new and portable version of the Dink Smallwood
|
|
|
|
game engine, which runs the original game as well as its D-Mods,
|
|
|
|
with close compatibility, under multiple platforms.
|
|
|
|
'';
|
2010-05-02 11:27:51 +02:00
|
|
|
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.freedink.org/";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2010-05-02 11:27:51 +02:00
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.bjg ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
2018-06-23 23:46:07 +02:00
|
|
|
hydraPlatforms = stdenv.lib.platforms.linux; # sdl-config times out on darwin
|
2010-05-02 11:27:51 +02:00
|
|
|
};
|
|
|
|
}
|