2006-11-25 23:41:53 +00:00
|
|
|
{stdenv, fetchurl, klibc, zlib, libjpeg}:
|
2006-11-25 00:28:15 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-04-16 15:20:29 +01:00
|
|
|
name = "splashutils-1.3";
|
2006-11-25 00:28:15 +00:00
|
|
|
src = fetchurl {
|
2007-04-16 15:20:29 +01:00
|
|
|
url = http://dev.gentoo.org/~spock/projects/splashutils/archive/splashutils-1.3.tar.bz2;
|
|
|
|
md5 = "c7c92b98e34b860511aa57bd29d62f76";
|
2006-11-25 00:28:15 +00:00
|
|
|
};
|
2007-04-16 15:20:29 +01: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-25 23:41:53 +00:00
|
|
|
|
|
|
|
buildInputs = [klibc zlib libjpeg];
|
|
|
|
|
|
|
|
inherit klibc;
|
2006-11-25 00:28:15 +00:00
|
|
|
|
|
|
|
dontAddPrefix = 1;
|
2006-11-25 00:40:09 +00:00
|
|
|
configureScript = "sh ./configure";
|
2007-04-16 15:20:29 +01:00
|
|
|
configureFlags = "--without-ttf --without-png --with-fifo=/var/run/splash_fifo";
|
2006-11-25 00:28:15 +00:00
|
|
|
|
2007-03-16 16:16:59 +00: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-25 23:41:53 +00:00
|
|
|
|
2008-06-27 15:01:10 +01: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 17:09:53 +01:00
|
|
|
|
|
|
|
passthru = {
|
2008-06-27 15:01:10 +01:00
|
|
|
helperName = "sbin/splash_helper";
|
2008-06-10 17:09:53 +01:00
|
|
|
controlName = "bin/splash_util";
|
|
|
|
helperProcFile = "/proc/sys/kernel/fbsplash";
|
|
|
|
};
|
2006-11-25 00:28:15 +00:00
|
|
|
}
|