# Distributed under the terms of the GNU General Public License v2 WORK="${WORK}"/ImageLounge require cmake [ api=2 ] require github export_exlib_phases src_configure SUMMARY="Qt-based image viewer" HOMEPAGE="https://nomacs.org/" LICENCES="GPL-3+" SLOT="0" MYOPTIONS=" jpeg opencv ( raw tiff ) [[ *requires = opencv ]] zip " DEPENDENCIES=" build+run: x11-libs/qtbase:5[gui] x11-libs/qtsvg:5 graphics/exiv2 opencv? ( media-libs/opencv[qt5] ) raw? ( media-libs/libraw ) tiff? ( x11-libs/qtimageformats[tiff] media-libs/tiff ) zip? ( app-arch/quazip ) " nomacs_src_configure() { local cmakeparams=() cmakeparams+=( $(cmake_enable opencv OPENCV) $(cmake_enable raw RAW) $(cmake_enable tiff TIFF) $(cmake_enable zip QUAZIP) -DUSE_SYSTEM_QUAZIP=ON -DENABLE_TRANSLATIONS=ON ) ecmake "${cmakeparams[@]}" }