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