2007-03-29 19:56:33 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, x11, xlibs, zlib, libpng, libjpeg, perl
|
|
|
|
, qt, kdelibs, openssl, bzip2, fontconfig
|
2007-03-26 17:49:38 +02:00
|
|
|
}:
|
|
|
|
|
2007-09-21 15:07:25 +02:00
|
|
|
let version = "3.5.7"; in
|
|
|
|
|
2007-03-26 17:49:38 +02:00
|
|
|
stdenv.mkDerivation {
|
2007-09-21 15:07:25 +02:00
|
|
|
name = "kdebase-3.5.7";
|
2007-03-26 17:49:38 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2007-09-21 15:07:25 +02:00
|
|
|
url = "mirror://kde/stable/${version}/src/kdebase-${version}.tar.bz2";
|
|
|
|
md5 = "b421e01b3ee712549ee967f58ed24de0";
|
2007-03-26 17:49:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2007-03-29 19:56:33 +02:00
|
|
|
pkgconfig x11 zlib libpng libjpeg perl
|
|
|
|
qt kdelibs openssl bzip2 fontconfig
|
|
|
|
xlibs.libXrandr xlibs.libXinerama xlibs.libXau xlibs.libXdmcp
|
|
|
|
xlibs.libXcursor xlibs.libfontenc xlibs.imake xlibs.bdftopcf
|
|
|
|
xlibs.libxkbfile xlibs.xf86miscproto xlibs.libXxf86misc
|
|
|
|
xlibs.scrnsaverproto xlibs.libXScrnSaver
|
2007-03-26 17:49:38 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = "
|
|
|
|
--without-arts
|
|
|
|
--with-ssl-dir=${openssl}
|
|
|
|
--with-extra-includes=${libjpeg}/include
|
|
|
|
";
|
|
|
|
|
2008-03-26 10:53:04 +01:00
|
|
|
# Prevent configure from looking for pkg-config and freetype-config
|
|
|
|
# in the wrong location (it looks in /usr/bin etc. *before* looking
|
|
|
|
# in $PATH).
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace configure \
|
|
|
|
--replace /usr/bin /no-such-path \
|
|
|
|
--replace /usr/local/bin /no-such-path \
|
|
|
|
--replace /opt/local/bin /no-such-path
|
|
|
|
'';
|
|
|
|
|
2007-03-26 17:49:38 +02:00
|
|
|
# Quick hack to work around a faulty dependency in
|
|
|
|
# konqueror/keditbookmarks/Makefile.am (${includedir} should be
|
|
|
|
# ${kdelibs} or so).
|
2008-03-26 10:53:04 +01:00
|
|
|
preBuild = ''
|
|
|
|
ensureDir $out/include
|
|
|
|
ln -s ${kdelibs}/include/kbookmarknotifier.h $out/include/
|
|
|
|
'';
|
|
|
|
|
2007-03-26 17:49:38 +02:00
|
|
|
postInstall = "rm $out/include/kbookmarknotifier.h";
|
|
|
|
}
|