2023-12-22 09:16:54 +00:00
|
|
|
modules:
|
|
|
|
|
2023-12-22 14:47:27 +00:00
|
|
|
# https://sdlmame.wallyweek.org/download/
|
2023-12-22 09:16:54 +00:00
|
|
|
- name: mame
|
2024-01-05 16:37:36 +00:00
|
|
|
buildsystem: simple
|
2023-12-22 09:16:54 +00:00
|
|
|
build-options:
|
|
|
|
no-debuginfo: true
|
|
|
|
strip: true
|
2024-01-05 16:37:36 +00:00
|
|
|
build-commands:
|
|
|
|
- make
|
|
|
|
-j ${FLATPAK_BUILDER_N_JOBS}
|
|
|
|
CC=clang
|
|
|
|
CXX=clang++
|
|
|
|
LD=lld
|
|
|
|
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
|
2024-01-05 16:16:42 +00:00
|
|
|
- install -Dm 0755 mame ${FLATPAK_DEST}/bin/mame
|
|
|
|
- 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/
|
2023-12-22 09:16:54 +00:00
|
|
|
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
|
2024-01-05 16:16:42 +00:00
|
|
|
path: mame-patches/ym3802.patch
|