Skip to content

Commit

Permalink
pfstools: build pfsalign (fix NixOS#60843) (NixOS#61050)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8ca3cad)
  • Loading branch information
juliendehos authored and dtzWill committed Mar 3, 2020
1 parent da9729a commit 780357b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/tools/graphics/pfstools/default.nix
@@ -1,6 +1,6 @@
{ stdenv, fetchurl, cmake, pkgconfig, darwin
, openexr, zlib, imagemagick, libGLU, libGL, freeglut, fftwFloat
, fftw, gsl, libexif, perl, opencv, qt5, netpbm
, fftw, gsl, libexif, perl, opencv, qt5
}:

stdenv.mkDerivation rec {
Expand All @@ -22,14 +22,14 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [
openexr zlib imagemagick fftwFloat
fftw gsl libexif perl opencv qt5.qtbase netpbm
fftw gsl libexif perl opencv qt5.qtbase
] ++ (if stdenv.isDarwin then (with darwin.apple_sdk.frameworks; [
OpenGL GLUT
]) else [
libGLU libGL freeglut
]);

patches = [ ./threads.patch ./pfstools.patch ];
patches = [ ./threads.patch ./pfstools.patch ./pfsalign.patch ];

meta = with stdenv.lib; {
homepage = http://pfstools.sourceforge.net/;
Expand Down
12 changes: 12 additions & 0 deletions pkgs/tools/graphics/pfstools/pfsalign.patch
@@ -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}")

0 comments on commit 780357b

Please sign in to comment.