blob: f8798984cd5a00f7f883674127f12fcf5a59d926 (
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
|
# Distributed under the terms of the GNU General Public License v2
# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
require cmake [ api=2 ]
require github [ user=nomacs ]
export_exlib_phases pkg_setup
SUMMARY="Qt-based image viewer"
HOMEPAGE="https://nomacs.org/"
LICENCES="GPL-3+"
SLOT="0"
MYOPTIONS="
zip [[ description = [ Build support for zip archives ] ]]
"
if ! ever at_least 3.10; then
MYOPTIONS+="
opencv [[ description = [ Build support for media-libs/opencv ] ]]
(
raw [[ description = [ Add support for raw image formats ] ]]
tiff
)
[[ *requires = opencv ]]
"
else
MYOPTIONS+="
raw [[ description = [ Add support for raw image formats ] ]]
tiff
"
fi
DEPENDENCIES="
build+run:
graphics/exiv2
x11-libs/qtbase:5[gui]
x11-libs/qtsvg:5
raw? ( media-libs/libraw )
tiff? (
x11-libs/qtimageformats[tiff]
media-libs/tiff
)
zip? ( app-arch/quazip )
"
if ! ever at_least 3.10; then
DEPENDENCIES+="
opencv? ( media-libs/opencv[qt5] )
"
else
DEPENDENCIES+="
media-libs/opencv[qt5]
"
fi
CMAKE_SOURCE="${WORK}"/ImageLounge
CMAKE_SRC_CONFIGURE_PARAMS+=(
-DUSE_SYSTEM_QUAZIP=ON
-DENABLE_TRANSLATIONS=ON
)
if ever at_least 3.10; then
CMAKE_SRC_CONFIGURE_PARAMS+=(
-DENABLE_OPENCV=TRUE
)
fi
CMAKE_SRC_CONFIGURE_OPTION_ENABLES=(
"raw RAW"
"tiff TIFF"
"zip QUAZIP"
)
if ! ever at_least 3.10; then
CMAKE_SRC_CONFIGURE_OPTION_ENABLES+=(
"opencv OPENCV"
)
fi
#for some reason github in scm mode + cmake exlibs causing problems, this workaround is necessary
nomacs_pkg_setup() {
edo mkdir "${WORKBASE}/build"
edo chmod o+rwx "${WORKBASE}/build"
}
|