forked from flathub/io.github.dosbox-staging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
io.github.dosbox-staging.yml
123 lines (111 loc) · 3.97 KB
/
io.github.dosbox-staging.yml
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
app-id: io.github.dosbox-staging
runtime: org.freedesktop.Platform
runtime-version: '22.08'
sdk: org.freedesktop.Sdk
command: dosbox
build_options:
cppflags: -DNDEBUG
cflags: -O3
cxxflags: -O3
rename-desktop-file: dosbox-staging.desktop
rename-appdata-file: dosbox-staging.metainfo.xml
rename-icon: dosbox-staging
finish-args:
- --device=all # we need OpenGL and controller access
- --share=network # IPX, libslirp and serial port emulation over UDP
- --socket=x11 # X11 output support
- --socket=wayland # Wayland output support
- --share=ipc # necessary for x11
- --socket=pulseaudio
- --filesystem=home
modules:
# Build FluidSynth for General MIDI emulation
- shared-modules/linux-audio/fluidsynth2.json
# Build iir1 DSP filter lib
- name: iir1
buildsystem: cmake
sources:
- type: archive
url: https://github.com/berndporr/iir1/archive/refs/tags/1.9.3.tar.gz
sha256: de241ef7a3e5ae8e1309846fe820a2e18978aa3df3922bd83c2d75a0fcf4e78f
x-checker-data:
type: anitya
project-id: 288170
url-template: https://github.com/berndporr/iir1/archive/refs/tags/$version.tar.gz
# Speexdsp
- name: speexdsp
buildsystem: autotools
cleanup:
- "*.la"
sources:
- type: archive
url: https://github.com/xiph/speexdsp/archive/refs/tags/SpeexDSP-1.2.1.tar.gz
sha256: d17ca363654556a4ff1d02cc13d9eb1fc5a8642c90b40bd54ce266c3807b91a7
x-checker-data:
type: anitya
project-id: 8419
url-template: https://github.com/xiph/speexdsp/archive/refs/tags/SpeexDSP-$version.tar.gz
# Build mt32emu for MT-32 MIDI emulation
- name: mt32emu
buildsystem: cmake-ninja
config-opts:
- -Dmunt_WITH_MT32EMU_SMF2WAV=FALSE
- -Dmunt_WITH_MT32EMU_QT=FALSE
- -Dlibmt32emu_WITH_VERSION_TAGGING=TRUE
- -Dlibmt32emu_WITH_SYMBOL_VERSIONING=TRUE
sources:
- type: archive
url: https://github.com/munt/munt/archive/libmt32emu_2_7_0.tar.gz
sha256: 5ede7c3d28a3bb0d9e637935b8b96484fadb409c9e5952a9e5432b3e05e5dbc1
x-checker-data:
type: anitya
project-id: 220368
url-template: https://github.com/munt/munt/archive/libmt32emu_$version.tar.gz
# SDL2 Networking support
- name: SDL2_net
buildsystem: autotools
config-opts:
- --disable-static
- --disable-gui
cleanup:
- "*.la"
sources:
- type: archive
url: https://github.com/libsdl-org/SDL_net/archive/refs/tags/release-2.2.0.tar.gz
sha256: 08d741282c0c22b82ed134f09cd319803132289cae06fb47b5ada2752faf0493
x-checker-data:
type: anitya
project-id: 4783
url-template: https://github.com/libsdl-org/SDL_net/archive/refs/tags/release-$version.tar.gz
# Build libslirp for TCP/IP networking
- name: libslirp
buildsystem: meson
cleanup:
- /include
- /lib/pkgconfig
sources:
- type: archive
url: https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v4.7.0/libslirp-v4.7.0.tar.gz
sha256: 9398f0ec5a581d4e1cd6856b88ae83927e458d643788c3391a39e61b75db3d3b
x-checker-data:
type: anitya
project-id: 96796
url-template: https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v$version/libslirp-v$version.tar.gz
# Build DOSBox-Staging
- name: dosbox-staging
buildsystem: meson
config-opts:
- -Dbuildtype=release
- -Ddefault_library=shared
- -Dsystem_libraries=speexdsp
build-commands:
- mkdir /app/bin/resources
- cp -va resources/* /app/bin/resources
sources:
- type: archive
url: https://github.com/dosbox-staging/dosbox-staging/archive/refs/tags/v0.79.0.tar.gz
sha256: 4c45dff631b6edbcec76f88be6e800b373d0303ef66189a6769a5a18fef106f2
x-checker-data:
type: anitya
project-id: 234902
url-template: https://github.com/dosbox-staging/dosbox-staging/archive/refs/tags/v$version.tar.gz