MAME-MODULE: trying a different approach

This commit is contained in:
XargonWan 2024-01-05 17:14:53 +01:00
parent 58a951b95f
commit 0120145692

View file

@ -3,19 +3,34 @@ modules:
# https://sdlmame.wallyweek.org/download/ # https://sdlmame.wallyweek.org/download/
# -j ${FLATPAK_BUILDER_N_JOBS} # -j ${FLATPAK_BUILDER_N_JOBS}
- name: mame - name: mame
buildsystem: simple no-autogen: true
make-args:
- CFLAGS+=-Wno-error=restrict
- USE_QTDEBUG=0
- USE_WAYLAND=1
- USE_SYSTEM_LIB_FLAC=1
- SDL_INI_PATH='$$HOME/.APP_NAME;/app/share/APP_NAME/ini'
- LDOPTS=-Wl,-s
- CC=clang
- CXX=clang++
- LD=lld
build-options: build-options:
no-debuginfo: true no-debuginfo: true
strip: true strip: true
build-commands: sources:
- make - type: archive
-j 1 url: https://github.com/mamedev/mame/archive/refs/tags/mame0261.tar.gz
CFLAGS+=-Wno-error=restrict sha256: 51d5ce1563897709ceb7a924c31a70cc5ff2bec466aab8d0cc9ff3cc72b38899
USE_QTDEBUG=0 - type: file
USE_WAYLAND=1 path: mame-patches/mame.ini
USE_SYSTEM_LIB_FLAC=1 - type: patch
SDL_INI_PATH='$$HOME/.APP_NAME;/app/share/APP_NAME/ini' path: mame-patches/floppy.patch
LDOPTS=-Wl,-s - type: patch
path: mame-patches/sound.patch
- type: patch
path: mame-patches/ym3802.patch
- type: shell
commands:
- install -Dm 0755 mame ${FLATPAK_DEST}/bin/mame - install -Dm 0755 mame ${FLATPAK_DEST}/bin/mame
- cp COPYING ${FLATPAK_DEST}/bin/ - cp COPYING ${FLATPAK_DEST}/bin/
- cp uismall.bdf ${FLATPAK_DEST}/bin/ - cp uismall.bdf ${FLATPAK_DEST}/bin/
@ -34,15 +49,3 @@ modules:
- cp -r plugins/ ${FLATPAK_DEST}/share/mame/ - cp -r plugins/ ${FLATPAK_DEST}/share/mame/
- cp -r roms/ ${FLATPAK_DEST}/share/mame/ - cp -r roms/ ${FLATPAK_DEST}/share/mame/
- cp -r samples/ ${FLATPAK_DEST}/share/mame/ - cp -r samples/ ${FLATPAK_DEST}/share/mame/
sources:
- type: archive
url: https://github.com/mamedev/mame/archive/refs/tags/mame0261.tar.gz
sha256: 51d5ce1563897709ceb7a924c31a70cc5ff2bec466aab8d0cc9ff3cc72b38899
- type: file
path: mame-patches/mame.ini
- type: patch
path: mame-patches/floppy.patch
- type: patch
path: mame-patches/sound.patch
- type: patch
path: mame-patches/ym3802.patch