Merge pull request #66861 from lopsided98/directfb-src-github
directfb: fix build on ARM
This commit is contained in:
commit
4497bee1ac
21
pkgs/development/compilers/flux/default.nix
Normal file
21
pkgs/development/compilers/flux/default.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pkgconfig }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "flux";
|
||||
version = "2013-09-20";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "deniskropp";
|
||||
repo = pname;
|
||||
rev = "e45758aa9384b9740ff021ea952399fd113eb0e9";
|
||||
sha256 = "11f3ypg0sdq5kj69zgz6kih1yrzgm48r16spyvzwvlswng147410";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "An interface description language used by DirectFB";
|
||||
homepage = "https://github.com/deniskropp/flux";
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
@ -1,31 +1,29 @@
|
||||
{ stdenv, fetchurl, pkgconfig, perl, zlib, libjpeg, freetype, libpng, giflib
|
||||
{ stdenv, lib, fetchFromGitHub, autoreconfHook, perl, pkgconfig, flux, zlib
|
||||
, libjpeg, freetype, libpng, giflib
|
||||
, enableX11 ? true, xorg
|
||||
, enableSDL ? true, SDL }:
|
||||
|
||||
let s =
|
||||
rec {
|
||||
version = "1.7.7";
|
||||
name="directfb-${version}";
|
||||
sha256 = "18r7h0pwbyyk8z3pgdv77nmma8lvr1si9gl1ghxgxf1ivhwcd1dp";
|
||||
url="http://directfb.org/downloads/Core/DirectFB-1.7/DirectFB-${version}.tar.gz";
|
||||
}
|
||||
; in
|
||||
stdenv.mkDerivation {
|
||||
inherit (s) name;
|
||||
src = fetchurl {
|
||||
inherit (s) url sha256;
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "directfb";
|
||||
version = "1.7.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "deniskropp";
|
||||
repo = "DirectFB";
|
||||
rev = "DIRECTFB_${lib.replaceStrings ["."] ["_"] version}";
|
||||
sha256 = "0bs3yzb7hy3mgydrj8ycg7pllrd2b6j0gxj596inyr7ihssr3i0y";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ perl pkgconfig ];
|
||||
nativeBuildInputs = [ autoreconfHook perl pkgconfig flux ];
|
||||
|
||||
buildInputs = [ zlib libjpeg freetype giflib libpng ]
|
||||
++ stdenv.lib.optional enableSDL SDL
|
||||
++ stdenv.lib.optionals enableX11 (with xorg; [
|
||||
++ lib.optional enableSDL SDL
|
||||
++ lib.optionals enableX11 (with xorg; [
|
||||
xorgproto libX11 libXext
|
||||
libXrender
|
||||
]);
|
||||
|
||||
NIX_LDFLAGS="-lgcc_s";
|
||||
NIX_LDFLAGS = "-lgcc_s";
|
||||
|
||||
configureFlags = [
|
||||
"--enable-sdl"
|
||||
@ -35,14 +33,11 @@ stdenv.mkDerivation {
|
||||
"--enable-fbdev"
|
||||
"--enable-mmx"
|
||||
"--enable-sse"
|
||||
#"--enable-sysfs" # not recognized
|
||||
"--with-software"
|
||||
"--with-smooth-scaling"
|
||||
] ++ stdenv.lib.optionals enableX11 [
|
||||
"--enable-x11"
|
||||
];
|
||||
] ++ lib.optional enableX11 "--enable-x11";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Graphics and input library designed with embedded systems in mind";
|
||||
longDescription = ''
|
||||
DirectFB is a thin library that provides hardware graphics acceleration,
|
||||
@ -54,7 +49,7 @@ stdenv.mkDerivation {
|
||||
power to embedded systems and sets a new standard for graphics under
|
||||
Linux.
|
||||
'';
|
||||
homepage = http://directfb.org/;
|
||||
homepage = "https://github.com/deniskropp/DirectFB";
|
||||
license = licenses.lgpl21;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.bjornfor ];
|
||||
|
@ -1,3 +0,0 @@
|
||||
url 'http://directfb.org/index.php?path=Main%2FDownloads'
|
||||
version_link 'DirectFB-[0-9]'
|
||||
minimize_overwrite
|
@ -3054,6 +3054,8 @@ in
|
||||
stdenv = gccStdenv;
|
||||
};
|
||||
|
||||
flux = callPackage ../development/compilers/flux { };
|
||||
|
||||
fierce = callPackage ../tools/security/fierce { };
|
||||
|
||||
figlet = callPackage ../tools/misc/figlet { };
|
||||
|
Loading…
Reference in New Issue
Block a user