summaryrefslogtreecommitdiff
path: root/flatpak/org.gnome.Shotwell.json
blob: d3ce3f8f422a3dd22d4c30aaa53e58e708886e85 (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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
{
    "app-id" : "org.gnome.Shotwell",
    "runtime" : "org.gnome.Platform",
    "runtime-version" : "master",
    "sdk" : "org.gnome.Sdk",
    "command" : "shotwell",
    "tags" : [
        "nightly"
    ],
    "desktop-file-name-prefix" : "(Nightly) ",
    "finish-args" : [
        "--filesystem=/media",
        "--filesystem=/run/media",
        "--filesystem=xdg-download",
        "--filesystem=xdg-pictures",
        "--filesystem=xdg-run/gvfsd",
        "--share=ipc",
        "--share=network",
        "--device=all",
        "--device=dri",
        "--socket=wayland",
        "--socket=fallback-x11",
        "--talk-name=org.freedesktop.FileManager1",
        "--talk-name=org.gnome.SettingsDaemon",
        "--talk-name=org.gtk.vfs.*",
        "--talk-name=org.freedesktop.secrets"
    ],
    "cleanup" : [
        "/include",
        "/lib/pkconfig",
        "/share/pkgconfig",
        "/share/gtk-doc",
        "/share/man",
        "/share/vala",
        "/lib/girepository",
        "*.la",
        "*.a"
    ],
    "modules" : [
        {
            "name" : "opencv",
            "buildsystem" : "cmake-ninja",
            "builddir" : true,
            "cleanup" : [
                "/share/OpenCV/*.cmake",
                "/share/OpenCV/*.supp"
            ],
            "build-options" : {
                "cxxflags" : "-Wp,-U_GLIBCXX_ASSERTIONS",
                "cflags" : "-Wp,-U_GLIBCXX_ASSERTIONS"
            },
            "config-opts" : [
                "-DCMAKE_BUILD_TYPE=Release",
                "-DOPENCV_GENERATE_PKGCONFIG=ON",
                "-DBUILD_TESTS=OFF",
                "-DBUILD_EXAMPLES=OFF",
                "-DBUILD_PERF_TESTS=OFF",
                "-DWITH_FFMPEG=OFF",
                "-DWITH_GTK=OFF",
                "-DWITH_GSTREAMER=OFF",
                "-DWITH_JASPER=OFF",
                "-DWITH_OPENEXR=OFF",
                "-DWITH_GDAL=OFF",
                "-DWITH_GDCM=OFF",
                "-DBUILD_opencv_apps=OFF",
                "-DCMAKE_INSTALL_LIBDIR=lib",
                "-DBUILD_LIST=imgproc,imgcodecs,objdetect,dnn"
            ],
            "sources" : [
                {
                    "type" : "git",
                    "commit" : "6dbc5e032fa851d1a25fb4a895d735ed3441975b",
                    "url" : "https://github.com/opencv/opencv"
                }
            ]
        },
        {
            "name": "libportal",
            "buildsystem": "meson",
            "builddir": true,
            "config-opts": [
                 "--libdir=/app/lib",
                "--buildtype=debugoptimized",
                "-Dbackend-gtk3=enabled",
                "-Dbackend-gtk4=disabled",
                "-Dbackend-qt5=disabled",
                "-Ddocs=false",
                "-Dtests=false"
            ],
            "sources" : [
                {
                    "type": "git",
                    "url": "https://github.com/flatpak/libportal.git",
                    "branch": "main"
                }
            ]
        },
        {
            "name" : "libusb",
            "sources" : [
                {
                    "type" : "archive",
                    "url" : "https://github.com/libusb/libusb/releases/download/v1.0.26/libusb-1.0.26.tar.bz2",
                    "sha256" : "12ce7a61fc9854d1d2a1ffe095f7b5fac19ddba095c259e6067a46500381b5a5"
                }
            ],
            "config-opts" : [
                "--disable-udev"
            ]
        },
        {
            "name" : "libghoto2",
            "cleanup" : [
                "/bin",
                "/lib/udev",
                "/share/doc"
            ],
            "sources" : [
                {
                    "type" : "archive",
                    "url" : "https://sourceforge.net/projects/gphoto/files/libgphoto/2.5.30/libgphoto2-2.5.30.tar.bz2/download",
                    "sha256" : "ee61a1dac6ad5cf711d114e06b90a6d431961a6e7ec59f4b757a7cd77b1c0fb4",
                    "dest-filename" : "libgphoto2-2.5.30.tar.bz2"
                }
            ],
            "config-opts" : [
                "--disable-introspection",
                "--disable-docs"
            ]
        },
        {
            "name": "libraw",
            "config-opts": [ "--disable-examples", "--disable-static" ],
            "cleanup": [ "/share/doc" ],
            "sources": [
                {
                    "type": "archive",
                    "url" : "https://www.libraw.org/data/LibRaw-0.21.1.tar.gz",
                    "sha256" : "630a6bcf5e65d1b1b40cdb8608bdb922316759bfb981c65091fec8682d1543cd"
                },
                {
                    "type": "patch",
                    "path": "patches/libraw-pkgconfig.patch"
                },
                {
                    "type": "shell",
                    "commands": [
                        "autoreconf -fiv"
                    ]
                }
            ]
        },
        {
            "name" : "exiv2",
            "cleanup" : [
                "/bin"
            ],
            "buildsystem" : "cmake-ninja",
            "config-opts" : [
                "-DCMAKE_INSTALL_LIBDIR=lib",
                "-DCMAKE_BUILD_TYPE=Release",
                "-DEXIV2_BUILD_EXIV2_COMMAND=OFF",
                "-DEXIV2_BUILD_SAMPLES=OFF",
                "-DEXIV2_BUILD_UNIT_TESTS=OFF",
                "-DEXIV2_ENABLE_BMFF=ON"
            ],
            "sources" : [
                {
                    "type" : "git",
                    "url" : "https://github.com/Exiv2/exiv2/",
                    "branch" : "0.27-maintenance"
                }
            ]
        },
        {
            "name" : "gexiv2",
            "buildsystem" : "meson",
            "cleanup" : [
                "/lib/girepository-1.0",
                "/share/gir-1.0"
            ],
            "config-opts" : [
                "-Dpython3=false"
            ],
            "build-options" : {
                "env" : {
                    "PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR" : "/app/share/gir-1.0",
                    "PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_TYPELIBDIR" : "/app/lib/girepository-1.0"
                }
            },
            "sources" : [
                {
                    "type" : "git",
                    "url" : "https://gitlab.gnome.org/GNOME/gexiv2.git/"
                }
            ]
        },
        {
            "name": "de256",
            "buildsystem": "cmake-ninja",
            "config-opts" : [
                "-DCMAKE_INSTALL_LIBDIR=lib",
                "-DCMAKE_BUILD_TYPE=Release",
                "-DENABLE_DECODER=Off",
                "-DENABLE_ENCODER=OfF"
            ],
            "sources" : [
                {
                    "type": "git",
                    "url" : "https://github.com/strukturag/libde265.git",
                    "tag" : "v1.0.11",
                    "commit" : "e255f0571a46935955deef15808e52b18043788c"
                }
            ]
        },
        {
            "name" : "libheif",
            "buildsystem" : "cmake-ninja",
            "config-opts": [
                "-DCMAKE_INSTALL_LIBDIR=lib",
                "-DCMAKE_BUILD_TYPE=Release",
                "-DLIBDE265=On",
                "-DWITH_DAV1D=Off",
                "-DWITH_AOM_ENCODER=Off",
                "-DWITH_AOM_DECODER=Off",
                "-DWITH_SvtEnc=Off",
                "-DWITH_RAV1E=Off",
                "-DWITH_ENABLE_PLUGIN_LOADING=On",
                "-DWITH_EXAMPLES=Off"
            ],
            "sources" : [
                {
                    "type" : "git",
                    "url" : "https://github.com/strukturag/libheif",
                    "tag" : "v1.15.2",
                    "commit" : "516ef5522680c7cb62768a34ecb24f3b165ec8b4"
                }
            ],
            "post-install" :  [
                "mkdir -p /app/lib/gdk-pixbuf-2.0/2.10.0/loaders",
                "mv $(pkg-config --define-variable=prefix=/app --variable=gdk_pixbuf_moduledir gdk-pixbuf-2.0)/* /app/lib/gdk-pixbuf-2.0/2.10.0/loaders",
                "gdk-pixbuf-query-loaders /app/lib/gdk-pixbuf-2.0/2.10.0/loaders/*  > /app/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
            ]
        },
        {
            "name" : "shotwell",
            "buildsystem" : "meson",
            "config-opts" : [
                "-Dfatal_warnings=true",
                "-Dudev=false",
                "-Dinstall_apport_hook=false",
                "-Dface_detection_helper_bus=private",
                "-Dface_detection=true",
                "-Dextra_pixbuf_loaders_path=/app/lib/gdk-pixbuf-2.0/2.10.0"
            ],
            "sources" : [
                {
                    "type" : "git",
                    "url" : "https://gitlab.gnome.org/GNOME/shotwell.git/",
                    "branch" : "master"
                }
            ]
        }
    ]
}