Update directfb

svn path=/nixpkgs/trunk/; revision=18158
This commit is contained in:
Michael Raskin 2009-11-05 21:10:03 +00:00
parent 3be216a703
commit 661f082d47
3 changed files with 33 additions and 6 deletions

View File

@ -1,17 +1,29 @@
{stdenv, fetchurl, perl, zlib, libjpeg, freetype,
SDL, libX11, xproto, xextproto, libXext, libpng}:
SDL, libX11, xproto, xextproto, libXext, libpng,
renderproto, libXrender, giflib}:
let s = import ./src-for-default.nix; in
stdenv.mkDerivation {
name = "directfb-1.1.0";
inherit (s) name;
src = fetchurl {
url = http://www.directfb.org/downloads/Core/DirectFB-1.1.0.tar.gz;
sha256 = "0fpjlgsyblvcjvqk8m3va2xsyx512mf26kwfsxarj1vql9b75s0f";
url = s.url;
sha256 = s.hash;
};
buildInputs = [perl zlib libjpeg freetype SDL
xproto libX11 libXext xextproto libpng];
xproto libX11 libXext xextproto libpng
renderproto libXrender giflib
];
NIX_LDFLAGS="-lgcc_s";
configureFlags = [
"--enable-sdl"
"--enable-zlib"
"--with-gfxdrivers=all"
"--enable-devmem"
"--enable-fbdev"
"--enable-x11"
"--enable-mmx"
"--enable-sse"
"--enable-sysfs"
"--with-software"
"--with-smooth-scaling"
];
}

View File

@ -0,0 +1,9 @@
rec {
version="1.4.2";
name="directfb-1.4.2";
hash="1invmmccscv44v2pa83050cv5n028q0j12cgwwpc7ac83vi4f605";
url="http://directfb.org/downloads/Core/DirectFB-1.4/DirectFB-${version}.tar.gz";
advertisedUrl="http://directfb.org/downloads/Core/DirectFB-1.4/DirectFB-1.4.2.tar.gz";
}

View File

@ -0,0 +1,6 @@
{
baseName = "directfb";
downloadPage = "http://directfb.org/index.php?path=Main%2FDownloads";
sourceRegexp = ''DirectFB-.*[.]tar[.].*'';
choiceCommand = ''tail -1'';
}