2019-08-19 02:16:48 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, autoreconfHook, perl, pkgconfig, flux, zlib
|
|
|
|
, libjpeg, freetype, libpng, giflib
|
2015-09-15 09:26:18 +00:00
|
|
|
, enableX11 ? true, xorg
|
2010-11-29 18:00:26 +00:00
|
|
|
, enableSDL ? true, SDL }:
|
|
|
|
|
2019-08-19 02:16:48 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "directfb";
|
|
|
|
version = "1.7.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "deniskropp";
|
|
|
|
repo = "DirectFB";
|
|
|
|
rev = "DIRECTFB_${lib.replaceStrings ["."] ["_"] version}";
|
|
|
|
sha256 = "0bs3yzb7hy3mgydrj8ycg7pllrd2b6j0gxj596inyr7ihssr3i0y";
|
2006-11-14 22:23:33 +00:00
|
|
|
};
|
2010-11-29 18:00:26 +00:00
|
|
|
|
2019-08-19 02:16:48 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook perl pkgconfig flux ];
|
2010-11-29 18:00:26 +00:00
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
buildInputs = [ zlib libjpeg freetype giflib libpng ]
|
2019-08-19 02:16:48 +00:00
|
|
|
++ lib.optional enableSDL SDL
|
|
|
|
++ lib.optionals enableX11 (with xorg; [
|
2018-12-31 03:40:47 +00:00
|
|
|
xorgproto libX11 libXext
|
|
|
|
libXrender
|
2013-02-02 09:47:21 +00:00
|
|
|
]);
|
2010-11-29 18:00:26 +00:00
|
|
|
|
2019-08-19 02:16:48 +00:00
|
|
|
NIX_LDFLAGS = "-lgcc_s";
|
2010-11-29 18:00:26 +00:00
|
|
|
|
2009-10-24 15:39:54 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-sdl"
|
|
|
|
"--enable-zlib"
|
|
|
|
"--with-gfxdrivers=all"
|
2009-11-05 21:10:03 +00:00
|
|
|
"--enable-devmem"
|
|
|
|
"--enable-fbdev"
|
|
|
|
"--enable-mmx"
|
|
|
|
"--enable-sse"
|
|
|
|
"--with-software"
|
|
|
|
"--with-smooth-scaling"
|
2019-08-19 02:16:48 +00:00
|
|
|
] ++ lib.optional enableX11 "--enable-x11";
|
2014-02-01 13:03:44 +00:00
|
|
|
|
2019-08-19 02:16:48 +00:00
|
|
|
meta = with lib; {
|
2014-02-01 13:03:44 +00:00
|
|
|
description = "Graphics and input library designed with embedded systems in mind";
|
|
|
|
longDescription = ''
|
|
|
|
DirectFB is a thin library that provides hardware graphics acceleration,
|
|
|
|
input device handling and abstraction, integrated windowing system with
|
|
|
|
support for translucent windows and multiple display layers, not only on
|
|
|
|
top of the Linux Framebuffer Device. It is a complete hardware
|
|
|
|
abstraction layer with software fallbacks for every graphics operation
|
|
|
|
that is not supported by the underlying hardware. DirectFB adds graphical
|
|
|
|
power to embedded systems and sets a new standard for graphics under
|
|
|
|
Linux.
|
|
|
|
'';
|
2019-08-19 02:16:48 +00:00
|
|
|
homepage = "https://github.com/deniskropp/DirectFB";
|
2014-02-01 13:03:44 +00:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
2006-11-14 22:23:33 +00:00
|
|
|
}
|