2015-12-29 23:34:19 +01:00
|
|
|
{ stdenv, fetchurl, texinfo, libXext, xextproto, libX11, xproto
|
|
|
|
, libXpm, libXt, libXcursor, alsaLib, cmake, zlib, libpng, libvorbis
|
|
|
|
, libXxf86dga, libXxf86misc, xf86dgaproto, xf86miscproto
|
2016-11-26 20:18:35 +01:00
|
|
|
, xf86vidmodeproto, libXxf86vm, openal, mesa, kbproto, libjpeg, flac
|
|
|
|
, inputproto, libXi, fixesproto, libXfixes, freetype, libopus, libtheora
|
|
|
|
, physfs, enet, pkgconfig, gtk2, pcre, libpulseaudio, libpthreadstubs
|
|
|
|
, libXdmcp
|
|
|
|
}:
|
2011-09-25 23:07:48 +02:00
|
|
|
|
2015-12-29 23:34:19 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "allegro-${version}";
|
2016-11-26 20:18:35 +01:00
|
|
|
version = "5.2.1.1";
|
2011-09-25 23:07:48 +02:00
|
|
|
|
2015-12-29 23:34:19 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.gna.org/allegro/allegro/${version}/${name}.tar.gz";
|
2016-11-26 20:18:35 +01:00
|
|
|
sha256 = "0waalic7lyaf6i33nikmkc29bndci5c5090c4ra2vmy67cqdzndm";
|
2011-09-25 23:07:48 +02:00
|
|
|
};
|
|
|
|
|
2015-12-29 23:34:19 +01:00
|
|
|
buildInputs = [
|
|
|
|
texinfo libXext xextproto libX11 xproto libXpm libXt libXcursor
|
|
|
|
alsaLib cmake zlib libpng libvorbis libXxf86dga libXxf86misc
|
|
|
|
xf86dgaproto xf86miscproto xf86vidmodeproto libXxf86vm openal mesa
|
|
|
|
kbproto libjpeg flac
|
2016-11-26 20:18:35 +01:00
|
|
|
inputproto libXi fixesproto libXfixes
|
|
|
|
enet libtheora freetype physfs libopus pkgconfig gtk2 pcre libXdmcp
|
|
|
|
libpulseaudio libpthreadstubs
|
2011-09-25 23:07:48 +02:00
|
|
|
];
|
|
|
|
|
2016-11-26 20:18:35 +01:00
|
|
|
patchPhase = ''
|
|
|
|
sed -e 's@/XInput2.h@/XI2.h@g' -i CMakeLists.txt "src/"*.c
|
|
|
|
'';
|
|
|
|
|
2015-12-29 23:34:19 +01:00
|
|
|
cmakeFlags = [ "-DCMAKE_SKIP_RPATH=ON" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2011-09-25 23:07:48 +02:00
|
|
|
description = "A game programming library";
|
2015-12-29 23:34:19 +01:00
|
|
|
homepage = http://liballeg.org/;
|
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux;
|
2011-09-25 23:07:48 +02:00
|
|
|
};
|
2015-12-29 23:34:19 +01:00
|
|
|
}
|