pcl: fix problem finding OpenGL on darwin

This commit is contained in:
Anthony Cowley 2016-10-06 02:01:46 -04:00
parent 78b5ce35ce
commit 1a10a377ec
2 changed files with 5 additions and 3 deletions

View file

@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, cmake, qhull, flann, boost, vtk, eigen, pkgconfig, qt4
, libusb1, libpcap, libXt, libpng, Cocoa, AGL, cf-private
, libusb1, libpcap, libXt, libpng, Cocoa, AGL, cf-private, OpenGL
}:
stdenv.mkDerivation rec {
@ -18,7 +18,9 @@ stdenv.mkDerivation rec {
libpng vtk qt4 libXt ]
++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa AGL cf-private ];
cmakeFlags = stdenv.lib.optionals stdenv.isDarwin [
"-DCMAKE_OSX_SYSROOT=" "-DCMAKE_OSX_DEPLOYMENT_TARGET=" ];
"-DCMAKE_OSX_SYSROOT=" "-DCMAKE_OSX_DEPLOYMENT_TARGET="
"-DOPENGL_INCLUDE_DIR=${OpenGL}/Library/Frameworks"
];
preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
NIX_CFLAGS_COMPILE=$(echo "$NIX_CFLAGS_COMPILE" | sed "s,[[:space:]]*-F$NIX_STORE/[[:alnum:]]*-CF-osx-[[:digit:].]*/Library/Frameworks,,g")

View file

@ -8616,7 +8616,7 @@ in
pcl = callPackage ../development/libraries/pcl {
vtk = vtkWithQt4;
inherit (darwin) cf-private;
inherit (darwin.apple_sdk.frameworks) Cocoa AGL;
inherit (darwin.apple_sdk.frameworks) Cocoa AGL OpenGL;
};
pcre = callPackage ../development/libraries/pcre { };