2021-01-15 05:31:39 +01:00
|
|
|
{ lib, stdenv, fetchurl, SDL, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx
|
2021-01-17 06:49:22 +01:00
|
|
|
, pkg-config, 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
|
2021-01-17 06:49:22 +01:00
|
|
|
pkg-config intltool fontconfig libzip zip zlib
|
2013-02-28 16:34:19 +01:00
|
|
|
];
|
|
|
|
|
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/";
|
2021-01-15 05:31:39 +01:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2010-05-02 11:27:51 +02:00
|
|
|
|
2021-01-15 05:31:39 +01:00
|
|
|
maintainers = [ lib.maintainers.bjg ];
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
hydraPlatforms = lib.platforms.linux; # sdl-config times out on darwin
|
2010-05-02 11:27:51 +02:00
|
|
|
};
|
|
|
|
}
|