mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
* Optionally enable thread support in Qt (libqt-mt).
svn path=/nixpkgs/trunk/; revision=2072
This commit is contained in:
parent
043ac4d1b0
commit
8882b48fb0
@ -23,6 +23,12 @@ preConfigure() {
|
||||
configureFlags="-v -prefix $out -system-zlib -system-libpng -system-libjpeg"
|
||||
dontAddPrefix=1
|
||||
|
||||
if test -n "$threadSupport"; then
|
||||
configureFlags="-thread";
|
||||
else
|
||||
configureFlags="-no-thread";
|
||||
fi
|
||||
|
||||
if test -n "$xftSupport"; then
|
||||
configureFlags="-xft -L$libXft/lib -I$libXft/include \
|
||||
-L$freetype/lib -I$freetype/include \
|
||||
|
@ -1,5 +1,6 @@
|
||||
{ xftSupport ? true
|
||||
, xrenderSupport ? true
|
||||
, threadSupport ? true
|
||||
, stdenv, fetchurl, x11, libXft ? null, libXrender ? null
|
||||
, zlib, libjpeg, libpng, which
|
||||
}:
|
||||
@ -18,6 +19,6 @@ stdenv.mkDerivation {
|
||||
|
||||
buildInputs = [x11 libXft libXrender zlib libjpeg libpng which];
|
||||
|
||||
inherit xftSupport libXft xrenderSupport libXrender;
|
||||
inherit threadSupport xftSupport libXft xrenderSupport libXrender;
|
||||
inherit (libXft) freetype fontconfig;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user