MAME/mame-module.yml
XargonWan e85e4fb91a
Some checks failed
Build MAME / Building_RetroDECK-MAME (push) Has been cancelled
MAME: updated to 0271
2024-11-02 16:55:28 +09:00

61 lines
2.4 KiB
YAML

modules:
# https://github.com/flathub/org.mamedev.MAME/blob/master/org.mamedev.MAME.yaml
- name: mame
buildsystem: simple
build-options:
no-debuginfo: true
strip: true
env:
QT_HOME: '/'
build-commands:
- make
-j ${FLATPAK_BUILDER_N_JOBS}
CFLAGS+=-Wno-error=restrict
TOOLS=1
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
- install -Dm 0755 mame ${FLATPAK_DEST}/bin/mame
- install -Dm 0755 castool ${FLATPAK_DEST}/bin/castool
- install -Dm 0755 chdman ${FLATPAK_DEST}/bin/chdman
- install -Dm 0755 floptool ${FLATPAK_DEST}/bin/floptool
- install -Dm 0755 imgtool ${FLATPAK_DEST}/bin/imgtool
- install -Dm 0755 jedutil ${FLATPAK_DEST}/bin/jedutil
- install -Dm 0755 ldresample ${FLATPAK_DEST}/bin/ldresample
- install -Dm 0755 ldverify ${FLATPAK_DEST}/bin/ldverify
- install -Dm 0755 nltool ${FLATPAK_DEST}/bin/nltool
- install -Dm 0755 nlwav ${FLATPAK_DEST}/bin/nlwav
- install -Dm 0755 romcmp ${FLATPAK_DEST}/bin/romcmp
- install -Dm 0755 unidasm ${FLATPAK_DEST}/bin/unidasm
- cp COPYING ${FLATPAK_DEST}/bin/
- cp uismall.bdf ${FLATPAK_DEST}/bin/
- mkdir -p ${FLATPAK_DEST}/share/mame/
- cp -r artwork/ ${FLATPAK_DEST}/share/mame/
- cp -r bgfx/ ${FLATPAK_DEST}/share/mame/
- cp -r ctrlr/ ${FLATPAK_DEST}/share/mame/
- mkdir -p ${FLATPAK_DEST}/share/mame/docs/
- cp -r docs/legal/ ${FLATPAK_DEST}/share/mame/docs/
- cp -r docs/man/ ${FLATPAK_DEST}/share/mame/docs
- cp -r hash/ ${FLATPAK_DEST}/share/mame/
- cp -r hlsl/ ${FLATPAK_DEST}/share/mame/
- cp -r ini/ ${FLATPAK_DEST}/share/mame/
- install -Dm 0644 mame.ini ${FLATPAK_DEST}/share/mame/ini/mame.ini
- cp -r language/ ${FLATPAK_DEST}/share/mame/
- cp -r plugins/ ${FLATPAK_DEST}/share/mame/
- cp -r roms/ ${FLATPAK_DEST}/share/mame/
- cp -r samples/ ${FLATPAK_DEST}/share/mame/
sources:
- type: archive
url: https://github.com/mamedev/mame/archive/refs/tags/mame0271.tar.gz
sha256: 79960f4c57715b2d08c3eba12933d04dd91ad1d95b0c1059306a75bf07fd6027
- type: file
path: mame.ini
- type: patch
path: floppy.patch
- type: patch
path: sound.patch
- type: patch
path: ym3802.patch