2010-06-01 18:36:07 +02:00
|
|
|
{ stdenv, fetchurl, zlib, libjpeg }:
|
2008-06-10 18:09:53 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-01-15 15:58:50 +01:00
|
|
|
name = "splashutils-1.5.4.3";
|
2008-06-10 18:09:53 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-01-17 14:08:04 +01:00
|
|
|
url = http://dev.gentoo.org/~spock/projects/splashutils/current/splashutils-1.5.4.3.tar.bz2;
|
2009-01-15 15:58:50 +01:00
|
|
|
sha256 = "0vn0ifqp9a3bmprzx2yr82hgq8m2y5xv8qcifs2plz6p3lidagpg";
|
2008-06-10 18:09:53 +02:00
|
|
|
};
|
|
|
|
|
2010-06-01 18:36:07 +02:00
|
|
|
buildInputs = [ zlib libjpeg ];
|
2008-06-10 18:09:53 +02:00
|
|
|
|
2010-06-01 18:36:07 +02:00
|
|
|
configureFlags = "--without-ttf --without-png --without-gpm --with-themedir=/etc/splash KLCC=gcc";
|
2008-06-10 18:09:53 +02:00
|
|
|
|
2009-04-23 01:13:21 +02:00
|
|
|
dontDisableStatic = true;
|
|
|
|
|
2008-06-10 18:09:53 +02:00
|
|
|
preConfigure = ''
|
2008-06-14 17:09:22 +02:00
|
|
|
configureFlags="$configureFlags --with-essential-prefix=$out"
|
2008-06-10 18:09:53 +02:00
|
|
|
substituteInPlace src/common.h \
|
|
|
|
--replace 'FBSPLASH_DIR"/sys"' '"/sys"' \
|
|
|
|
--replace 'FBSPLASH_DIR"/proc"' '"/proc"'
|
2010-06-01 18:36:07 +02:00
|
|
|
substituteInPlace src/Makefile.in \
|
|
|
|
--replace '-all-static' "" \
|
|
|
|
--replace '-static' ""
|
2008-06-10 18:09:53 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
CPP = "gcc -E";
|
|
|
|
CXXCPP = "g++ -E";
|
2010-06-01 18:36:07 +02:00
|
|
|
NIX_CFLAGS_COMPILE = "-fPIC";
|
2008-06-10 18:09:53 +02:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
helperName = "sbin/fbcondecor_helper";
|
|
|
|
controlName = "sbin/fbcondecor_ctl";
|
|
|
|
helperProcFile = "/proc/sys/kernel/fbcondecor";
|
|
|
|
};
|
|
|
|
}
|