2022-06-27 21:35:28 +00:00
|
|
|
id: org.mamedev.MAME
|
|
|
|
runtime: org.kde.Platform
|
2024-10-31 20:50:33 +00:00
|
|
|
runtime-version: '6.8'
|
2022-06-27 21:35:28 +00:00
|
|
|
sdk: org.kde.Sdk
|
|
|
|
command: mame
|
|
|
|
separate-locales: false
|
|
|
|
finish-args:
|
|
|
|
- --device=all
|
|
|
|
- --persist=.mame
|
2022-06-29 20:36:53 +00:00
|
|
|
- --filesystem=home
|
2022-06-27 21:35:28 +00:00
|
|
|
- --filesystem=host:ro
|
|
|
|
- --share=network
|
|
|
|
- --share=ipc
|
|
|
|
- --socket=fallback-x11
|
|
|
|
- --socket=pulseaudio
|
|
|
|
- --socket=wayland
|
|
|
|
- --allow=bluetooth
|
|
|
|
modules:
|
|
|
|
- name: mame
|
|
|
|
buildsystem: simple
|
|
|
|
build-options:
|
|
|
|
no-debuginfo: true
|
|
|
|
strip: true
|
2024-10-31 20:50:33 +00:00
|
|
|
env:
|
|
|
|
QT_HOME: '/'
|
2022-06-27 21:35:28 +00:00
|
|
|
build-commands:
|
2022-08-31 21:12:02 +00:00
|
|
|
- make
|
|
|
|
-j ${FLATPAK_BUILDER_N_JOBS}
|
2022-09-28 19:09:59 +00:00
|
|
|
CFLAGS+=-Wno-error=restrict
|
2024-04-24 17:43:18 +00:00
|
|
|
TOOLS=1
|
2023-11-28 19:10:28 +00:00
|
|
|
USE_WAYLAND=1
|
2022-08-31 21:12:02 +00:00
|
|
|
USE_SYSTEM_LIB_FLAC=1
|
|
|
|
SDL_INI_PATH='$$HOME/.APP_NAME;/app/share/APP_NAME/ini'
|
|
|
|
LDOPTS=-Wl,-s
|
2022-08-01 19:48:39 +00:00
|
|
|
- install -Dm 0755 mame ${FLATPAK_DEST}/bin/mame
|
2024-05-31 17:55:22 +00:00
|
|
|
- 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
|
2022-08-01 19:48:39 +00:00
|
|
|
- install -Dm 0644 ${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
|
|
|
|
- install -Dm 0644 ${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml
|
2022-08-31 15:25:33 +00:00
|
|
|
- install -Dm 0644 mame16x16.png ${FLATPAK_DEST}/share/icons/hicolor/16x16/apps/${FLATPAK_ID}.png
|
|
|
|
- install -Dm 0644 mame24x24.png ${FLATPAK_DEST}/share/icons/hicolor/24x24/apps/${FLATPAK_ID}.png
|
|
|
|
- install -Dm 0644 mame32x32.png ${FLATPAK_DEST}/share/icons/hicolor/32x32/apps/${FLATPAK_ID}.png
|
|
|
|
- install -Dm 0644 mame48x48.png ${FLATPAK_DEST}/share/icons/hicolor/48x48/apps/${FLATPAK_ID}.png
|
|
|
|
- install -Dm 0644 mame64x64.png ${FLATPAK_DEST}/share/icons/hicolor/64x64/apps/${FLATPAK_ID}.png
|
2022-08-01 19:48:39 +00:00
|
|
|
- install -Dm 0644 mame128x128.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png
|
2022-08-31 07:53:09 +00:00
|
|
|
- install -Dm 0644 mame256x256.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png
|
2022-08-01 19:48:39 +00:00
|
|
|
- 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/
|
2022-08-01 21:15:20 +00:00
|
|
|
- install -Dm 0644 mame.ini ${FLATPAK_DEST}/share/mame/ini/mame.ini
|
2022-08-01 19:48:39 +00:00
|
|
|
- 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/
|
2022-06-28 19:52:51 +00:00
|
|
|
sources:
|
2024-05-31 17:55:22 +00:00
|
|
|
- type: archive
|
2024-12-31 07:15:02 +00:00
|
|
|
url: https://github.com/mamedev/mame/archive/refs/tags/mame0273.tar.gz
|
2024-12-31 07:22:13 +00:00
|
|
|
sha256: 37d73e7772bd78ffffabac69a694323f37fd2215f1b5244e05b872c0154785fd
|
2022-08-31 15:25:33 +00:00
|
|
|
- type: file
|
|
|
|
path: mame16x16.png
|
|
|
|
- type: file
|
|
|
|
path: mame24x24.png
|
|
|
|
- type: file
|
|
|
|
path: mame32x32.png
|
|
|
|
- type: file
|
|
|
|
path: mame48x48.png
|
|
|
|
- type: file
|
|
|
|
path: mame64x64.png
|
2022-08-01 19:48:39 +00:00
|
|
|
- type: file
|
|
|
|
path: mame128x128.png
|
2022-08-31 07:53:09 +00:00
|
|
|
- type: file
|
|
|
|
path: mame256x256.png
|
2022-08-01 19:48:39 +00:00
|
|
|
- type: file
|
|
|
|
path: org.mamedev.MAME.desktop
|
|
|
|
- type: file
|
|
|
|
path: org.mamedev.MAME.metainfo.xml
|
2022-08-01 21:15:20 +00:00
|
|
|
- type: file
|
|
|
|
path: mame.ini
|
2022-10-14 16:52:56 +00:00
|
|
|
- type: patch
|
|
|
|
path: floppy.patch
|
2022-10-18 20:04:36 +00:00
|
|
|
- type: patch
|
|
|
|
path: sound.patch
|
2023-01-25 01:16:31 +00:00
|
|
|
- type: patch
|
|
|
|
path: ym3802.patch
|