mirror of
https://github.com/gryf/gryf-overlay.git
synced 2026-04-19 16:03:32 +02:00
Added compilable version of sdlmame
This commit is contained in:
270
games-emulation/sdlmame/files/mame-0.159.ini.in
Normal file
270
games-emulation/sdlmame/files/mame-0.159.ini.in
Normal file
@@ -0,0 +1,270 @@
|
||||
#
|
||||
# CORE CONFIGURATION OPTIONS
|
||||
#
|
||||
readconfig 1
|
||||
writeconfig 0
|
||||
|
||||
#
|
||||
# CORE SEARCH PATH OPTIONS
|
||||
#
|
||||
rompath $HOME/.sdlmame/roms;@GAMES_DATADIR@/sdlmame/roms
|
||||
samplepath $HOME/.sdlmame/samples;@GAMES_DATADIR@/sdlmame/samples
|
||||
artpath $HOME/.sdlmame/artwork;@GAMES_DATADIR@/sdlmame/artwork
|
||||
ctrlrpath $HOME/.sdlmame/ctrlr;@GAMES_SYSCONFDIR@/sdlmame/ctrlr;@GAMES_DATADIR@/sdlmame/ctrlr
|
||||
inipath $HOME/.sdlmame;@GAMES_SYSCONFDIR@/sdlmame
|
||||
fontpath $HOME/.sdlmame;@GAMES_DATADIR@/sdlmame
|
||||
cheatpath $HOME/.sdlmame/cheats;@GAMES_SYSCONFDIR@/sdlmame/cheats;@GAMES_DATADIR@/sdlmame/cheats
|
||||
crosshairpath $HOME/.sdlmame/crosshair;@GAMES_DATADIR@/sdlmame/crosshair
|
||||
|
||||
#
|
||||
# CORE OUTPUT DIRECTORY OPTIONS
|
||||
#
|
||||
cfg_directory $HOME/.sdlmame/cfg
|
||||
nvram_directory $HOME/.sdlmame/nvram
|
||||
memcard_directory $HOME/.sdlmame/memcard
|
||||
input_directory $HOME/.sdlmame/inp
|
||||
state_directory $HOME/.sdlmame/sta
|
||||
snapshot_directory $HOME/.sdlmame/snap
|
||||
diff_directory $HOME/.sdlmame/diff
|
||||
comment_directory $HOME/.sdlmame/comments
|
||||
|
||||
#
|
||||
# CORE STATE/PLAYBACK OPTIONS
|
||||
#
|
||||
state
|
||||
autosave 0
|
||||
playback
|
||||
record
|
||||
mngwrite
|
||||
aviwrite
|
||||
wavwrite
|
||||
snapname %g/%i
|
||||
snapsize auto
|
||||
snapview internal
|
||||
burnin 0
|
||||
|
||||
#
|
||||
# CORE PERFORMANCE OPTIONS
|
||||
#
|
||||
autoframeskip 0
|
||||
frameskip 0
|
||||
seconds_to_run 0
|
||||
throttle 1
|
||||
sleep 1
|
||||
speed 1.0
|
||||
refreshspeed 0
|
||||
|
||||
#
|
||||
# CORE ROTATION OPTIONS
|
||||
#
|
||||
rotate 1
|
||||
ror 0
|
||||
rol 0
|
||||
autoror 0
|
||||
autorol 0
|
||||
flipx 0
|
||||
flipy 0
|
||||
|
||||
#
|
||||
# CORE ARTWORK OPTIONS
|
||||
#
|
||||
artwork_crop 0
|
||||
use_backdrops 1
|
||||
use_overlays 1
|
||||
use_bezels 1
|
||||
|
||||
#
|
||||
# CORE SCREEN OPTIONS
|
||||
#
|
||||
brightness 1.0
|
||||
contrast 1.0
|
||||
gamma 1.0
|
||||
pause_brightness 0.65
|
||||
|
||||
#
|
||||
# CORE VECTOR OPTIONS
|
||||
#
|
||||
antialias 1
|
||||
beam 1.0
|
||||
flicker 0
|
||||
|
||||
#
|
||||
# CORE SOUND OPTIONS
|
||||
#
|
||||
sound 1
|
||||
samplerate 48000
|
||||
samples 1
|
||||
volume 0
|
||||
|
||||
#
|
||||
# CORE INPUT OPTIONS
|
||||
#
|
||||
coin_lockout 1
|
||||
ctrlr
|
||||
mouse 0
|
||||
joystick 1
|
||||
lightgun 0
|
||||
multikeyboard 0
|
||||
multimouse 0
|
||||
steadykey 0
|
||||
offscreen_reload 0
|
||||
joystick_map auto
|
||||
joystick_deadzone 0.3
|
||||
joystick_saturation 0.85
|
||||
natural 0
|
||||
uimodekey auto
|
||||
|
||||
#
|
||||
# CORE INPUT AUTOMATIC ENABLE OPTIONS
|
||||
#
|
||||
paddle_device keyboard
|
||||
adstick_device keyboard
|
||||
pedal_device keyboard
|
||||
dial_device keyboard
|
||||
trackball_device keyboard
|
||||
lightgun_device keyboard
|
||||
positional_device keyboard
|
||||
mouse_device mouse
|
||||
|
||||
#
|
||||
# CORE DEBUGGING OPTIONS
|
||||
#
|
||||
log 0
|
||||
verbose 0
|
||||
update_in_pause 0
|
||||
debug 0
|
||||
debugscript
|
||||
debug_internal 0
|
||||
|
||||
#
|
||||
# CORE MISC OPTIONS
|
||||
#
|
||||
bios
|
||||
cheat 0
|
||||
skip_gameinfo 0
|
||||
|
||||
#
|
||||
# DEBUGGING OPTIONS
|
||||
#
|
||||
oslog 0
|
||||
|
||||
#
|
||||
# PERFORMANCE OPTIONS
|
||||
#
|
||||
multithreading 0
|
||||
numprocessors auto
|
||||
sdlvideofps 0
|
||||
|
||||
#
|
||||
# VIDEO OPTIONS
|
||||
#
|
||||
video soft
|
||||
numscreens 1
|
||||
window 0
|
||||
maximize 1
|
||||
keepaspect 1
|
||||
unevenstretch 1
|
||||
effect none
|
||||
centerh 1
|
||||
centerv 1
|
||||
waitvsync 0
|
||||
scalemode none
|
||||
|
||||
#
|
||||
# OpenGL-SPECIFIC OPTIONS
|
||||
#
|
||||
filter 1
|
||||
prescale 1
|
||||
gl_forcepow2texture 0
|
||||
gl_notexturerect 0
|
||||
gl_vbo 1
|
||||
gl_pbo 1
|
||||
gl_glsl 0
|
||||
gl_glsl_filter 1
|
||||
glsl_shader_mame0 none
|
||||
glsl_shader_mame1 none
|
||||
glsl_shader_mame2 none
|
||||
glsl_shader_mame3 none
|
||||
glsl_shader_mame4 none
|
||||
glsl_shader_mame5 none
|
||||
glsl_shader_mame6 none
|
||||
glsl_shader_mame7 none
|
||||
glsl_shader_mame8 none
|
||||
glsl_shader_mame9 none
|
||||
glsl_shader_screen0 none
|
||||
glsl_shader_screen1 none
|
||||
glsl_shader_screen2 none
|
||||
glsl_shader_screen3 none
|
||||
glsl_shader_screen4 none
|
||||
glsl_shader_screen5 none
|
||||
glsl_shader_screen6 none
|
||||
glsl_shader_screen7 none
|
||||
glsl_shader_screen8 none
|
||||
glsl_shader_screen9 none
|
||||
gl_glsl_vid_attr 1
|
||||
|
||||
#
|
||||
# PER-WINDOW VIDEO OPTIONS
|
||||
#
|
||||
screen auto
|
||||
aspect auto
|
||||
resolution auto
|
||||
view auto
|
||||
screen0 auto
|
||||
aspect0 auto
|
||||
resolution0 auto
|
||||
view0 auto
|
||||
screen1 auto
|
||||
aspect1 auto
|
||||
resolution1 auto
|
||||
view1 auto
|
||||
screen2 auto
|
||||
aspect2 auto
|
||||
resolution2 auto
|
||||
view2 auto
|
||||
screen3 auto
|
||||
aspect3 auto
|
||||
resolution3 auto
|
||||
view3 auto
|
||||
|
||||
#
|
||||
# FULL SCREEN OPTIONS
|
||||
#
|
||||
switchres 0
|
||||
useallheads 0
|
||||
|
||||
#
|
||||
# SOUND OPTIONS
|
||||
#
|
||||
audio_latency 3
|
||||
|
||||
#
|
||||
# SDL KEYBOARD MAPPING
|
||||
#
|
||||
keymap 0
|
||||
keymap_file $HOME/.sdlmame/keymap.dat
|
||||
#keymap_file @GAMES_DATADIR@/sdlmame/keymaps/km-be.txt
|
||||
#keymap_file @GAMES_DATADIR@/sdlmame/keymaps/km-ch.txt
|
||||
#keymap_file @GAMES_DATADIR@/sdlmame/keymaps/km-de.txt
|
||||
#keymap_file @GAMES_DATADIR@/sdlmame/keymaps/km-fr.txt
|
||||
#keymap_file @GAMES_DATADIR@/sdlmame/keymaps/km_it.txt
|
||||
|
||||
#
|
||||
# SDL JOYSTICK MAPPING
|
||||
#
|
||||
joy_idx1 auto
|
||||
joy_idx2 auto
|
||||
joy_idx3 auto
|
||||
joy_idx4 auto
|
||||
joy_idx5 auto
|
||||
joy_idx6 auto
|
||||
joy_idx7 auto
|
||||
joy_idx8 auto
|
||||
sixaxis 0
|
||||
|
||||
#
|
||||
# SDL LOWLEVEL DRIVER OPTIONS
|
||||
#
|
||||
videodriver auto
|
||||
audiodriver auto
|
||||
gl_lib auto
|
||||
132
games-emulation/sdlmame/files/sdlmame-0.159-QA.patch
Normal file
132
games-emulation/sdlmame/files/sdlmame-0.159-QA.patch
Normal file
@@ -0,0 +1,132 @@
|
||||
diff -ru work.orig/makefile work/makefile
|
||||
--- work.orig/makefile 2015-03-11 18:38:24.955335239 -0700
|
||||
+++ work/makefile 2015-03-11 18:39:03.870276079 -0700
|
||||
@@ -363,14 +363,16 @@
|
||||
|
||||
# compiler, linker and utilities
|
||||
ifneq ($(TARGETOS),emscripten)
|
||||
-AR = @ar
|
||||
-CC = @gcc
|
||||
-LD = @g++
|
||||
+AR ?= @ar
|
||||
+CC ?= @gcc
|
||||
+CXX ?= @g++
|
||||
+LD = $(CXX)
|
||||
endif
|
||||
MD = -mkdir$(BUILD_EXE)
|
||||
RM = @rm -f
|
||||
OBJDUMP = @objdump
|
||||
-PYTHON = @python
|
||||
+PYTHON ?= @python
|
||||
+PKG_CONFIG ?= pkg-config
|
||||
|
||||
#-------------------------------------------------
|
||||
# form the name of the executable
|
||||
@@ -523,7 +525,7 @@
|
||||
|
||||
# CFLAGS is defined based on C or C++ targets
|
||||
# (remember, expansion only happens when used, so doing it here is ok)
|
||||
-CFLAGS = $(CCOMFLAGS) $(CPPONLYFLAGS) $(INCPATH)
|
||||
+CFLAGS += $(CCOMFLAGS) $(CPPONLYFLAGS) $(INCPATH)
|
||||
|
||||
# we compile C-only to C89 standard with GNU extensions
|
||||
# we compile C++ code to C++98 standard with GNU extensions
|
||||
@@ -535,9 +537,6 @@
|
||||
endif
|
||||
COBJFLAGS += -x objective-c++
|
||||
|
||||
-# this speeds it up a bit by piping between the preprocessor/compiler/assembler
|
||||
-CCOMFLAGS += -pipe
|
||||
-
|
||||
# add -g if we need symbols, and ensure we have frame pointers
|
||||
ifdef SYMBOLS
|
||||
CCOMFLAGS += -g$(SYMLEVEL) -fno-omit-frame-pointer -fno-optimize-sibling-calls
|
||||
@@ -564,22 +563,6 @@
|
||||
CCOMFLAGS += -pg
|
||||
endif
|
||||
|
||||
-# add the optimization flag
|
||||
-CCOMFLAGS += -O$(OPTIMIZE)
|
||||
-
|
||||
-# add the error warning flag
|
||||
-ifndef NOWERROR
|
||||
-CCOMFLAGS += -Werror
|
||||
-endif
|
||||
-
|
||||
-# if we are optimizing, include optimization options
|
||||
-ifneq ($(OPTIMIZE),0)
|
||||
-CCOMFLAGS += -fno-strict-aliasing $(ARCHOPTS)
|
||||
-ifdef LTO
|
||||
-CCOMFLAGS += -flto
|
||||
-endif
|
||||
-endif
|
||||
-
|
||||
ifdef SSE2
|
||||
CCOMFLAGS += -msse2
|
||||
endif
|
||||
@@ -662,30 +645,11 @@
|
||||
# linking flags
|
||||
#-------------------------------------------------
|
||||
|
||||
-# LDFLAGS are used generally; LDFLAGSEMULATOR are additional
|
||||
-# flags only used when linking the core emulator
|
||||
-LDFLAGS =
|
||||
-ifneq ($(TARGETOS),macosx)
|
||||
-ifneq ($(TARGETOS),os2)
|
||||
-ifneq ($(TARGETOS),solaris)
|
||||
-LDFLAGS = -Wl,--warn-common
|
||||
-endif
|
||||
-endif
|
||||
-endif
|
||||
-LDFLAGSEMULATOR =
|
||||
-
|
||||
# add profiling information for the linker
|
||||
ifdef PROFILE
|
||||
LDFLAGS += -pg
|
||||
endif
|
||||
|
||||
-# strip symbols and other metadata in non-symbols and non profiling builds
|
||||
-ifndef SYMBOLS
|
||||
-ifneq ($(TARGETOS),macosx)
|
||||
-LDFLAGS += -s
|
||||
-endif
|
||||
-endif
|
||||
-
|
||||
ifneq ($(OPTIMIZE),0)
|
||||
ifdef LTO
|
||||
LDFLAGS += -flto
|
||||
diff -ru work.orig/src/osd/sdl/sdl.mak work/src/osd/sdl/sdl.mak
|
||||
--- work.orig/src/osd/sdl/sdl.mak 2015-03-11 18:38:20.074217228 -0700
|
||||
+++ work/src/osd/sdl/sdl.mak 2015-03-11 18:41:08.653292939 -0700
|
||||
@@ -24,6 +24,8 @@
|
||||
# uncomment and edit next line to specify a distribution
|
||||
# supported debian-stable, ubuntu-intrepid
|
||||
|
||||
+PKG_CONFIG ?= pkg-config
|
||||
+
|
||||
# DISTRO = debian-stable
|
||||
# DISTRO = ubuntu-intrepid
|
||||
# DISTRO = gcc44-generic
|
||||
@@ -107,9 +109,9 @@
|
||||
endif
|
||||
|
||||
ifdef SDL_INSTALL_ROOT
|
||||
-SDL_CONFIG = $(SDL_INSTALL_ROOT)/bin/$(SDL_LIBVER)-config
|
||||
+SDL_CONFIG ?= $(SDL_INSTALL_ROOT)/bin/$(SDL_LIBVER)-config
|
||||
else
|
||||
-SDL_CONFIG = $(SDL_LIBVER)-config
|
||||
+SDL_CONFIG ?= $(SDL_LIBVER)-config
|
||||
endif
|
||||
|
||||
ifeq ($(SDL_LIBVER),sdl2)
|
||||
@@ -761,8 +763,8 @@
|
||||
#-------------------------------------------------
|
||||
|
||||
ifndef NO_USE_QTDEBUG
|
||||
-$(OSDOBJ)/%.moc.c: $(OSDSRC)/%.h
|
||||
- $(MOC) $(MOCINCPATH) $< -o $@
|
||||
+INCPATH += $(shell $(PKG_CONFIG) QtGui --cflags)
|
||||
+LIBS += $(shell $(PKG_CONFIG) QtGui --libs)
|
||||
|
||||
DEBUGOBJS = \
|
||||
$(OSDOBJ)/modules/debugger/qt/debuggerview.o \
|
||||
@@ -0,0 +1,19 @@
|
||||
diff -ru work.orig/src/osd/sdl/sdl.mak work/src/osd/sdl/sdl.mak
|
||||
--- work.orig/src/osd/sdl/sdl.mak 2015-03-11 18:42:22.102068698 -0700
|
||||
+++ work/src/osd/sdl/sdl.mak 2015-03-11 18:43:24.594579570 -0700
|
||||
@@ -855,6 +855,7 @@
|
||||
BASELIBS += -lX11
|
||||
endif
|
||||
|
||||
+ifneq ($(NO_DEBUGGER),1)
|
||||
# The newer debugger uses QT
|
||||
ifndef NO_USE_QTDEBUG
|
||||
QTCFLAGS := $(shell pkg-config --cflags QtGui)
|
||||
@@ -863,6 +864,7 @@
|
||||
INCPATH += $(QTCFLAGS)
|
||||
LIBS += $(QTLIBS)
|
||||
endif
|
||||
+endif # NO_DEBUGGER
|
||||
|
||||
# some systems still put important things in a different prefix
|
||||
LIBS += -L/usr/X11/lib -L/usr/X11R6/lib -L/usr/openwin/lib
|
||||
30
games-emulation/sdlmame/files/sdlmame-0.159-sdl_ttf.patch
Normal file
30
games-emulation/sdlmame/files/sdlmame-0.159-sdl_ttf.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
diff -ru work.orig/src/osd/modules/font/font_sdl.c work/src/osd/modules/font/font_sdl.c
|
||||
--- work.orig/src/osd/modules/font/font_sdl.c 2015-03-11 18:43:43.528037322 -0700
|
||||
+++ work/src/osd/modules/font/font_sdl.c 2015-03-11 18:44:00.170439682 -0700
|
||||
@@ -8,11 +8,7 @@
|
||||
|
||||
#if defined(SDLMAME_UNIX) && (!defined(SDLMAME_MACOSX)) && (!defined(SDLMAME_SOLARIS)) && (!defined(SDLMAME_HAIKU)) && (!defined(SDLMAME_EMSCRIPTEN))
|
||||
|
||||
-#if (SDLMAME_SDL2)
|
||||
-#include <SDL2/SDL_ttf.h>
|
||||
-#else
|
||||
#include <SDL/SDL_ttf.h>
|
||||
-#endif
|
||||
#ifndef SDLMAME_HAIKU
|
||||
#include <fontconfig/fontconfig.h>
|
||||
#endif
|
||||
diff -ru work.orig/src/osd/sdl/sdl.mak work/src/osd/sdl/sdl.mak
|
||||
--- work.orig/src/osd/sdl/sdl.mak 2015-03-11 18:43:43.526037273 -0700
|
||||
+++ work/src/osd/sdl/sdl.mak 2015-03-11 18:44:00.170439682 -0700
|
||||
@@ -649,11 +649,7 @@
|
||||
endif
|
||||
LIBS += $(FONTCONFIGLIBS)
|
||||
|
||||
-ifeq ($(SDL_LIBVER),sdl2)
|
||||
-LIBS += -lSDL2_ttf
|
||||
-else
|
||||
LIBS += -lSDL_ttf
|
||||
-endif
|
||||
|
||||
# FIXME: should be dealt with elsewhere
|
||||
# libs that Haiku doesn't want but are mandatory on *IX
|
||||
9
games-emulation/sdlmame/files/vector.ini
Normal file
9
games-emulation/sdlmame/files/vector.ini
Normal file
@@ -0,0 +1,9 @@
|
||||
#
|
||||
# Specific options file for vector games
|
||||
#
|
||||
|
||||
#
|
||||
# VIDEO OPTIONS
|
||||
#
|
||||
video soft
|
||||
yuvmode yv12
|
||||
Reference in New Issue
Block a user