mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
parent
7828823386
commit
8ca3cad711
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, cmake, pkgconfig
|
||||
{ stdenv, fetchurl, cmake, pkgconfig, darwin
|
||||
, openexr, zlib, imagemagick, libGLU_combined, freeglut, fftwFloat
|
||||
, fftw, gsl, libexif, perl, opencv, qt5
|
||||
}:
|
||||
@ -20,11 +20,15 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ cmake pkgconfig ];
|
||||
buildInputs = [
|
||||
openexr zlib imagemagick libGLU_combined freeglut fftwFloat
|
||||
openexr zlib imagemagick fftwFloat
|
||||
fftw gsl libexif perl opencv qt5.qtbase
|
||||
];
|
||||
] ++ (if stdenv.isDarwin then (with darwin.apple_sdk.frameworks; [
|
||||
OpenGL GLUT
|
||||
]) else [
|
||||
libGLU_combined freeglut
|
||||
]);
|
||||
|
||||
patches = [ ./threads.patch ./pfstools.patch ];
|
||||
patches = [ ./threads.patch ./pfstools.patch ./pfsalign.patch ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://pfstools.sourceforge.net/;
|
||||
|
12
pkgs/tools/graphics/pfstools/pfsalign.patch
Normal file
12
pkgs/tools/graphics/pfstools/pfsalign.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- a/src/camera/CMakeLists.txt 2017-11-13 18:38:27.000000000 +0100
|
||||
+++ b/src/camera/CMakeLists.txt 2018-12-30 14:55:30.235571520 +0100
|
||||
@@ -9,7 +9,7 @@ target_link_libraries(${TRG} pfs)
|
||||
install (TARGETS ${TRG} DESTINATION bin)
|
||||
install (FILES ${TRG}.1 DESTINATION ${MAN_DIR})
|
||||
|
||||
-if( OpenCV_FOUND AND EXIF_FOUND )
|
||||
+if( OpenCV_FOUND AND MYPKG_FOUND )
|
||||
|
||||
set(TRG pfsalign)
|
||||
add_executable(${TRG} ${TRG}.cpp "${GETOPT_OBJECT}")
|
||||
|
Loading…
Reference in New Issue
Block a user