2008-06-20 00:20:49 +02:00
|
|
|
{ stdenv, fetchurl, xlibs, zlib, perl, qt, openssl, pcre
|
2006-01-31 16:22:10 +01:00
|
|
|
, pkgconfig, libjpeg, libpng, libtiff, libxml2, libxslt, libtool, expat
|
2008-06-20 00:20:49 +02:00
|
|
|
, freetype, bzip2, cups, attr, acl
|
2006-01-31 16:22:10 +01:00
|
|
|
}:
|
2005-11-12 15:52:16 +01:00
|
|
|
|
2008-05-20 11:36:55 +02:00
|
|
|
let version = "3.5.9"; in
|
2007-09-21 15:07:25 +02:00
|
|
|
|
2005-11-12 15:52:16 +01:00
|
|
|
stdenv.mkDerivation {
|
2007-09-21 15:07:25 +02:00
|
|
|
name = "kdelibs-${version}";
|
2007-03-26 15:39:50 +02:00
|
|
|
|
2005-11-12 15:52:16 +01:00
|
|
|
src = fetchurl {
|
2007-09-21 15:07:25 +02:00
|
|
|
url = "mirror://kde/stable/${version}/src/kdelibs-${version}.tar.bz2";
|
2008-05-20 11:36:55 +02:00
|
|
|
md5 = "55e5f00874933d1a7ba7c95e369a205e";
|
2005-11-12 15:52:16 +01:00
|
|
|
};
|
|
|
|
|
2008-06-20 00:20:49 +02:00
|
|
|
passthru = {inherit openssl libjpeg qt; inherit (xlibs) libX11;};
|
2007-03-26 15:39:50 +02:00
|
|
|
|
2005-11-12 15:52:16 +01:00
|
|
|
buildInputs = [
|
2008-06-20 00:20:49 +02:00
|
|
|
zlib perl qt openssl pcre pkgconfig libjpeg libpng libtiff libxml2
|
|
|
|
libxslt expat libtool freetype bzip2 cups
|
|
|
|
xlibs.libX11 xlibs.libXt xlibs.libXext xlibs.libXrender xlibs.libXft
|
2005-11-12 15:52:16 +01:00
|
|
|
];
|
2006-08-12 00:26:55 +02:00
|
|
|
|
2008-06-20 00:20:49 +02:00
|
|
|
propagatedBuildInputs = [attr acl];
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2008-05-20 11:36:55 +02:00
|
|
|
configureFlags = ''
|
2006-08-12 00:26:55 +02:00
|
|
|
--without-arts
|
|
|
|
--with-ssl-dir=${openssl}
|
|
|
|
--with-extra-includes=${libjpeg}/include
|
2008-06-20 00:20:49 +02:00
|
|
|
--x-includes=${xlibs.libX11}/include
|
|
|
|
--x-libraries=${xlibs.libX11}/lib
|
2008-05-20 11:36:55 +02:00
|
|
|
'';
|
2005-11-12 15:52:16 +01:00
|
|
|
}
|