2015-12-29 23:34:36 +01:00
|
|
|
{ stdenv, fetchurl, texinfo, libXext, xextproto, libX11, xproto
|
|
|
|
, libXpm, libXt, libXcursor, alsaLib, cmake, zlib, libpng, libvorbis
|
|
|
|
, libXxf86dga, libXxf86misc, xf86dgaproto, xf86miscproto
|
|
|
|
, xf86vidmodeproto, libXxf86vm, openal, mesa, kbproto, libjpeg, flac
|
|
|
|
, inputproto, libXi, fixesproto, libXfixes }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "allegro-${version}";
|
|
|
|
version = "5.1.11";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.gna.org/allegro/allegro-unstable/${version}/${name}.tar.gz";
|
2015-07-04 20:59:31 +02:00
|
|
|
sha256 = "0zz07gdyc6xflpvkknwgzsyyyh9qiwd69j42rm9cw1ciwcsic1vs";
|
2014-07-01 10:41:07 +02:00
|
|
|
};
|
|
|
|
|
2015-12-29 23:34:36 +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 inputproto libXi fixesproto libXfixes
|
|
|
|
];
|
2014-07-01 10:41:07 +02:00
|
|
|
|
2015-12-29 23:34:36 +01:00
|
|
|
patchPhase = ''
|
|
|
|
sed -e 's@/XInput2.h@/XI2.h@g' -i CMakeLists.txt "src/"*.c
|
|
|
|
'';
|
2014-07-01 10:41:07 +02:00
|
|
|
|
2015-12-29 23:34:36 +01:00
|
|
|
cmakeFlags = [ "-DCMAKE_SKIP_RPATH=ON" ];
|
2014-07-01 10:41:07 +02:00
|
|
|
|
2015-12-29 23:34:36 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-07-01 10:41:07 +02:00
|
|
|
description = "A game programming library";
|
2015-12-29 23:34:36 +01:00
|
|
|
homepage = http://liballeg.org/;
|
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux;
|
2014-07-01 10:41:07 +02:00
|
|
|
};
|
2015-12-29 23:34:36 +01:00
|
|
|
}
|