# Distributed under the terms of the GNU General Public License v2 # Copyright 2018 Gluzskiy Alexandr SCM_EXTERNAL_REFS=" 3rd-party/exiv2:nomexiv2 3rd-party/expat:nomexpat 3rd-party/opencv:opencv 3rd-party/quazip:nomquazip 3rd-party/LibRaw:nomLibRaw 3rd-party/imageformats:nomimageformats ImageLounge/plugins:nomacsplugins " SCM_nomimageformats_EXTERNAL_REFS=" libqpsd:libqpsd libqpcx:libqpcx qt-heif-image-plugin:qtheifimageplugin libheif:nomlibheif libde265:libde265 " SCM_SECONDARY_REPOSITORIES=" nomexiv2 nomexpat opencv nomquazip nomLibRaw nomimageformats nomacsplugins libqpsd libqpcx qtheifimageplugin libde265 nomlibheif " SCM_nomexiv2_REPOSITORY="https://github.com/nomacs/exiv2.git" SCM_nomexpat_REPOSITORY="https://github.com/nomacs/expat.git" SCM_opencv_REPOSITORY="https://github.com/opencv/opencv.git" SCM_nomquazip_REPOSITORY="https://github.com/nomacs/quazip.git" SCM_nomLibRaw_REPOSITORY="https://github.com/nomacs/LibRaw.git" SCM_nomimageformats_REPOSITORY="https://github.com/nomacs/imageformats.git" SCM_nomacsplugins_REPOSITORY="https://github.com/nomacs/nomacs-plugins.git" SCM_libqpsd_REPOSITORY="https://github.com/nomacs/libqpsd.git" SCM_libqpcx_REPOSITORY="https://github.com/nomacs/libqpcx.git" SCM_qtheifimageplugin_REPOSITORY="https://github.com/nomacs/qt-heif-image-plugin.git" SCM_libde265_REPOSITORY="https://github.com/nomacs/libde265.git" SCM_nomlibheif_REPOSITORY="https://github.com/nomacs/libheif.git" require github [ user=nomacs ] require cmake [ api=2 ] SUMMARY="Qt-based image viewer" HOMEPAGE="https://nomacs.org/" LICENCES="GPL-3" SLOT="0" MYOPTIONS=" heif [[ description = [ Add support for heic/heif image format ] ]] raw [[ description = [ Add support for raw image formats ] ]] tiff zip [[ description = [ Build support for zip archives ] ]] " DEPENDENCIES=" build+run: graphics/exiv2 media-libs/opencv[qt5] x11-libs/qtbase:5[gui] x11-libs/qtsvg:5 heif? ( media-libs/libheif ) raw? ( media-libs/libraw ) tiff? ( x11-libs/qtimageformats[tiff] media-libs/tiff ) zip? ( app-arch/quazip ) " if ever is_scm; then CMAKE_SOURCE="${WORK}"/ImageLounge else CMAKE_SOURCE="${WORKBASE}/${PNV}"/ImageLounge fi CMAKE_SRC_CONFIGURE_PARAMS+=( -DUSE_SYSTEM_QUAZIP=ON -DENABLE_TRANSLATIONS=ON ) CMAKE_SRC_CONFIGURE_OPTION_ENABLES=( "raw RAW" "tiff TIFF" "zip QUAZIP" "heif HEIF" )