mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
pcl: fix problem finding OpenGL on darwin
This commit is contained in:
parent
78b5ce35ce
commit
1a10a377ec
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchFromGitHub, cmake, qhull, flann, boost, vtk, eigen, pkgconfig, qt4
|
{ 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 {
|
stdenv.mkDerivation rec {
|
||||||
@ -18,7 +18,9 @@ stdenv.mkDerivation rec {
|
|||||||
libpng vtk qt4 libXt ]
|
libpng vtk qt4 libXt ]
|
||||||
++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa AGL cf-private ];
|
++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa AGL cf-private ];
|
||||||
cmakeFlags = stdenv.lib.optionals stdenv.isDarwin [
|
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 ''
|
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")
|
NIX_CFLAGS_COMPILE=$(echo "$NIX_CFLAGS_COMPILE" | sed "s,[[:space:]]*-F$NIX_STORE/[[:alnum:]]*-CF-osx-[[:digit:].]*/Library/Frameworks,,g")
|
||||||
|
@ -8616,7 +8616,7 @@ in
|
|||||||
pcl = callPackage ../development/libraries/pcl {
|
pcl = callPackage ../development/libraries/pcl {
|
||||||
vtk = vtkWithQt4;
|
vtk = vtkWithQt4;
|
||||||
inherit (darwin) cf-private;
|
inherit (darwin) cf-private;
|
||||||
inherit (darwin.apple_sdk.frameworks) Cocoa AGL;
|
inherit (darwin.apple_sdk.frameworks) Cocoa AGL OpenGL;
|
||||||
};
|
};
|
||||||
|
|
||||||
pcre = callPackage ../development/libraries/pcre { };
|
pcre = callPackage ../development/libraries/pcre { };
|
||||||
|
Loading…
Reference in New Issue
Block a user