vtk: Fix build with mesa 19.2.3
This commit is contained in:
parent
1dc80934f0
commit
87e4e71e0f
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchurl, cmake, libGLU_combined, libX11, xorgproto, libXt, libtiff
|
{ stdenv, fetchurl, cmake, libGLU, libGL, libX11, xorgproto, libXt, libtiff
|
||||||
, qtLib ? null
|
, qtLib ? null
|
||||||
# Darwin support
|
# Darwin support
|
||||||
, Cocoa, CoreServices, DiskArbitration, IOKit, CFNetwork, Security, GLUT, OpenGL
|
, Cocoa, CoreServices, DiskArbitration, IOKit, CFNetwork, Security, GLUT, OpenGL
|
||||||
|
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
buildInputs = [ libtiff ]
|
buildInputs = [ libtiff ]
|
||||||
++ optional (qtLib != null) qtLib
|
++ optional (qtLib != null) qtLib
|
||||||
++ optionals stdenv.isLinux [ libGLU_combined libX11 xorgproto libXt ]
|
++ optionals stdenv.isLinux [ libGLU libGL libX11 xorgproto libXt ]
|
||||||
++ optionals stdenv.isDarwin [ xpc Cocoa CoreServices DiskArbitration IOKit
|
++ optionals stdenv.isDarwin [ xpc Cocoa CoreServices DiskArbitration IOKit
|
||||||
CFNetwork Security ApplicationServices CoreText
|
CFNetwork Security ApplicationServices CoreText
|
||||||
IOSurface ImageIO OpenGL GLUT ];
|
IOSurface ImageIO OpenGL GLUT ];
|
||||||
|
@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
|
||||||
# built and requiring one of the shared objects.
|
# built and requiring one of the shared objects.
|
||||||
# At least, we use -fPIC for other packages to be able to use this in shared
|
# At least, we use -fPIC for other packages to be able to use this in shared
|
||||||
# objects.
|
# objects.
|
||||||
cmakeFlags = [ "-DCMAKE_C_FLAGS=-fPIC" "-DCMAKE_CXX_FLAGS=-fPIC" "-DVTK_USE_SYSTEM_TIFF=1" ]
|
cmakeFlags = [ "-DCMAKE_C_FLAGS=-fPIC" "-DCMAKE_CXX_FLAGS=-fPIC" "-DVTK_USE_SYSTEM_TIFF=1" "-DOPENGL_INCLUDE_DIR=${libGL}/include" ]
|
||||||
++ optional (qtLib != null) [ "-DVTK_USE_QT:BOOL=ON" ]
|
++ optional (qtLib != null) [ "-DVTK_USE_QT:BOOL=ON" ]
|
||||||
++ optional stdenv.isDarwin "-DOPENGL_INCLUDE_DIR=${OpenGL}/Library/Frameworks";
|
++ optional stdenv.isDarwin "-DOPENGL_INCLUDE_DIR=${OpenGL}/Library/Frameworks";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue