-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathorg.flightgear.FlightGear.yaml
214 lines (200 loc) · 7.59 KB
/
org.flightgear.FlightGear.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
id: org.flightgear.FlightGear
runtime: org.kde.Platform
# When updating this version number, care must be taken to update the ffmpeg extension
# version as well, by checking which version of the freedesktop-sdk this KDE runtime depends on.
runtime-version: 5.15-23.08
sdk: org.kde.Sdk
command: flightgear.sh
rename-icon: flightgear
finish-args:
# IPC is required for X11, otherwise the performances aren't as great
- --socket=x11
- --share=ipc
# Joysticks, yokes, etc. aren't handled by libinput/wayland/x11, so the application
# needs direct access to those peripherals. When a more sandbox-proof solution
# is in place, replace by --device=dri for GPU acceleration
- --device=all
- --socket=pulseaudio
- --share=network
- --persist=.fgfs
# As of http://wiki.flightgear.org/$FG_HOME, "$FG_HOME is a notable place were
# FlightGear data is written to, contrary to $FG_ROOT, which is generally read-only."
# This means that it's safe to store the default built-in flightgear-data under /app,
# which is writable but non-persistent.
# The FG_ROOT can still be changed by passing the --fg-root option when calling flatpak run.
- --env=FG_ROOT=/app/share/flightgear
cleanup:
- /include
- /lib/pkgconfig
- /lib64/pkgconfig
- /lib/cmake
- /share/doc
- /share/man
- '*.h'
- '*.a'
- '*.la'
- '*.cmake'
modules:
- name: boost
buildsystem: simple
build-commands:
- ./bootstrap.sh --prefix=/app
- ./b2 headers -j $FLATPAK_BUILDER_N_JOBS
- ./b2 --build-type=minimal -j $FLATPAK_BUILDER_N_JOBS install
sources:
- type: archive
url: https://boostorg.jfrog.io/artifactory/main/release/1.84.0/source/boost_1_84_0.tar.bz2
sha256: cc4b893acf645c9d4b698e9a0f08ca8846aa5d6c68275c14c3e7949c24109454
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.bz2
- shared-modules/glu/glu-9.json
- shared-modules/glew/glew.json
- name: ffmpeg
config-opts:
- --enable-shared
- --disable-static
- --disable-doc
- --disable-manpages
- --disable-stripping
- --disable-ffplay
- --disable-ffprobe
- --enable-gpl
- --enable-version3
- --enable-optimizations
- --enable-postproc
- --enable-pthreads
- --enable-gnutls
- --enable-libxcb-xfixes
- --enable-opengl
- --enable-vaapi
- --enable-vdpau
- --enable-zlib
- --enable-bzlib
- --enable-lzma
- --enable-fontconfig
- --enable-libfontconfig
- --enable-libfreetype
# copied from another manifest
- --enable-avcodec
- --enable-avfilter
- --enable-avresample
- --enable-libxml2
- --enable-swscale
- --enable-libxcb
- --enable-protocol=file
sources:
- type: archive
url: https://ffmpeg.org/releases/ffmpeg-4.3.6.tar.xz
sha256: f4b173d4d5f539a3699ef13d12a92dd4778ba55c26be1f3dd8f901b98987cc62
- type: patch
path: patches/ffmpeg-as-fix.patch
cleanup:
- /share/ffmpeg/examples
- name: openscenegraph
buildsystem: cmake-ninja
config-opts:
# - -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DCMAKE_BUILD_TYPE=Release
sources:
- type: archive
url: https://github.com/openscenegraph/OpenSceneGraph/archive/OpenSceneGraph-3.6.5.tar.gz
sha256: aea196550f02974d6d09291c5d83b51ca6a03b3767e234a8c0e21322927d1e12
x-checker-data:
type: anitya
project-id: 6848
stable-only: true
url-template: https://github.com/openscenegraph/OpenSceneGraph/archive/OpenSceneGraph-$version.tar.gz
- name: simgear
builddir: true
buildsystem: cmake-ninja
config-opts:
# - -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DCMAKE_BUILD_TYPE=Release
- -DOpenGL_GL_PREFERENCE=GLVND
- -DENABLE_TESTS=OFF
sources:
- type: archive
url: https://downloads.sourceforge.net/project/flightgear/release-2020.3/simgear-2020.3.19.tar.bz2
sha256: 3b937c5b94422478e5d79114bdcd6c78e43a0a6ffba97544a86d441c3f9e8c3a
x-checker-data:
type: anitya
project-id: 9667
url-template: https://downloads.sourceforge.net/project/flightgear/release-$major.$minor/simgear-$version.tar.bz2
- type: patch
path: patches/simgear-build-fixes.patch
- name: xmu
sources:
- type: archive
url: https://www.x.org/archive/individual/lib/libXmu-1.2.1.tar.xz
sha256: fcb27793248a39e5fcc5b9c4aec40cc0734b3ca76aac3d7d1c264e7f7e14e8b2
x-checker-data:
type: anitya
project-id: 1785
url-template: https://www.x.org/archive/individual/lib/libXmu-$version.tar.xz
- name: plib
sources:
- type: archive
url: http://plib.sourceforge.net/dist/plib-1.8.5.tar.gz
sha256: 485b22bf6fdc0da067e34ead5e26f002b76326f6371e2ae006415dea6a380a32
x-checker-data:
type: anitya
project-id: 9894
url-template: http://plib.sourceforge.net/dist/plib-$version.tar.gz
- name: libevent
buildsystem: autotools
sources:
- type: archive
url: https://github.com/libevent/libevent/archive/refs/tags/release-2.1.12-stable.tar.gz
sha256: 7180a979aaa7000e1264da484f712d403fcf7679b1e9212c4e3d09f5c93efc24
x-checker-data:
type: anitya
project-id: 1606
url-template: https://github.com/libevent/libevent/archive/refs/tags/release-$version-stable.tar.gz
- name: flightgear-data
buildsystem: simple
sources:
- type: archive
url: https://downloads.sourceforge.net/project/flightgear/release-2020.3/FlightGear-2020.3.19-data.txz
sha256: f3adc49cd054fab6137711f0315e876c1bbdf653ba1f798a1aecae9a6e984795
dest: fgdata
x-checker-data:
type: anitya
project-id: 9716
url-template: https://downloads.sourceforge.net/project/flightgear/release-$major.$minor/FlightGear-$version-data.txz
build-commands:
- mkdir --parents /app/share/flightgear
- mv fgdata/* /app/share/flightgear/
- name: flightgear
buildsystem: cmake-ninja
config-opts:
- -DENABLE_QT=ON
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DFG_BUILD_TYPE=Release
- -DOpenGL_GL_PREFERENCE=GLVND
# Set the path to the base data, as it can't find translations and such otherwise
- -DFG_DATA_DIR=/app/share/flightgear
# Let flightgear build flite, as at least we know it'll work
- -DSYSTEM_FLITE=0
builddir: true
sources:
- type: archive
url: https://downloads.sourceforge.net/project/flightgear/release-2020.3/flightgear-2020.3.19.tar.bz2
sha256: 167d08de9cc0f72218b379b23cd7e56c7f6ee18d7d559512da51a3bd67f38e6e
x-checker-data:
type: anitya
project-id: 9716
url-template: https://downloads.sourceforge.net/project/flightgear/release-$major.$minor/flightgear-$version.tar.bz2
- type: file
path: org.flightgear.FlightGear.metainfo.xml
- type: script
commands:
- fgfs --launcher "$@"
dest-filename: flightgear.sh
post-install:
- install -Dm644 ../org.flightgear.FlightGear.metainfo.xml /app/share/metainfo/org.flightgear.FlightGear.metainfo.xml
- install -Dm755 ../flightgear.sh /app/bin/flightgear.sh
- desktop-file-edit --set-key=Exec --set-value=flightgear.sh /app/share/applications/org.flightgear.FlightGear.desktop
- desktop-file-edit --set-key=StartupWMClass --set-value=osgViewer /app/share/applications/org.flightgear.FlightGear.desktop