qtpfsgui: move to qmake4Hook

This commit is contained in:
Nikolay Amiantov 2016-04-17 02:30:33 +03:00
parent 6dc6a549c8
commit 0ca9ad08b4

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl, qt4, exiv2, openexr, fftwSinglePrec, libtiff, ilmbase }:
{stdenv, fetchurl, qt4, qmake4Hook, exiv2, openexr, fftwSinglePrec, libtiff, ilmbase }:
stdenv.mkDerivation rec {
name = "qtpfsgui-1.9.3";
@ -9,15 +9,19 @@ stdenv.mkDerivation rec {
};
buildInputs = [ qt4 exiv2 openexr fftwSinglePrec libtiff ];
nativeBuildInputs = [ qmake4Hook ];
configurePhase = ''
preConfigure = ''
export CPATH="${ilmbase}/include/OpenEXR:$CPATH"
qmake PREFIX=$out EXIV2PATH=${exiv2}/include/exiv2 \
OPENEXRDIR=${openexr}/include/OpenEXR \
FFTW3DIR=${fftwSinglePrec}/include \
LIBTIFFDIR=${libtiff}/include
'';
qmakeFlags = [
"EXIV2PATH=${exiv2}/include/exiv2"
"OPENEXRDIR=${openexr}/include/OpenEXR"
"FFTW3DIR=${fftwSinglePrec}/include"
"LIBTIFFDIR=${libtiff}/include"
];
meta = {
homepage = http://qtpfsgui.sourceforge.net/;
description = "Qtpfsqui, a graphical application for high dynamic range (HDR) imaging";