mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
qt55: apply mkspecs-libgl.patch from qt54
This commit is contained in:
parent
583845d00b
commit
3dec100104
@ -0,0 +1,17 @@
|
||||
Ensure Qt knows where libGL is.
|
||||
|
||||
Author: Bjørn Forsman <bjorn.forsman@gmail.com>
|
||||
diff -uNr qt-everywhere-opensource-src-5.3.2.orig/qtbase/mkspecs/common/linux.conf qt-everywhere-opensource-src-5.3.2/qtbase/mkspecs/common/linux.conf
|
||||
--- qt-everywhere-opensource-src-5.3.2.orig/qtbase/mkspecs/common/linux.conf 2014-09-11 12:48:07.000000000 +0200
|
||||
+++ qt-everywhere-opensource-src-5.3.2/qtbase/mkspecs/common/linux.conf 2015-08-23 13:03:30.617473019 +0200
|
||||
@@ -12,8 +12,8 @@
|
||||
QMAKE_LIBDIR =
|
||||
QMAKE_INCDIR_X11 =
|
||||
QMAKE_LIBDIR_X11 =
|
||||
-QMAKE_INCDIR_OPENGL =
|
||||
-QMAKE_LIBDIR_OPENGL =
|
||||
+QMAKE_INCDIR_OPENGL = @mesa@/include
|
||||
+QMAKE_LIBDIR_OPENGL = @mesa@/lib
|
||||
QMAKE_INCDIR_OPENGL_ES2 = $$QMAKE_INCDIR_OPENGL
|
||||
QMAKE_LIBDIR_OPENGL_ES2 = $$QMAKE_LIBDIR_OPENGL
|
||||
QMAKE_INCDIR_EGL =
|
@ -83,12 +83,17 @@ stdenv.mkDerivation {
|
||||
};
|
||||
xdg-config-dirs = ./0008-xdg-config-dirs.patch;
|
||||
decrypt-ssl-traffic = ./0009-decrypt-ssl-traffic.patch;
|
||||
mkspecs-libgl = substituteAll {
|
||||
src = ./0014-mkspecs-libgl.patch;
|
||||
inherit mesa;
|
||||
};
|
||||
in [
|
||||
dlopen-resolv dlopen-gl tzdir dlopen-libXcursor dlopen-openssl
|
||||
dlopen-dbus xdg-config-dirs
|
||||
]
|
||||
++ optional gtkStyle dlopen-gtkstyle
|
||||
++ optional decryptSslTraffic decrypt-ssl-traffic;
|
||||
++ optional decryptSslTraffic decrypt-ssl-traffic
|
||||
++ optional mesaSupported mkspecs-libgl;
|
||||
|
||||
preConfigure = ''
|
||||
export LD_LIBRARY_PATH="$PWD/qtbase/lib:$PWD/qtbase/plugins/platforms:$PWD/qttools/lib:$LD_LIBRARY_PATH"
|
||||
|
Loading…
Reference in New Issue
Block a user