2008-06-19 23:20:49 +01:00
|
|
|
{ stdenv, fetchurl, xlibs, zlib, perl, qt, openssl, pcre
|
2006-01-31 15:22:10 +00:00
|
|
|
, pkgconfig, libjpeg, libpng, libtiff, libxml2, libxslt, libtool, expat
|
2008-06-19 23:20:49 +01:00
|
|
|
, freetype, bzip2, cups, attr, acl
|
2006-01-31 15:22:10 +00:00
|
|
|
}:
|
2005-11-12 14:52:16 +00:00
|
|
|
|
2008-08-30 15:06:28 +01:00
|
|
|
let version = "3.5.10"; in
|
2007-09-21 14:07:25 +01:00
|
|
|
|
2005-11-12 14:52:16 +00:00
|
|
|
stdenv.mkDerivation {
|
2007-09-21 14:07:25 +01:00
|
|
|
name = "kdelibs-${version}";
|
2007-03-26 14:39:50 +01:00
|
|
|
|
2005-11-12 14:52:16 +00:00
|
|
|
src = fetchurl {
|
2007-09-21 14:07:25 +01:00
|
|
|
url = "mirror://kde/stable/${version}/src/kdelibs-${version}.tar.bz2";
|
2008-08-30 15:06:28 +01:00
|
|
|
sha256 = "0wjw51r96h6rngbsrzndw890xggzvrakydsbaldlrvbh3jq9qzk1";
|
2005-11-12 14:52:16 +00:00
|
|
|
};
|
|
|
|
|
2009-04-01 12:33:00 +01:00
|
|
|
patches = [
|
|
|
|
# We're not supposed to use linux/inotify.h, use sys/inotify.h instead.
|
|
|
|
# Adapted from Gentoo.
|
|
|
|
./inotify.patch
|
2010-07-29 13:26:59 +01:00
|
|
|
|
|
|
|
# Fixes compilation issues with openssl-1.0.0
|
|
|
|
./kdelibs-3.5.10-openssl_1.0.0.patch
|
2009-04-01 12:33:00 +01:00
|
|
|
];
|
|
|
|
|
2008-06-19 23:20:49 +01:00
|
|
|
passthru = {inherit openssl libjpeg qt; inherit (xlibs) libX11;};
|
2007-03-26 14:39:50 +01:00
|
|
|
|
2005-11-12 14:52:16 +00:00
|
|
|
buildInputs = [
|
2008-06-19 23:20:49 +01: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 14:52:16 +00:00
|
|
|
];
|
2006-08-11 23:26:55 +01:00
|
|
|
|
2008-06-19 23:20:49 +01:00
|
|
|
propagatedBuildInputs = [attr acl];
|
|
|
|
|
2008-03-26 09:53:04 +00: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 10:36:55 +01:00
|
|
|
configureFlags = ''
|
2006-08-11 23:26:55 +01:00
|
|
|
--without-arts
|
|
|
|
--with-ssl-dir=${openssl}
|
|
|
|
--with-extra-includes=${libjpeg}/include
|
2008-06-19 23:20:49 +01:00
|
|
|
--x-includes=${xlibs.libX11}/include
|
|
|
|
--x-libraries=${xlibs.libX11}/lib
|
2008-05-20 10:36:55 +01:00
|
|
|
'';
|
2011-10-02 22:15:36 +01:00
|
|
|
|
|
|
|
meta.platforms = stdenv.lib.platforms.linux;
|
2005-11-12 14:52:16 +00:00
|
|
|
}
|