mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
* Qt 4.7.3.
svn path=/nixpkgs/branches/kde-4.7/; revision=27619
This commit is contained in:
parent
7737d33233
commit
f62335822c
@ -5,10 +5,11 @@
|
||||
, zlib, libjpeg, libpng, libmng, which, mesa, openssl, dbus, cups, pkgconfig, libtiff, glib
|
||||
, mysql, postgresql, sqlite
|
||||
, perl, coreutils, libXi
|
||||
, buildDemos ? false, buildExamples ? false, useDocs ? true}:
|
||||
, buildDemos ? false, buildExamples ? false, useDocs ? false
|
||||
}:
|
||||
|
||||
let
|
||||
v = "4.7.2";
|
||||
v = "4.7.3";
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -16,12 +17,29 @@ stdenv.mkDerivation rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "ftp://ftp.qt.nokia.com/qt/source/qt-everywhere-opensource-src-${v}.tar.gz";
|
||||
sha256 = "0dlknhzcslymqbmlkpmmgv29c5mmbw6s7rznriqd5g4h9d93ny6l";
|
||||
sha256 = "0zlk0lcrkhi8wdb5j2lqz3nclk07blbiial7lzs03708kpb6yayh";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
preConfigure =
|
||||
''
|
||||
export LD_LIBRARY_PATH="`pwd`/lib:$LD_LIBRARY_PATH"
|
||||
configureFlags+="
|
||||
'';
|
||||
|
||||
configureFlags =
|
||||
''
|
||||
-v -no-separate-debug-info -release -fast -confirm-license -opensource
|
||||
-system-zlib -system-libpng -system-libjpeg -qt-gif -system-libmng
|
||||
-opengl -xrender -xrandr -xinerama -xcursor
|
||||
-plugin-sql-mysql -system-sqlite
|
||||
-qdbus -cups -glib -xfixes -dbus-linked -openssl-linked
|
||||
-fontconfig -I${freetype}/include/freetype2
|
||||
-exceptions -xmlpatterns
|
||||
-multimedia -audio-backend -phonon -phonon-backend
|
||||
-webkit -javascript-jit
|
||||
-make libs -make tools -make translations
|
||||
${if buildDemos == true then "-make demos" else "-nomake demos"}
|
||||
${if buildExamples == true then "-make examples" else "-nomake examples"}
|
||||
${if useDocs then "-make docs" else "-nomake docs"}
|
||||
-docdir $out/share/doc/${name}
|
||||
-plugindir $out/lib/qt4/plugins
|
||||
-importdir $out/lib/qt4/imports
|
||||
@ -29,7 +47,6 @@ stdenv.mkDerivation rec {
|
||||
-demosdir $out/share/doc/${name}/demos
|
||||
-datadir $out/share/${name}
|
||||
-translationdir $out/share/${name}/translations
|
||||
"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@ -75,21 +92,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
prefixKey = "-prefix ";
|
||||
|
||||
configureFlags = ''
|
||||
-v -no-separate-debug-info -release -fast -confirm-license -opensource
|
||||
-system-zlib -system-libpng -system-libjpeg -qt-gif -system-libmng
|
||||
-opengl -xrender -xrandr -xinerama -xcursor
|
||||
-plugin-sql-mysql -system-sqlite
|
||||
-qdbus -cups -glib -xfixes -dbus-linked -openssl-linked
|
||||
-fontconfig -I${freetype}/include/freetype2
|
||||
-exceptions -xmlpatterns
|
||||
-multimedia -audio-backend -phonon -phonon-backend
|
||||
-webkit -javascript-jit
|
||||
-make libs -make tools -make translations
|
||||
${if buildDemos == true then "-make demos" else "-nomake demos"}
|
||||
${if buildExamples == true then "-make examples" else "-nomake examples"}
|
||||
${if useDocs then "-make docs" else "-nomake docs"}'';
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace configure --replace /bin/pwd pwd
|
||||
substituteInPlace src/corelib/global/global.pri --replace /bin/ls ${coreutils}/bin/ls
|
||||
@ -98,7 +100,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
postInstall = ''
|
||||
${if useDocs then "rm -rfv $out/share/doc/${name}/{html,src}" else ""}
|
||||
ln -sv phonon $out/include/Phonon'';
|
||||
ln -sv phonon $out/include/Phonon
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
@ -108,6 +111,5 @@ stdenv.mkDerivation rec {
|
||||
license = "GPL/LGPL";
|
||||
maintainers = with maintainers; [ urkud sander ];
|
||||
platforms = platforms.linux;
|
||||
priority = 10;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user