mirror of
https://github.com/RetroDECK/com.supermodel3.Supermodel.git
synced 2024-12-04 17:35:37 +00:00
Supermodel
This commit is contained in:
parent
746ea89cc4
commit
248a510fd0
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "shared-modules"]
|
||||||
|
path = shared-modules
|
||||||
|
url = https://github.com/flathub/shared-modules.git
|
17
README.md
Normal file
17
README.md
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
To copy configuration:
|
||||||
|
```
|
||||||
|
mkdir -p ~/.supermodel/Analysis/
|
||||||
|
mkdir -p ~/.supermodel/Assets/
|
||||||
|
mkdir -p ~/.supermodel/Config/
|
||||||
|
mkdir -p ~/.supermodel/Log/
|
||||||
|
mkdir -p ~/.supermodel/NVRAM/
|
||||||
|
mkdir -p ~/.supermodel/Saves/
|
||||||
|
mkdir -p ~/.supermodel/Screenshots/
|
||||||
|
cp -r ~/.local/share/flatpak/app/com.supermodel3.Supermodel/current/active/files/Assets ~/.supermodel/
|
||||||
|
cp ~/.local/share/flatpak/app/com.supermodel3.Supermodel/current/active/files/Config/Games.xml ~/.supermodel/Config/
|
||||||
|
cp -n ~/.local/share/flatpak/app/com.supermodel3.Supermodel/current/active/files/Config/Supermodel.ini ~/.supermodel/Config/
|
||||||
|
```
|
||||||
|
To run from a terminal:
|
||||||
|
```
|
||||||
|
flatpak run com.supermodel3.Supermodel <romset>
|
||||||
|
```
|
37
com.supermodel3.Supermodel.metainfo.xml
Normal file
37
com.supermodel3.Supermodel.metainfo.xml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<component type="desktop-application">
|
||||||
|
<id>com.supermodel3.Supermodel</id>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<project_license>GPL-3.0-or-later</project_license>
|
||||||
|
<name>Supermodel</name>
|
||||||
|
<summary>
|
||||||
|
A Sega Model 3 Arcade Emulator.
|
||||||
|
</summary>
|
||||||
|
<description>
|
||||||
|
<p>
|
||||||
|
Supermodel emulates Sega's Model 3 arcade platform,
|
||||||
|
allowing you to play a number of ground-breaking arcade classics on your PC.
|
||||||
|
It uses OpenGL and the SDL library, and can run on Windows, Linux, and Mac OS X.
|
||||||
|
The source code is freely available under the terms of the GNU General Public License.
|
||||||
|
</p>
|
||||||
|
</description>
|
||||||
|
<categories>
|
||||||
|
<category>Game</category>
|
||||||
|
<category>ArcadeGame</category>
|
||||||
|
<category>Emulator</category>
|
||||||
|
</categories>
|
||||||
|
<url type="homepage">https://www.supermodel3.com</url>
|
||||||
|
<launchable type="desktop-id">com.supermodel3.Supermodel.desktop</launchable>
|
||||||
|
<releases>
|
||||||
|
<release version="0.3a-WIP" date="2023-04-01"/>
|
||||||
|
</releases>
|
||||||
|
<provides>
|
||||||
|
<binary>supermodel</binary>
|
||||||
|
</provides>
|
||||||
|
<content_rating type="oars-1.0" />
|
||||||
|
<screenshots>
|
||||||
|
<screenshot type="default">
|
||||||
|
<image type="source" width="1024" height="723">https://www.supermodel3.com/Images/Dayto2PE_InYourFace_1024x723_Low.jpg</image>
|
||||||
|
</screenshot>
|
||||||
|
</screenshots>
|
||||||
|
</component>
|
38
com.supermodel3.Supermodel.yaml
Normal file
38
com.supermodel3.Supermodel.yaml
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
id: com.supermodel3.Supermodel
|
||||||
|
runtime: org.freedesktop.Platform
|
||||||
|
runtime-version: "22.08"
|
||||||
|
sdk: org.freedesktop.Sdk
|
||||||
|
command: supermodel
|
||||||
|
separate-locales: false
|
||||||
|
finish-args:
|
||||||
|
- --device=all
|
||||||
|
- --persist=.supermodel
|
||||||
|
- --filesystem=host:ro
|
||||||
|
- --share=network
|
||||||
|
- --share=ipc
|
||||||
|
- --socket=fallback-x11
|
||||||
|
- --socket=pulseaudio
|
||||||
|
- --socket=wayland
|
||||||
|
- --allow=bluetooth
|
||||||
|
modules:
|
||||||
|
- shared-modules/glu/glu-9.json
|
||||||
|
|
||||||
|
- name: supermodel
|
||||||
|
buildsystem: simple
|
||||||
|
build-commands:
|
||||||
|
- make
|
||||||
|
-f Makefiles/Makefile.UNIX
|
||||||
|
NET_BOARD=1
|
||||||
|
- install -Dm 0755 bin/supermodel ${FLATPAK_DEST}/bin/supermodel
|
||||||
|
- install -Dm 0644 ${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml
|
||||||
|
- cp -r Assets ${FLATPAK_DEST}
|
||||||
|
- cp -r Config ${FLATPAK_DEST}
|
||||||
|
sources:
|
||||||
|
- type: git
|
||||||
|
url: https://github.com/trzy/Supermodel.git
|
||||||
|
branch: master
|
||||||
|
commit: 6993dfcfb0ebe369f246ff50e3669d4557a527da
|
||||||
|
- type: file
|
||||||
|
path: com.supermodel3.Supermodel.metainfo.xml
|
||||||
|
- type: patch
|
||||||
|
path: ldflags.patch
|
78
ldflags.patch
Normal file
78
ldflags.patch
Normal file
|
@ -0,0 +1,78 @@
|
||||||
|
diff --git a/Makefiles/Makefile.UNIX b/Makefiles/Makefile.UNIX
|
||||||
|
index 1e48361..1e7577d 100644
|
||||||
|
--- a/Makefiles/Makefile.UNIX
|
||||||
|
+++ b/Makefiles/Makefile.UNIX
|
||||||
|
@@ -27,13 +27,13 @@
|
||||||
|
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
-# Build Options
|
||||||
|
-###############################################################################
|
||||||
|
-
|
||||||
|
-DELETE = rm -d -r -f
|
||||||
|
-
|
||||||
|
-
|
||||||
|
-###############################################################################
|
||||||
|
+# Build Options
|
||||||
|
+###############################################################################
|
||||||
|
+
|
||||||
|
+DELETE = rm -d -r -f
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+###############################################################################
|
||||||
|
# Platform Configuration
|
||||||
|
#
|
||||||
|
# Edit library and include paths as needed.
|
||||||
|
@@ -53,29 +53,29 @@ LD = gcc
|
||||||
|
|
||||||
|
#
|
||||||
|
# SDL
|
||||||
|
-#
|
||||||
|
-
|
||||||
|
-SDL2_CFLAGS = `sdl2-config --cflags`
|
||||||
|
-SDL2_LIBS = `sdl2-config --libs`
|
||||||
|
-
|
||||||
|
-#
|
||||||
|
-# UNIX-specific
|
||||||
|
-#
|
||||||
|
-
|
||||||
|
-PLATFORM_CXXFLAGS = $(SDL2_CFLAGS) -O3
|
||||||
|
-PLATFORM_LDFLAGS = $(SDL2_LIBS) -lGL -lGLU -lz -lm -lstdc++ -lpthread -lSDL2_net
|
||||||
|
-
|
||||||
|
-
|
||||||
|
-###############################################################################
|
||||||
|
-# Core Makefile
|
||||||
|
-###############################################################################
|
||||||
|
+#
|
||||||
|
+
|
||||||
|
+SDL2_CFLAGS = `sdl2-config --cflags`
|
||||||
|
+SDL2_LIBS = `sdl2-config --libs`
|
||||||
|
+
|
||||||
|
+#
|
||||||
|
+# UNIX-specific
|
||||||
|
+#
|
||||||
|
+
|
||||||
|
+PLATFORM_CXXFLAGS = $(SDL2_CFLAGS) -O3
|
||||||
|
+PLATFORM_LDFLAGS = $(SDL2_LIBS) -lGL -lGLU -lz -lm -lstdc++ -lpthread -lSDL2_net -L/app/lib
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+###############################################################################
|
||||||
|
+# Core Makefile
|
||||||
|
+###############################################################################
|
||||||
|
|
||||||
|
PLATFORM_SRC_FILES = \
|
||||||
|
Src/OSD/Unix/FileSystemPath.cpp
|
||||||
|
-
|
||||||
|
-include Makefiles/Rules.inc
|
||||||
|
-
|
||||||
|
-clean:
|
||||||
|
- $(SILENT)echo Cleaning up \"$(BIN_DIR)\" and \"$(OBJ_DIR)\"...
|
||||||
|
- $(SILENT)$(DELETE) $(BIN_DIR)
|
||||||
|
- $(SILENT)$(DELETE) $(OBJ_DIR)
|
||||||
|
+
|
||||||
|
+include Makefiles/Rules.inc
|
||||||
|
+
|
||||||
|
+clean:
|
||||||
|
+ $(SILENT)echo Cleaning up \"$(BIN_DIR)\" and \"$(OBJ_DIR)\"...
|
||||||
|
+ $(SILENT)$(DELETE) $(BIN_DIR)
|
||||||
|
+ $(SILENT)$(DELETE) $(OBJ_DIR)
|
1
shared-modules
Submodule
1
shared-modules
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit a2441b964afefd8cd1cebcdf562c7878670daf42
|
Loading…
Reference in a new issue