diff --git a/contrib/linux/com.dosbox_x.DOSBox-X-sdl2.yaml b/contrib/linux/com.dosbox_x.DOSBox-X-sdl2.yaml index 36f76eb21..99384a16f 100644 --- a/contrib/linux/com.dosbox_x.DOSBox-X-sdl2.yaml +++ b/contrib/linux/com.dosbox_x.DOSBox-X-sdl2.yaml @@ -5,12 +5,11 @@ sdk: org.freedesktop.Sdk command: dosbox-x-sdl2 -finish-args: # flatpak permissions - - --device=all # needed for gamepads and serial/parallel - - --share=ipc # needed for X11 - - --share=network # needed for networking (NE2000, IPX) +finish-args: # flatpak permissions + - --device=all # needed for gamepads and serial/parallel + - --share=ipc # needed for X11 + - --share=network # needed for networking (NE2000, IPX) - --socket=x11 - - --nosocket=wayland - --socket=pulseaudio - --filesystem=home @@ -25,7 +24,7 @@ cleanup: modules: -# Build Mesa / GLU +# Build Mesa GLU - name: GLU config-opts: - --disable-static @@ -39,8 +38,7 @@ modules: - /lib/*.la - /lib/pkgconfig -# Build final FluidSynth 1.x release -# FluidSynth 2.x causes "checking for fluid_synth_sysex in -lfluidsynth... no" +# Build FluidSynth - name: FluidSynth buildsystem: cmake-ninja config-opts: @@ -53,44 +51,26 @@ modules: - "*.so" sources: - type: archive - url: https://github.com/FluidSynth/fluidsynth/archive/v1.1.11.tar.gz - sha256: da8878ff374d12392eecf87e96bad8711b8e76a154c25a571dd8614d1af80de8 + url: https://github.com/FluidSynth/fluidsynth/archive/v2.1.5.tar.gz + sha256: b539b7c65a650b56f01cd60a4e83c6125c217c5a63c0c214ef6274894a677d00 -# Build libpcap for NE2000 (and run setcap at the end) - - name: libpcap - cleanup: - - "/include" - - "/share" - - "/lib/pkgconfig" - sources: - - type: archive - url: https://www.tcpdump.org/release/libpcap-1.9.1.tar.gz - sha256: 635237637c5b619bcceba91900666b64d56ecb7be63f298f601ec786ce087094 - -# Build DOSBox-X +# Build DOSBox-X SDL2 - name: dosbox-x rm-configure: true + config-opts: + - --enable-core-inline + - --enable-debug=heavy + - --enable-sdl2 sources: - type: dir path: ../.. - - type: file - path: ../icons/dosbox-x.svg - - type: file - path: dosbox-x.metainfo.xml - - type: file - path: dosbox-x.desktop - buildsystem: simple - build-commands: - # Build the SDL2 debugger enabled version of DOSBox-X - - ./build-debug-sdl2 post-install: - - install -D src/dosbox-x /app/bin/dosbox-x-sdl2 -# - setcap cap_net_raw+ep /app/bin/dosbox-x # fails due to needing root permission - - install -Dm644 dosbox-x.svg /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg - - install -Dm644 dosbox-x.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml - - sed -i 's/com.dosbox_x.DOSBox-Xcom.dosbox_x.DOSBox-X-sdl2DOSBox-XDOSBox-X SDL2