This repository has been archived by the owner on Feb 2, 2024. It is now read-only.
forked from flathub/org.cloudcompare.CloudCompare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorg.cloudcompare.CloudCompare.yaml
479 lines (450 loc) · 15.7 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
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
app-id: org.cloudcompare.CloudCompare
runtime: org.kde.Platform
runtime-version: 5.15-22.08
sdk: org.kde.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.llvm15
command: CloudCompare
finish-args:
- --socket=wayland
- --socket=fallback-x11
- --share=ipc
- --device=dri
- --share=network
- --filesystem=host
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/pdal*
- /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/ytasm
- /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
- /share/rdblib
- /include
- /doc
- /rdblib
- /cork
build-options:
append-path: /usr/lib/sdk/llvm15/bin
prepend-ld-library-path: /usr/lib/sdk/llvm15/lib
modules:
- name: rdblib
sources:
- type: archive
only-arches: [x86_64]
url: https://repository.riegl.com/software/libraries/rdblib/archive/2.4.2/linux/rdblib-2.4.2-x86_64-linux.tar.gz
sha256: 576b05a422ad381bdddf2deb12f8fa0975bb974ab9373ca1ab3d56f9dc73a5ee
- type: archive
only-arches: [aarch64]
url: https://repository.riegl.com/software/libraries/rdblib/archive/2.4.2/linux/rdblib-2.4.2-arm64-linux.tar.gz
sha256: b7728e341fdb83b88ef48ebf2a3557a264ccbf5d87f862b976bd6f6a4b069f53
buildsystem: simple
build-commands:
- mkdir -p /app/rdblib
- cp -r . /app/rdblib
- mkdir -p /app/share/rdblib
- cp license.txt /app/share/rdblib
- name: MPFR
sources:
- type: archive
url: https://www.mpfr.org/mpfr-4.2.0/mpfr-4.2.0.tar.gz
sha256: f1cc1c6bb14d18f0c61cc416e083f5e697b6e0e3cf9630b9b33e8e483fc960f0
x-checker-data:
type: anitya
project-id: 2019
stable-only: true
url-template: https://www.mpfr.org/mpfr-$version/mpfr-$version.tar.gz
buildsystem: autotools
builddir: true
config-opts:
- --disable-shared
- --with-pic
- name: boost
sources:
- type: archive
url: https://boostorg.jfrog.io/artifactory/main/release/1.82.0/source/boost_1_82_0.tar.gz
sha256: 66a469b6e608a51f8347236f4912e27dc5c60c60d7d53ae9bfe4683316c6f04c
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
- ./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/v5.5.2/CGAL-5.5.2-library.tar.xz
sha256: 5c5da70d627a9271e0c73d8335dbfcd4d48f4411f9a006017328f9cf811973da
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
- -DCGAL_HEADER_ONLY=ON
- name: PROJ
sources:
- type: archive
url: https://github.com/OSGeo/PROJ/releases/download/9.2.1/proj-9.2.1.tar.gz
sha256: 15ebf4afa8744b9e6fccb5d571fc9f338dc3adcf99907d9e62d1af815d4971a1
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.4.tar.gz
sha256: 3d8ec1c7f94e38fee0e4ca5ad1e1d9db23cbf3a10bba626f6b4afa2dedafe5ab
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.1/libgeotiff-1.7.1.tar.gz
sha256: 05ab1347aaa471fc97347d8d4269ff0c00f30fa666d956baba37948ec87e55d6
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.7.0/gdal-3.7.0.tar.gz
sha256: 5a806d759f403a15bbbf8a14ecc6947071afc5ab91e5abaef0d11d1d2d16bf94
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
- -DACCEPT_MISSING_SQLITE3_RTREE=ON
- name: laz-perf
sources:
- type: archive
url: https://github.com/hobuinc/laz-perf/archive/refs/tags/3.3.0.tar.gz
sha256: 029e830758d2a0d873110b714e7f918c1a8fbad6f6538f0af9f41c3fec9de0c0
builddir: true
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- -DBUILD_SHARED_LIBS=OFF # builds liblazperf.so and liblazperf_s.a anyway
- -DWITH_TESTS=OFF
- name: PDAL
sources:
- type: archive
url: https://github.com/PDAL/PDAL/releases/download/2.5.5/PDAL-2.5.5-src.tar.bz2
sha256: b32b16475619a6bdfaee5a07a9b859206e18de5acff2a4447502fd0a9c6538d6
x-checker-data:
type: anitya
project-id: 138228
stable-only: true
url-template: https://github.com/PDAL/PDAL/releases/download/$version/PDAL-$version-src.tar.bz2
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- -DBUILD_SHARED_LIBS=OFF
- -DCMAKE_POSITION_INDEPENDENT_CODE=ON
- -DWITH_TESTS=OFF
- name: TBB
sources:
- type: archive
url: https://github.com/oneapi-src/oneTBB/archive/refs/tags/v2021.9.0.tar.gz
sha256: 1ce48f34dada7837f510735ff1172f6e2c261b09460e3bf773b49791d247d24e
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/archive/refs/tags/pcl-1.13.0.tar.gz
sha256: b6f6769b84d3d8313e48278388b923e32cf519e6a27a4876c2170d587b33721d
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
- -DOpenGL_GL_PREFERENCE=GLVND
- -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: yasm
sources:
- type: archive
url: https://github.com/yasm/yasm/releases/download/v1.3.0/yasm-1.3.0.tar.gz
sha256: 3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f
x-checker-data:
type: anitya
project-id: 5286
stable-only: true
url-template: https://github.com/yasm/yasm/releases/download/v$version/yasm-$version.tar.gz
buildsystem: autotools
builddir: true
config-opts:
- --disable-shared
- name: MPIR
sources:
- type: archive
url: https://github.com/wbhart/mpir/archive/refs/tags/mpir-3.0.0.tar.gz
sha256: 86a5039badc3e6738219a262873a1db5513405e15ece9527b718fcd0fac09bb2
buildsystem: autotools
builddir: true
config-opts:
- --disable-shared
- --with-pic
# 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]}
- name: Cork
sources:
- type: git
url: https://github.com/CloudCompare/cork.git
commit: a09d474b8fba2c2825367f33c31af0004897cb7e
builddir: true
buildsystem: simple
build-commands:
- make -j ${FLATPAK_BUILDER_N_JOBS} CXXFLAGS="-DSUPPORT_TOPO_STREAM_OPERATORS
-fPIC"
- cp -r . /app/cork
- name: CloudCompare
sources:
- type: git
url: https://github.com/CloudCompare/CloudCompare.git
tag: v2.12.4
# fix libE57Format compilation with clang
# https://github.com/asmaloney/libE57Format/issues/93
- type: patch
path: patches/cloudcompare-fixes.patch
builddir: true
buildsystem: cmake-ninja
config-opts:
- -DOPTION_USE_GDAL=ON
- -DOPTION_USE_DXF_LIB=ON
- -DOPTION_USE_SHAPE_LIB=ON
- -DEIGEN_ROOT_DIR=/app/include/eigen3
- -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_QFBX=OFF # Autodesk FBX not available
- -DPLUGIN_IO_QPDAL=ON
- -DPLUGIN_IO_QPHOTOSCAN=ON
- -Drdb_DIR=/app/rdblib/interface/cpp # path to rdb-config.cmake provided by rdblib-module
- -DPLUGIN_IO_QRDB=ON
- -DPLUGIN_IO_QRDB_FETCH_DEPENDENCY=OFF # flatpak build itself has no internet access
- -DPLUGIN_IO_QRDB_INSTALL_DEPENDENCY=ON
- -DPLUGIN_STANDARD_QANIMATION=ON
- -DPLUGIN_STANDARD_QBROOM=ON
- -DPLUGIN_STANDARD_QCANUPO=ON
- -DPLUGIN_STANDARD_QCOMPASS=ON
- -DPLUGIN_STANDARD_QCORK=ON
- -DCORK_INCLUDE_DIR=/app/cork/src/
- -DMPIR_INCLUDE_DIR=UNUSED # setting 'MPIR_INCLUDE_DIR' is required by the qCORK plugin but it is actually not used
- -DCORK_RELEASE_LIBRARY_FILE=/app/cork/lib/libcork.a
- -DMPIR_RELEASE_LIBRARY_FILE=/app/lib/libmpir.a
- -DPLUGIN_STANDARD_QCSF=ON
- -DPLUGIN_STANDARD_QFACETS=ON
- -DPLUGIN_STANDARD_QHOUGH_NORMALS=ON
- -DPLUGIN_STANDARD_QHPR=ON
- -DPLUGIN_STANDARD_QM3C2=ON
- -DPLUGIN_STANDARD_QPCL=ON
- -DPLUGIN_STANDARD_QPCV=ON
- -DPLUGIN_STANDARD_QPOISSON_RECON=ON
- -DPLUGIN_STANDARD_QRANSAC_SD=ON
- -DPLUGIN_STANDARD_QSRA=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
- 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