blob: 5c3f4641429d143e0b5e44043430b2df866ea56a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
# Distributed under the terms of the GNU General Public License v2
# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
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"
)
|