2023-12-22 09:16:54 +00:00
|
|
|
modules:
|
|
|
|
|
2024-06-26 13:48:36 +00:00
|
|
|
# # needed for MAME suit (so chdman)
|
|
|
|
# - name: libFLAC
|
|
|
|
# buildsystem: cmake-ninja
|
|
|
|
# config-opts:
|
|
|
|
# - -Dbuildtype=release
|
|
|
|
# sources:
|
|
|
|
# - type: archive
|
|
|
|
# url: https://downloads.xiph.org/releases/flac/flac-1.4.3.tar.xz
|
|
|
|
# sha256: 6c58e69cd22348f441b861092b825e591d0b822e106de6eb0ee4d05d27205b70
|
2024-06-26 08:36:50 +00:00
|
|
|
|
2024-02-17 08:47:56 +00:00
|
|
|
# https://github.com/flathub/org.mamedev.MAME/blob/master/org.mamedev.MAME.yaml
|
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-06-26 00:56:27 +00:00
|
|
|
# env:
|
|
|
|
# CC: clang
|
|
|
|
# CXX: clang++
|
|
|
|
# LD: lld
|
2024-01-05 16:37:36 +00:00
|
|
|
build-commands:
|
|
|
|
- make
|
|
|
|
-j ${FLATPAK_BUILDER_N_JOBS}
|
|
|
|
CFLAGS+=-Wno-error=restrict
|
2024-06-26 00:56:27 +00:00
|
|
|
TOOLS=1
|
|
|
|
USE_QTDEBUG=0
|
2024-01-05 16:37:36 +00:00
|
|
|
USE_WAYLAND=1
|
2024-04-17 13:44:38 +00:00
|
|
|
TOOLS=1
|
2024-01-05 16:37:36 +00:00
|
|
|
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
|
2024-06-26 00:56:27 +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
|
2024-01-05 16:16:42 +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/
|
|
|
|
- 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
|
2024-06-26 00:56:27 +00:00
|
|
|
url: https://github.com/mamedev/mame/archive/refs/tags/mame0266.tar.gz
|
|
|
|
sha256: 0210be24f838f565302eed057dd6a4b1a252c9e0ca3d3f0832e8a4b1cf481f3e
|
2023-12-22 09:16:54 +00:00
|
|
|
- type: file
|
|
|
|
path: mame-patches/mame.ini
|
|
|
|
- type: patch
|
|
|
|
path: mame-patches/floppy.patch
|
|
|
|
- type: patch
|
|
|
|
path: mame-patches/sound.patch
|
|
|
|
- type: patch
|
2024-04-17 13:44:38 +00:00
|
|
|
path: mame-patches/ym3802.patch
|