2021-01-15 04:31:39 +00:00
|
|
|
{ lib, stdenv, fetchurl, SDL, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx
|
2021-01-17 05:49:22 +00:00
|
|
|
, pkg-config, intltool, fontconfig, libzip, zip, zlib }:
|
2010-05-02 09:27:51 +00:00
|
|
|
|
2013-02-28 15:34:19 +00:00
|
|
|
let
|
|
|
|
version = "1.08.20121209";
|
|
|
|
|
|
|
|
freedink_data = stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "freedink-data";
|
|
|
|
inherit version;
|
2013-02-28 15:34:19 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-13 21:52:01 +00:00
|
|
|
url = "mirror://gnu/freedink/${pname}-${version}.tar.gz";
|
2013-02-28 15:34:19 +00:00
|
|
|
sha256 = "1mhns09l1s898x18ahbcy9gabrmgsr8dv7pm0a2ivid8mhxahn1j";
|
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = "substituteInPlace Makefile --replace /usr/local $out";
|
|
|
|
};
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "freedink";
|
|
|
|
inherit version;
|
2010-05-02 09:27:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-13 21:52:01 +00:00
|
|
|
url = "mirror://gnu/freedink/${pname}-${version}.tar.gz";
|
2013-02-28 15:34:19 +00:00
|
|
|
sha256 = "19xximbcm6506kvpf3s0q96697kmzca3yrjdr6dgphklp33zqsqr";
|
2010-05-02 09:27:51 +00:00
|
|
|
};
|
|
|
|
|
2013-02-28 15:34:19 +00:00
|
|
|
buildInputs = [
|
|
|
|
SDL SDL_mixer SDL_image SDL_ttf SDL_gfx
|
2021-01-17 05:49:22 +00:00
|
|
|
pkg-config intltool fontconfig libzip zip zlib
|
2013-02-28 15:34:19 +00:00
|
|
|
];
|
|
|
|
|
2017-11-21 04:27:10 +00:00
|
|
|
preConfigure = ''
|
|
|
|
# Build fails on Linux with windres.
|
|
|
|
export ac_cv_prog_ac_ct_WINDRES=
|
|
|
|
'';
|
|
|
|
|
2013-02-28 15:34:19 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p "$out/share/"
|
|
|
|
ln -s ${freedink_data}/share/dink "$out/share/"
|
|
|
|
'';
|
2010-05-02 09:27:51 +00:00
|
|
|
|
2017-11-21 04:27:10 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2010-05-02 09:27:51 +00:00
|
|
|
meta = {
|
2013-02-28 15:34:19 +00:00
|
|
|
description = "A free, portable and enhanced version of the Dink Smallwood game engine";
|
2010-05-02 09:27:51 +00:00
|
|
|
|
2013-02-28 15:34:19 +00: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 09:27:51 +00:00
|
|
|
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.freedink.org/";
|
2021-01-15 04:31:39 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2010-05-02 09:27:51 +00:00
|
|
|
|
2021-01-15 04:31:39 +00:00
|
|
|
maintainers = [ lib.maintainers.bjg ];
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
hydraPlatforms = lib.platforms.linux; # sdl-config times out on darwin
|
2010-05-02 09:27:51 +00:00
|
|
|
};
|
|
|
|
}
|