-
Notifications
You must be signed in to change notification settings - Fork 13
/
org.brlcad.brlcad.yaml
69 lines (69 loc) · 2.2 KB
/
org.brlcad.brlcad.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
app-id: org.brlcad.brlcad
runtime: org.kde.Platform
runtime-version: 5.15-21.08
sdk: org.kde.Sdk
command: mged
finish-args:
- --device=dri
- --filesystem=home
- --share=ipc
- --socket=x11
cleanup:
- /include
- /lib/pkgconfig
- /share/man
- '*.a'
- '*.la'
modules:
- name: brlcad
build-options:
env:
LD_LIBRARY_PATH: /run/build/brlcad/_flatpak_build/lib
prepend-path: /run/build/brlcad/_flatpak_build/bin
builddir: true
buildsystem: cmake-ninja
config-opts:
# build configs
- -DCMAKE_BUILD_TYPE=Release
- -DBUILD_STATIC_LIBS=OFF
- -DBRLCAD_BUILD_STATIC_LIBS=OFF
- -DBRLCAD_ENABLE_COMPILER_WARNINGS=OFF
- -DBRLCAD_ENABLE_STRICT=OFF
- -DBRLCAD_FLAGS_DEBUG=OFF
- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
# libs (ON/OFF BUNDLED/SYSTEM)
- -DBRLCAD_BUNDLED_LIBS=AUTO
# ui
- -DBRLCAD_ENABLE_OPENGL=ON
# Qt is not ready
# TODO: try using system tcl when Qt is ready
- -DBRLCAD_ENABLE_QT=OFF
- -DBRLCAD_ENABLE_X11=ON
# features
- -DBRLCAD_EXTRADOCS=OFF
- -DBRLCAD_INSTALL_EXAMPLE_GEOMETRY=OFF
#- -DBRLCAD_DOCBOOK_BUILD
post-install:
- install -Dm644 ../${FLATPAK_ID}.desktop -t /app/share/applications/
- install -Dm644 ../${FLATPAK_ID}.svg -t /app/share/icons/hicolor/scalable/apps/
- install -Dm644 ../${FLATPAK_ID}.png -t /app/share/icons/hicolor/512x512/apps/
sources:
- type: archive
# wait for > 7.32.4 release, as opengl detection is broken in stable
url: https://github.com/BRL-CAD/brlcad/archive/ad8292a87498159ee7394eac6de04dd5d5a04a34.tar.gz
sha256: c57c019666fed89b32e58fce3ab586c2e168997c2f9283b7fdb40434abefe158
x-checker-data:
type: anitya
project-id: 235081
stable-only: true
url-template: https://github.com/BRL-CAD/brlcad/archive/rel-$version.tar.gz
- type: shell
commands:
# TODO: debug step-g segfault
- sed -i '/^add_subdirectory(nist)/d' db/CMakeLists.txt
- type: file
path: org.brlcad.brlcad.desktop
- type: file
path: org.brlcad.brlcad.png
- type: file
path: org.brlcad.brlcad.svg