2006-11-26 02:41:53 +03:00
|
|
|
{stdenv, fetchurl, klibc, zlib, libjpeg}:
|
2006-11-25 03:28:15 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-04-16 18:20:29 +04:00
|
|
|
name = "splashutils-1.3";
|
2006-11-25 03:28:15 +03:00
|
|
|
src = fetchurl {
|
2007-04-16 18:20:29 +04:00
|
|
|
url = http://dev.gentoo.org/~spock/projects/splashutils/archive/splashutils-1.3.tar.bz2;
|
|
|
|
md5 = "c7c92b98e34b860511aa57bd29d62f76";
|
2006-11-25 03:28:15 +03:00
|
|
|
};
|
2007-04-16 18:20:29 +04:00
|
|
|
patches = [
|
|
|
|
./purity.patch
|
|
|
|
./no-fbsplash.patch
|
|
|
|
# Borrowed from http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/media-gfx/splashutils/files/splashutils-1.3-fdset.patch?rev=1.1.
|
|
|
|
./fdset.patch
|
|
|
|
];
|
2006-11-26 02:41:53 +03:00
|
|
|
|
|
|
|
buildInputs = [klibc zlib libjpeg];
|
|
|
|
|
|
|
|
inherit klibc;
|
2006-11-25 03:28:15 +03:00
|
|
|
|
|
|
|
dontAddPrefix = 1;
|
2006-11-25 03:40:09 +03:00
|
|
|
configureScript = "sh ./configure";
|
2007-04-16 18:20:29 +04:00
|
|
|
configureFlags = "--without-ttf --without-png --with-fifo=/var/run/splash_fifo";
|
2006-11-25 03:28:15 +03:00
|
|
|
|
2007-03-16 19:16:59 +03:00
|
|
|
# QUIET = false doesn't work due to the use of /dev/stdout (which
|
|
|
|
# doesn't work when the build user doesn't own stdout).
|
|
|
|
#makeFlags = "QUIET=false;
|
2006-11-26 02:41:53 +03:00
|
|
|
|
2008-06-27 18:01:10 +04:00
|
|
|
installPhase = ''
|
|
|
|
ensureDir $out/bin
|
|
|
|
cp objs/splash_util objs/splash_util.static $out/bin
|
|
|
|
ensureDir $out/sbin
|
|
|
|
cp objs/splash_helper $out/sbin
|
|
|
|
'';
|
2008-06-10 20:09:53 +04:00
|
|
|
|
|
|
|
passthru = {
|
2008-06-27 18:01:10 +04:00
|
|
|
helperName = "sbin/splash_helper";
|
2008-06-10 20:09:53 +04:00
|
|
|
controlName = "bin/splash_util";
|
|
|
|
helperProcFile = "/proc/sys/kernel/fbsplash";
|
|
|
|
};
|
2006-11-25 03:28:15 +03:00
|
|
|
}
|