
patch -Np1 -i ../imageMagick.patch &&
patch -Np1 -i ../poppler.patch




Fix a build issue with GCC-7.1:

sed -i 's| abs(| std::fabs(|g' src/ui/tools/flood-tool.cpp




mkdir build &&
cd    build &&

cmake -DCMAKE_INSTALL_PREFIX=/usr \
      -DCMAKE_BUILD_TYPE=Release  \
      ..                          &&
make-static