summaryrefslogtreecommitdiff
path: root/flatpak/org.gnome.Shotwell.json
blob: 5ad2e6c60dcb4e9381570bb3b343ed7d5377d209 (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
266
267
268
269
270
271
272
273
274
275
{
    "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.*",
        "--filesystem=xdg-run/gvfs",
        "--filesystem=xdg-run/gvfsd",
        "--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" : "e60a7c0d490b5bd94524680deb74177d7bfb9ae4",
                    "url" : "https://github.com/opencv/opencv"
                }
            ]
        },
        {
            "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.31/libgphoto2-2.5.31.tar.xz",
                    "sha256" : "8fc7bf40f979459509b87dd4ff1aae9b6c1c2b4724d37db576081eec15406ace"
                }
            ],
            "config-opts" : [
                "--disable-introspection",
                "--disable-docs"
            ]
        },
        {
            "name" : "inih",
            "buildsystem" : "meson",
            "sources" : [
                {
                    "type": "git",
                    "url" : "https://github.com/benhoyt/inih",
                    "commit" : "9cecf0643da0846e77f64d10a126d9f48b9e05e8"
                }
            ]
        },
        {
            "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": "archive",
                    "url": "https://github.com/Exiv2/exiv2/archive/refs/tags/v0.28.1.tar.gz",
                    "sha256" : "3078651f995cb6313b1041f07f4dd1bf0e9e4d394d6e2adc6e92ad0b621291fa"
                }
            ]
        },
        {
            "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": "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": "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": "archive",
                    "url": "https://github.com/flatpak/libportal/releases/download/0.7.1/libportal-0.7.1.tar.xz",
                    "sha256" : "297b90b263fad22190a26b8c7e8ea938fe6b18fb936265e588927179920d3805"
                }
            ]
        },
        {
            "name": "de256",
            "buildsystem": "cmake-ninja",
            "config-opts" : [
                "-DCMAKE_INSTALL_LIBDIR=lib",
                "-DCMAKE_BUILD_TYPE=Release",
                "-DENABLE_DECODER=Off",
                "-DENABLE_ENCODER=OfF"
            ],
            "sources" : [
                {
                    "type": "archive",
                    "url" : "https://github.com/strukturag/libde265/releases/download/v1.0.12/libde265-1.0.12.tar.gz",
                    "sha256" : "62185ea2182e68cf68bba20cc6eb4c287407b509cf0a827d7ddb75614db77b5c"
                }
            ]
        },
        {
            "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" : "archive",
                    "url" : "https://github.com/strukturag/libheif/releases/download/v1.17.3/libheif-1.17.3.tar.gz",
                    "sha256" : "8d5b6292e7931324f81f871f250ecbb9f874aa3c66b4f6f35ceb0bf3163b53ea"
                }
            ],
            "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=false",
                "-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" : "shotwell-0.32"
                }
            ]
        }
    ]
}