* Qt updated to 4.4.3 in preparation of upgrading KDE to 4.2.

svn path=/nixpkgs/trunk/; revision=13974
This commit is contained in:
Eelco Dolstra
2009-02-03 16:32:56 +00:00
parent aecd8c4415
commit 6ed4aa7ecb
4 changed files with 35 additions and 15 deletions

View File

@@ -1,13 +1,15 @@
args: with args;
stdenv.mkDerivation {
name = "qt-4.4.0";
name = "qt-4.4.3";
src = fetchurl {
url = ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-4.4.0.tar.bz2;
sha256 = "871dc71c6c905212f2fea7e6598362114a3b6097c220b0b251f8d159ee7d706e";
url = ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-4.4.3.tar.bz2;
sha256 = "1nfdf1aj6vb7qyacsnjyjxrnaf44hz7vzykf6zra2znd87pglz51";
};
setupHook = ./setup-hook.sh;
setupHook = ./setup-hook.sh;
propagatedBuildInputs = [
libXft
libXrender
@@ -37,14 +39,25 @@ stdenv.mkDerivation {
glib
libtiff
];
prefixKey = "-prefix ";
configureFlags = "
configureFlags = ''
-v -no-separate-debug-info -release
-system-zlib -system-libpng -system-libjpeg -fast
-qt-gif -confirm-license
-opengl -xrender -xrandr -xinerama -xcursor -qt-sql-mysql
-qdbus -cups -glib -xfixes
-fontconfig -I${freetype}/include/freetype2";
-fontconfig -I${freetype}/include/freetype2
'';
patchPhase = "sed -e 's@/bin/pwd@pwd@' -i configure; sed -e 's@/usr@/FOO@' -i config.tests/*/*.test -i mkspecs/*/*.conf";
patchPhase = ''
substituteInPlace configure --replace /bin/pwd pwd
sed -e 's@/usr@/FOO@' -i config.tests/*/*.test -i mkspecs/*/*.conf
'';
meta = {
homepage = http://www.qtsoftware.com/downloads/opensource/appdev/linux-x11-cpp;
description = "A cross-platform application framework for C++";
};
}

View File

@@ -1,6 +1,7 @@
export QTDIR=@out@
if [ -n $qt4BadIncludes ]; then
for d in @out@/include/*; do
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$d";
done;
for d in @out@/include/*; do
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$d";
done;
fi