-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathorg.cloudcompare.CloudCompare.yaml
449 lines (423 loc) · 14.6 KB
/
org.cloudcompare.CloudCompare.yaml
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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
app-id: org.cloudcompare.CloudCompare
runtime: org.kde.Platform
runtime-version: 5.15-23.08
sdk: org.kde.Sdk
base: com.riverbankcomputing.PyQt.BaseApp
base-version: 5.15-23.08
sdk-extensions:
- org.freedesktop.Sdk.Extension.llvm17
command: CloudCompare
finish-args:
- --socket=wayland
- --socket=fallback-x11
- --share=ipc
- --device=dri
- --share=network
- --env=PYTHONPATH=/app/lib/cloudcompare
- --filesystem=home
- --filesystem=/tmp
- --filesystem=xdg-run/gvfs # GVfs
- --filesystem=/media # automount via udisks
cleanup:
- /bin/applygeo
- /bin/cgal_*
- /bin/CreateDOMDocument
- /bin/DOM*
- /bin/EnumVal
- /bin/flann*
- /bin/gdal*
- /bin/geotifcp
- /bin/gnmanalyse
- /bin/gnmmanage
- /bin/listgeo
- /bin/makegeo
- /bin/MemParse
- /bin/nearblack
- /bin/ogr*
- /bin/PParse
- /bin/projsync
- /bin/PSVIWriter
- /bin/Redirect
- /bin/SAX*
- /bin/SCMPrint
- /bin/SEnumVal
- /bin/StdInParse
- /bin/testepsg
- /bin/vsyasm
- /bin/XInclude
- /bin/yasm
- /bin/3DFin
- /bin/f2py*
- /bin/jakteristics
- /bin/opencv_version
- /bin/pybind11-config
- /bin/setup_vars_opencv4.sh
- /bin/vba_extract.py
- /lib/cmake
- /lib/gdalplugins
- /lib/pkgconfig
- '*.a'
- '*.la'
- /share/cmake
- /share/doc
- /share/eigen3
- /share/flann
- /share/gdal
- /share/info
- /share/man
- /share/pcl-*
- /share/pkgconfig
- /share/proj
- /include
- /doc
cleanup-commands:
- /app/cleanup-BaseApp.sh
build-options:
append-path: /usr/lib/sdk/llvm17/bin
prepend-ld-library-path: /usr/lib/sdk/llvm17/lib
modules:
- name: MPFR
sources:
- type: archive
url: https://www.mpfr.org/mpfr-4.2.1/mpfr-4.2.1.tar.bz2
sha256: b9df93635b20e4089c29623b19420c4ac848a1b29df1cfd59f26cab0d2666aa0
x-checker-data:
type: anitya
project-id: 2019
stable-only: true
url-template: https://www.mpfr.org/mpfr-$version/mpfr-$version.tar.bz2
buildsystem: autotools
builddir: true
config-opts:
- --disable-shared
- --with-pic
- name: boost
sources:
- type: archive
url: https://boostorg.jfrog.io/artifactory/main/release/1.86.0/source/boost_1_86_0.tar.gz
sha256: 2575e74ffc3ef1cd0babac2c1ee8bdb5782a0ee672b1912da40e5b4b591ca01f
x-checker-data:
type: anitya
project-id: 6845
stable-only: true
url-template: https://boostorg.jfrog.io/artifactory/main/release/$version/source/boost_${major}_${minor}_${patch}.tar.gz
buildsystem: simple
build-commands:
- ./bootstrap.sh --prefix=/app --with-libraries=thread,system,date_time,filesystem,iostreams,atomic,chrono,graph
- ./b2 cxxflags=-fPIC cflags=-fPIC -a link=static install -j ${FLATPAK_BUILDER_N_JOBS}
- name: CGAL
sources:
- type: archive
url: https://github.com/CGAL/cgal/releases/download/v6.0.1/CGAL-6.0.1-library.tar.xz
sha256: c752737f91d1af71fa96038f0e37945ce82a5f1fffb6200172cfcdd77755a356
x-checker-data:
type: anitya
project-id: 273
stable-only: true
url-template: https://github.com/CGAL/cgal/releases/download/v$version/CGAL-$version-library.tar.xz
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- name: PROJ
sources:
- type: archive
url: https://github.com/OSGeo/PROJ/releases/download/9.5.1/proj-9.5.1.tar.gz
sha256: a8395f9696338ffd46b0feb603edbb730fad6746fba77753c77f7f997345e3d3
x-checker-data:
type: anitya
project-id: 9463
stable-only: true
url-template: https://github.com/OSGeo/PROJ/releases/download/$version/proj-$version.tar.gz
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- -DBUILD_SHARED_LIBS=OFF
- -DCMAKE_POSITION_INDEPENDENT_CODE=ON
- -DBUILD_TESTING=OFF
- -DBUILD_CCT=OFF
- -DBUILD_CS2CS=OFF
- -DBUILD_GEOD=OFF
- -DBUILD_GIE=OFF
- -DBUILD_PROJ=OFF
- -DBUILD_PROJINFO=OFF
- name: XercesC
sources:
- type: archive
url: http://apache.mirror.iweb.ca/xerces/c/3/sources/xerces-c-3.2.5.tar.gz
sha256: 545cfcce6c4e755207bd1f27e319241e50e37c0c27250f11cda116018f1ef0f5
x-checker-data:
type: anitya
project-id: 5182
url-template: http://apache.mirror.iweb.ca/xerces/c/3/sources/xerces-c-$version.tar.gz
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- -DBUILD_SHARED_LIBS=ON
- -DCMAKE_POSITION_INDEPENDENT_CODE=ON
- name: GeoTIFF
sources:
- type: archive
url: https://github.com/OSGeo/libgeotiff/releases/download/1.7.3/libgeotiff-1.7.3.tar.gz
sha256: ba23a3a35980ed3de916e125c739251f8e3266be07540200125a307d7cf5a704
x-checker-data:
type: anitya
project-id: 21361
stable-only: true
url-template: https://github.com/OSGeo/libgeotiff/releases/download/$version/libgeotiff-$version.tar.gz
builddir: true
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- -DBUILD_SHARED_LIBS=OFF
- -DWITH_UTILITIES=OFF
- name: GDAL
sources:
- type: archive
url: https://github.com/OSGeo/gdal/releases/download/v3.10.0/gdal-3.10.0.tar.gz
sha256: 946ef444489bedbc1b04bd4c115d67ae8d3f3e4a5798d5a2f1cb2a11014105b2
x-checker-data:
type: anitya
project-id: 881
stable-only: true
url-template: https://github.com/OSGeo/gdal/releases/download/v$version/gdal-$version.tar.gz
builddir: true
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- -DBUILD_SHARED_LIBS=ON
- -DCMAKE_POSITION_INDEPENDENT_CODE=ON
- -DBUILD_PYTHON_BINDINGS=OFF
- -DBUILD_APPS=OFF
- -DGDAL_BUILD_OPTIONAL_DRIVERS=OFF
- -DOGR_BUILD_OPTIONAL_DRIVERS=OFF
- name: TBB
sources:
- type: archive
url: https://github.com/oneapi-src/oneTBB/archive/refs/tags/v2022.0.0.tar.gz
sha256: e8e89c9c345415b17b30a2db3095ba9d47647611662073f7fbf54ad48b7f3c2a
x-checker-data:
type: anitya
project-id: 8217
stable-only: true
url-template: https://github.com/oneapi-src/oneTBB/archive/refs/tags/v$version.tar.gz
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- -DBUILD_SHARED_LIBS=ON
- -DTBB_TEST=OFF
- name: Eigen
sources:
- type: archive
url: https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.bz2
sha256: b4c198460eba6f28d34894e3a5710998818515104d6e74e5cc331ce31e46e626
x-checker-data:
type: anitya
project-id: 666
stable-only: true
url-template: https://gitlab.com/libeigen/eigen/-/archive/$version/eigen-$version.tar.bz2
builddir: true
buildsystem: cmake-ninja
- name: FLANN
sources:
- type: archive
url: https://github.com/flann-lib/flann/archive/refs/tags/1.9.2.tar.gz
sha256: e26829bb0017f317d9cc45ab83ddcb8b16d75ada1ae07157006c1e7d601c8824
x-checker-data:
type: anitya
project-id: 21432
stable-only: true
url-template: https://github.com/flann-lib/flann/archive/refs/tags/$version.tar.gz
builddir: true
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- -DBUILD_SHARED_LIBS=OFF # builds libflann_cpp.so and libflann_cpp_s.a anyway
- -DBUILD_C_BINDINGS=OFF
- -DBUILD_EXAMPLES=OFF
- -DBUILD_TESTS=OFF
- -DBUILD_DOC=OFF
- name: Dlib
sources:
- type: archive
url: http://dlib.net/files/dlib-19.24.tar.bz2
sha256: 28fdd1490c4d0bb73bd65dad64782dd55c23ea00647f5654d2227b7d30b784c4
x-checker-data:
type: anitya
project-id: 18600
stable-only: true
url-template: http://dlib.net/files/dlib-${major}.${minor}.tar.bz2
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- -DBUILD_SHARED_LIBS=OFF
- -DDLIB_NO_GUI_SUPPORT=ON
- name: PCL
sources:
- type: archive
url: https://github.com/PointCloudLibrary/pcl/releases/download/pcl-1.14.1/source.tar.gz
sha256: cc3dc26a9ea176cb588fb1f182324399dbaf11e5ba1bea95c7d39005b7a5d352
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- -DBUILD_SHARED_LIBS=OFF
- -DPCL_SHARED_LIBS=OFF
- -DCMAKE_POSITION_INDEPENDENT_CODE=ON
- -DWITH_LIBUSB=OFF
- -DWITH_OPENGL=OFF
- -DWITH_QT=OFF
- -DWITH_VTK=OFF
- -DWITH_PCAP=OFF
- -DPCL_ONLY_CORE_POINT_TYPES=ON
- -DBUILD_2d=ON
- -DBUILD_CUDA=OFF
- -DBUILD_GPU=OFF
- -DBUILD_apps=OFF
- -DBUILD_common=ON
- -DBUILD_examples=OFF
- -DBUILD_features=ON
- -DBUILD_filters=ON
- -DBUILD_geometry=OFF
- -DBUILD_global_tests=OFF
- -DBUILD_io=ON
- -DBUILD_kdtree=ON
- -DBUILD_keypoints=ON
- -DBUILD_ml=OFF
- -DBUILD_octree=ON
- -DBUILD_outofcore=OFF
- -DBUILD_people=OFF
- -DBUILD_recognition=OFF
- -DBUILD_registration=OFF
- -DBUILD_sample_consensus=ON
- -DBUILD_search=ON
- -DBUILD_segmentation=OFF
- -DBUILD_simulation=OFF
- -DBUILD_stereo=OFF
- -DBUILD_surface=ON
- -DBUILD_tools=OFF
- -DBUILD_tracking=OFF
- -DBUILD_visualization=OFF
- name: LASzip
sources:
- type: archive
url: https://github.com/LASzip/LASzip/releases/download/3.4.4/laszip-src-3.4.4.tar.gz
sha256: 41f826848ff106f471b134224f58075ac8e36a62b6ba0ad75be8a8c191bdba4b
x-checker-data:
type: anitya
project-id: 241499
stable-only: true
url-template: https://github.com/LASzip/LASzip/releases/download/$version/laszip-src-$version.tar.gz
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- name: OpenCV
sources:
- type: archive
url: https://github.com/opencv/opencv/archive/4.9.0.zip
sha256: 9b5b64d50bf4a3ddeab430a9b13c5f9e023c9e67639ab50a74d0c298b5a61b74
x-checker-data:
type: anitya
project-id: 6615
stable-only: true
url-template: https://github.com/LASzip/LASzip/releases/download/$version.tar.gz
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- -DBUILD_LIST=ml,core,imgproc,imgcodecs,highgui
- -DWITH_OPENCL=ON
- -DWITH_QT=ON
- -DWITH_TBB=ON
- -DWITH_PROTOBUF=OFF
- -DBUILD_opencv_python2=OFF
- -DBUILD_opencv_python3=OFF
# GLU from 'shared-modules' with updated URL.
# https://raw.githubusercontent.com/flathub/shared-modules/d47140b52c6ef4a9ae61fe0fda3b31c3e36f2291/glu/glu-9.json
- {name: glu, config-opts: [--disable-static], sources: [{type: archive, url: https://gitlab.freedesktop.org/mesa/glu/-/archive/glu-9.0.2/glu-glu-9.0.2.tar.gz,
sha256: 332d93a16376bc007e8232a8e5534da84e548cf3db9de040442c47a21f4625ba}],
cleanup: [/include, /lib/*.a, /lib/*.la, /lib/pkgconfig]}
# Python3 modules needed by CloudCompare-PythonRuntime
- cloudcompare-pythonruntime.yaml
- name: CloudCompare
sources:
- type: git
url: https://github.com/CloudCompare/CloudCompare.git
tag: v2.13.2
- type: git
url: https://github.com/tmontaigu/CloudCompare-PythonRuntime.git
commit: 315aa6689cb01409f7c232794a25732559084c8e
dest: plugins/private/CloudCompare-PythonRuntime
- type: patch
path: patches/CloudCompare-PythonRuntime.patch
builddir: true
build-options:
cxxflags: -I/usr/include/python3.11 -Wno-deprecated-declarations # reduce QT deprecations noise, should be fixed upstream
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=Release # implicit use for CGAL warning
- -DCCCORELIB_USE_CGAL=ON
- -DCCCORELIB_USE_TBB=ON
- -DOPTION_USE_GDAL=ON
- -DOPTION_USE_DXF_LIB=ON
- -DOPTION_USE_SHAPE_LIB=ON
- -DEIGEN_ROOT_DIR=/app/include/eigen3
- -DPLUGIN_STANDARD_3DMASC=ON
- -DPLUGIN_GL_QEDL=ON
- -DPLUGIN_GL_QSSAO=ON
- -DPLUGIN_IO_QADDITIONAL=ON
- -DPLUGIN_IO_QCORE=ON
- -DPLUGIN_IO_QCSV_MATRIX=ON
- -DPLUGIN_IO_QE57=ON
- -DPLUGIN_IO_QPHOTOSCAN=ON
- -DPLUGIN_IO_QLAS=ON
- -DPLUGIN_STANDARD_QANIMATION=ON
- -DPLUGIN_STANDARD_QBROOM=ON
- -DPLUGIN_STANDARD_QCANUPO=ON
- -DPLUGIN_STANDARD_QCLOUDLAYERS=ON
- -DPLUGIN_STANDARD_QCOMPASS=ON
- -DPLUGIN_STANDARD_QCOLORIMETRIC_SEGMENTER=ON
- -DPLUGIN_STANDARD_QCSF=ON
- -DPLUGIN_STANDARD_QFACETS=ON
- -DPLUGIN_STANDARD_QHOUGH_NORMALS=ON
- -DPLUGIN_STANDARD_QHPR=ON
- -DPLUGIN_STANDARD_QM3C2=ON
- -DPLUGIN_STANDARD_MASONRY_QAUTO_SEG=ON
- -DPLUGIN_STANDARD_MASONRY_QMANUAL_SEG=ON
- -DPLUGIN_STANDARD_QMPLANE=ON
- -DPLUGIN_STANDARD_QPCL=ON
- -DPLUGIN_STANDARD_QPCV=ON
- -DPLUGIN_STANDARD_QPOISSON_RECON=ON
- -DPLUGIN_STANDARD_QSRA=ON
- -DPLUGIN_STANDARD_QTREEISO=ON
- -DPLUGIN_PYTHON=ON
- -DPLUGIN_PYTHON_USE_EMBEDDED_MODULES=ON
post-install:
- install -d /app/share/icons/hicolor/256x256/apps
- cp ${FLATPAK_BUILDER_BUILDDIR}/qCC/images/icon/cc_icon_256.png /app/share/icons/hicolor/256x256/apps/org.cloudcompare.CloudCompare.png
- chmod 644 /app/share/icons/hicolor/256x256/apps/org.cloudcompare.CloudCompare.png
- cp ${FLATPAK_BUILDER_BUILDDIR}/qCC/images/icon/cc_viewer_icon_256.png /app/share/icons/hicolor/256x256/apps/org.cloudcompare.CloudCompare.Viewer.png
- chmod 644 /app/share/icons/hicolor/256x256/apps/org.cloudcompare.CloudCompare.Viewer.png
# Python3 modules needed by dendromatics and 3DFin
- dendromatics.yaml
- 3DFin.yaml
- name: launchers
buildsystem: simple
sources:
- type: file
path: org.cloudcompare.CloudCompare.desktop
- type: file
path: org.cloudcompare.CloudCompare.Viewer.desktop
- type: file
path: org.cloudcompare.CloudCompare.appdata.xml
build-commands:
- install -d /app/share/applications
- install -m644 org.cloudcompare.CloudCompare.desktop /app/share/applications/org.cloudcompare.CloudCompare.desktop
- install -m644 org.cloudcompare.CloudCompare.Viewer.desktop /app/share/applications/org.cloudcompare.CloudCompare.Viewer.desktop
- install -d /app/share/metainfo
- install -m644 org.cloudcompare.CloudCompare.appdata.xml /app/share/metainfo/org.cloudcompare.CloudCompare.appdata.xml