aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/mame
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2012-02-20 07:24:50 +0800
committermiwi <miwi@FreeBSD.org>2012-02-20 07:24:50 +0800
commit347f877738a6c110a208292790e12b9c382768a1 (patch)
tree7c0d218eba001916bf79a806a2d0e59033e901bf /emulators/mame
parent1c370f787473726022934a0d3f816dd429085316 (diff)
downloadfreebsd-ports-graphics-347f877738a6c110a208292790e12b9c382768a1.tar.gz
freebsd-ports-graphics-347f877738a6c110a208292790e12b9c382768a1.tar.zst
freebsd-ports-graphics-347f877738a6c110a208292790e12b9c382768a1.zip
- Update to version 0.145
PR: 164990 Submitted by: Ports Fury
Diffstat (limited to 'emulators/mame')
-rw-r--r--emulators/mame/Makefile120
-rw-r--r--emulators/mame/distinfo8
-rw-r--r--emulators/mame/files/mame.ini19
-rw-r--r--emulators/mame/files/patch-makefile22
-rw-r--r--emulators/mame/files/pkg-message.in3
-rw-r--r--emulators/mame/files/sdl.mak.patch46
-rw-r--r--emulators/mame/pkg-plist24
7 files changed, 107 insertions, 135 deletions
diff --git a/emulators/mame/Makefile b/emulators/mame/Makefile
index 65c11278997..f15a8683c8c 100644
--- a/emulators/mame/Makefile
+++ b/emulators/mame/Makefile
@@ -6,42 +6,44 @@
#
PORTNAME= mame
-PATCHLEVEL= 2
-PORTVERSION= 0.143${PATCHSUFFIX}
-PORTREVISION= 1
+PORTVERSION= 0.145${PATCHSUFFIX}
CATEGORIES= emulators
-MASTER_SITES= http://mame.mirrors.zippykid.com/releases/:src \
- http://emumovies.com/aarongiles/releases/:src \
- http://mamedev.mameworld.info/releases/:src \
- http://mamedev.thiswebhost.com/releases/:src \
- ftp://ftp.arcadebsd.org/pub/ArcadeBSD/ports/distfiles/:src \
+MASTER_SITES= http://mame.mirrors.zippykid.com/releases/ \
+ http://emumovies.com/aarongiles/releases/ \
+ http://mamedev.mameworld.info/releases/ \
+ http://mamedev.thiswebhost.com/releases/ \
http://mamedev.org/updates/:patchsets
-DISTFILES= \
- ${PORTNAME}${PORTVERSION:S/.//:C/\.p[0-9]*$//}s${EXTRACT_SUFX}:src \
- ${UPDATE_PATCHES:C/$/.zip:patchsets/}
+DISTNAME= ${PORTNAME}${PORTVERSION:S/.//:C/\.p[0-9]*$//}s
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
+ ${UPDATE_PATCHES:C/$/.zip:patchsets/}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= The popular MAME (Multi Arcade Machine Emulator)
-LIB_DEPENDS= fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
+LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2 \
+ fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
+RUN_DEPENDS= liberation-fonts-ttf>=0:${PORTSDIR}/x11-fonts/liberation-fonts-ttf
+
+OPTIONS= BUILTIN_DEBUGGER "Enable builtin debugger support" off
+
+ONLY_FOR_ARCHS= i386 amd64
-USE_ZIP= yes
NO_WRKSUBDIR= yes
-USE_XORG= xext xrender xinerama xi
+
+USE_ZIP= yes
+USE_XORG= xext xi xinerama xrender
USE_GL= gl
-USE_GNOME?= gtk20 gconf2
-USE_GMAKE= yes
-MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"
USE_SDL= sdl ttf
-USE_GCC= 4.2+
+USE_GCC= 4.4+
+USE_GMAKE= yes
+MAKE_ENV= NOWERROR=1 OPT_FLAGS="${CXXFLAGS}" GCC_LDFLAGS="${LDFLAGS}"
MAKEFILE= makefile
-ONLY_FOR_ARCHS= i386 amd64
+MAKE_JOBS_SAFE= yes
+
SUB_FILES= pkg-message
-USE_DOS2UNIX= makefile sdl.mak debugcpu.c *.c *.h
-PORTDOCS= *
-PORTEXAMPLES= *
+PATCHLEVEL= # none
.if defined(PATCHLEVEL) && ${PATCHLEVEL}
PATCHSUFFIX= .p${PATCHLEVEL}
@@ -50,23 +52,25 @@ UPDATE_PATCHES!= /usr/bin/jot -s " " \
${PATCHLEVEL} 1 ${PATCHLEVEL}
.endif
-OPTIONS= DEBUG "Build mame debugger" off
-
-.include <bsd.port.pre.mk>
-
-.if !defined(WITH_DEBUG)
-USE_GNOME= #
-EXTRA_PATCHES+= ${PATCHDIR}/sdl.mak.patch
+.include <bsd.port.options.mk>
+
+.if defined(WITH_BUILTIN_DEBUGGER)
+USE_GNOME= gtk20 gconf2
+MAKE_ENV+= GTK_INCPATH="$$(pkg-config --cflags-only-I gtk+-2.0 gconf-2.0)" \
+ GTK_CCOMFLAGS="$$(pkg-config --cflags-only-other gtk+-2.0 gconf-2.0)" \
+ GTK_LIBS="$$(pkg-config --libs gtk+-2.0 gconf-2.0)"
+.else
+MAKE_ENV+= NO_DEBUGGER=1 \
+ GTK_INCPATH="" \
+ GTK_CCOMFLAGS="" \
+ GTK_LIBS=""
.endif
-MAKE_JOBS_SAFE= yes
+.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
MAKE_ENV+= PTR64=1
.endif
-.if ${ARCH} == "sparc64"
-BROKEN= Does not compile on sparc64
-.endif
post-extract:
@${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${WRKDIR}/mame.zip ${EXTRACT_AFTER_ARGS}
@@ -81,35 +85,43 @@ post-extract:
.endif
post-patch:
- @${REINPLACE_CMD} -e "s|ui.bdf|${DATADIR}/ui.bdf|g" ${WRKSRC}/src/emu/ui.c
- @${REINPLACE_CMD} -e "s|int getc()|int getcf()|g" ${WRKSRC}/src/emu/fileio.h
- @${REINPLACE_CMD} -e "s|::getc()|::getcf()|g" ${WRKSRC}/src/emu/fileio.c
+ @${REINPLACE_CMD} -e \
+ 's|^BUILD_EXPAT|# BUILD_EXPAT| ; \
+ s|^BUILD_ZLIB|# BUILD_ZLIB| ; \
+ /--warn-common/s|= -Wl,|= $$(GCC_LDFLAGS) -Wl,| ; \
+ s| = @gcc| := $$(CC)| ; \
+ s| = @g++| := $$(CXX)| ; \
+ s|^FULLNAME =.*|FULLNAME = $$(NAME)|' ${WRKSRC}/makefile
+ @${REINPLACE_CMD} -e \
+ '/-system/s|/usr/local/|${LOCALBASE}/| ; \
+ /--cflags-only-I gtk+-2.0/s|=.*|= $$(GTK_INCPATH)| ; \
+ /--cflags-only-other gtk+-2.0/s|=.*|= $$(GTK_CCOMFLAGS)| ; \
+ /--libs gtk+-2.0/s|=.*|= $$(GTK_LIBS)| ; \
+ /X11R6/s|^|#|' ${WRKSRC}/src/osd/sdl/sdl.mak
+ @${REINPLACE_CMD} -e \
+ 's|int getc()|int getcf()|g' ${WRKSRC}/src/emu/fileio.h
+ @${REINPLACE_CMD} -e \
+ 's|::getc()|::getcf()|g' ${WRKSRC}/src/emu/fileio.c
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
- ${MKDIR} ${PREFIX}/libexec/${PORTNAME}
- ${INSTALL_PROGRAM} ${WRKSRC}/chdman ${PREFIX}/libexec/${PORTNAME}
- ${INSTALL_PROGRAM} ${WRKSRC}/ldresample ${PREFIX}/libexec/${PORTNAME}
- ${INSTALL_PROGRAM} ${WRKSRC}/ldverify ${PREFIX}/libexec/${PORTNAME}
- ${INSTALL_PROGRAM} ${WRKSRC}/romcmp ${PREFIX}/libexec/${PORTNAME}
- ${INSTALL_PROGRAM} ${WRKSRC}/testkeys ${PREFIX}/libexec/${PORTNAME}
- ${INSTALL_PROGRAM} ${WRKSRC}/unidasm ${PREFIX}/libexec/${PORTNAME}
-
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ @${MKDIR} ${PREFIX}/libexec/${PORTNAME}
+.for FILE in chdman jedutil ldresample ldverify romcmp testkeys unidasm
+ ${INSTALL_PROGRAM} ${WRKSRC}/${FILE} ${PREFIX}/libexec/${PORTNAME}
+.endfor
+ @${MKDIR} ${DATADIR}
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} artwork ${DATADIR})
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} hash ${DATADIR})
+ @(cd ${WRKSRC}/src/osd/sdl && ${COPYTREE_SHARE} keymaps ${DATADIR})
.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
- (cd ${WRKSRC}/ && ${COPYTREE_SHARE} docs ${DOCSDIR})
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${DOCSDIR})
.endif
- ${MKDIR} ${DATADIR}
- (cd ${WRKSRC}/src/osd/sdl/ && ${COPYTREE_SHARE} keymaps ${DATADIR})
.if !defined(NOPORTEXAMPLES)
- ${MKDIR} ${EXAMPLESDIR}
+ @${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${FILESDIR}/mame.ini ${EXAMPLESDIR}
.endif
-
-post-install:
- @${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
- @${ECHO_CMD}
.include <bsd.port.post.mk>
diff --git a/emulators/mame/distinfo b/emulators/mame/distinfo
index 58d30daf85c..cf01a25016c 100644
--- a/emulators/mame/distinfo
+++ b/emulators/mame/distinfo
@@ -1,6 +1,2 @@
-SHA256 (mame/mame0143s.zip) = 677f04756ed7bc00e1adc6e68bbb174f89845887758dc287c7244a58e6ac266f
-SIZE (mame/mame0143s.zip) = 17902802
-SHA256 (mame/0143u1_diff.zip) = 307172c6956f58251590a5c30c454c99fbdf02ae554d0e3aaa0133fc9989eee8
-SIZE (mame/0143u1_diff.zip) = 250465
-SHA256 (mame/0143u2_diff.zip) = 4f6fa5961fe9fe99dfd6d315daf5280b2516ac96213b2a2c0fcf849c284db086
-SIZE (mame/0143u2_diff.zip) = 679992
+SHA256 (mame/mame0145s.zip) = a6a9a72cfd0eb83fb9748fb6cb69cd60df16283346a81ca3637552a283318b16
+SIZE (mame/mame0145s.zip) = 20346129
diff --git a/emulators/mame/files/mame.ini b/emulators/mame/files/mame.ini
index 62bb8f8d8f9..5cef9c80f18 100644
--- a/emulators/mame/files/mame.ini
+++ b/emulators/mame/files/mame.ini
@@ -10,11 +10,12 @@ writeconfig 0
# CORE SEARCH PATH OPTIONS
#
rompath $HOME/.mame/roms
+hashpath $HOME/.mame/hash;/usr/local/share/mame/hash/
samplepath $HOME/.mame/samples
-artpath $HOME/.mame/artwork
+artpath $HOME/.mame/artwork;/usr/local/share/mame/artwork/
ctrlrpath $HOME/.mame/ctrlr
inipath $HOME/.mame;.;ini
-fontpath $HOME/.mame/.
+fontpath $HOME/.mame/font;/usr/local/share/mame/
cheatpath $HOME/.mame/cheat
crosshairpath $HOME/.mame/crosshair
@@ -74,6 +75,8 @@ artwork_crop 0
use_backdrops 1
use_overlays 1
use_bezels 1
+use_cpanels 1
+use_marquees 1
#
# CORE SCREEN OPTIONS
@@ -82,6 +85,7 @@ brightness 1.0
contrast 1.0
gamma 1.0
pause_brightness 0.65
+effect none
#
# CORE VECTOR OPTIONS
@@ -114,7 +118,8 @@ joystick_map auto
joystick_deadzone 0.3
joystick_saturation 0.85
natural 0
-uimodekey auto
+joystick_contradictory 0
+coin_impulse 0
#
# CORE INPUT AUTOMATIC ENABLE OPTIONS
@@ -144,11 +149,15 @@ debug_internal 0
bios
cheat 0
skip_gameinfo 0
+uifont default
+ramsize
+confirm_quit 0
#
# DEBUGGING OPTIONS
#
oslog 0
+watchdog 0
#
# PERFORMANCE OPTIONS
@@ -156,6 +165,7 @@ oslog 0
multithreading 0
numprocessors auto
sdlvideofps 0
+bench 0
#
# VIDEO OPTIONS
@@ -166,10 +176,10 @@ window 0
maximize 1
keepaspect 1
unevenstretch 1
-effect none
centerh 1
centerv 1
waitvsync 0
+syncrefresh 0
scalemode none
#
@@ -245,6 +255,7 @@ audio_latency 3
#
keymap 0
keymap_file keymap.dat
+uimodekey auto
#
# SDL JOYSTICK MAPPING
diff --git a/emulators/mame/files/patch-makefile b/emulators/mame/files/patch-makefile
deleted file mode 100644
index 5c722bda0d7..00000000000
--- a/emulators/mame/files/patch-makefile
+++ /dev/null
@@ -1,22 +0,0 @@
---- makefile.orig 2010-07-30 10:42:41.000000000 +0200
-+++ makefile 2010-07-30 10:43:26.000000000 +0200
-@@ -295,8 +295,8 @@
-
- # compiler, linker and utilities
- AR = @ar
--CC = @gcc
--LD = @g++
-+CC:= @$(CC)
-+LD:= @$(CXX)
- MD = -mkdir$(EXE)
- RM = @rm -f
- OBJDUMP = @objdump
-@@ -344,7 +344,7 @@
- endif
-
- # fullname is prefix+name+suffix+suffix64+suffixdebug
--FULLNAME = $(PREFIX)$(PREFIXSDL)$(NAME)$(SUFFIX)$(SUFFIX64)$(SUFFIXDEBUG)$(SUFFIXPROFILE)
-+FULLNAME = $(NAME)
-
- # add an EXE suffix to get the final emulator name
- EMULATOR = $(FULLNAME)$(EXE)
diff --git a/emulators/mame/files/pkg-message.in b/emulators/mame/files/pkg-message.in
index 60444573abb..fac59f218c7 100644
--- a/emulators/mame/files/pkg-message.in
+++ b/emulators/mame/files/pkg-message.in
@@ -2,7 +2,8 @@
MAME has been installed.
-A example configuration file has been installed in "%%EXAMPLESDIR%%/mame.ini"
+A example configuration file has been installed in
+"%%EXAMPLESDIR%%/mame.ini"
Should you create a "~/.mame" directory and place it here or
launch "mame -createconfig" and place the mame.ini created instead.
diff --git a/emulators/mame/files/sdl.mak.patch b/emulators/mame/files/sdl.mak.patch
deleted file mode 100644
index 7de85e19b83..00000000000
--- a/emulators/mame/files/sdl.mak.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-$FreeBSD$
-
-This is applied if WITH_DEBUG is unset.
-
---- src/osd/sdl/sdl.mak 2011-06-21 19:58:18.000000000 -0500
-+++ src/osd/sdl/sdl.mak 2011-06-21 20:01:07.000000000 -0500
-@@ -139,7 +139,7 @@
- ifeq ($(TARGETOS),freebsd)
- BASE_TARGETOS = unix
- SYNC_IMPLEMENTATION = tc
--DEFS += -DNO_AFFINITY_NP
-+DEFS += -DNO_AFFINITY_NP -DNO_DEBUGGER
- LIBS += -lutil
- # /usr/local/include is not considered a system include directory
- # on FreeBSD. GL.h resides there and throws warnings
-@@ -213,7 +213,7 @@
- ifndef GTK_INSTALL_ROOT
- NO_DEBUGGER = 1
- else
--DEBUGOBJS = $(SDLOBJ)/debugwin.o $(SDLOBJ)/dview.o $(SDLOBJ)/debug-sup.o $(SDLOBJ)/debug-intf.o
-+DEBUGOBJS = $(SDLOBJ)/debugwin.o
- LIBS += -lgtk-win32-2.0 -lgdk-win32-2.0 -lgmodule-2.0 -lglib-2.0 -lgobject-2.0 \
- -lpango-1.0 -latk-1.0 -lgdk_pixbuf-2.0
- CCOMFLAGS += -mms-bitfields
-@@ -315,7 +315,7 @@
- ifeq ($(BASE_TARGETOS),unix)
-
- DEFS += -DSDLMAME_UNIX
--DEBUGOBJS = $(SDLOBJ)/debugwin.o $(SDLOBJ)/dview.o $(SDLOBJ)/debug-sup.o $(SDLOBJ)/debug-intf.o
-+DEBUGOBJS = $(SDLOBJ)/debugwin.o
- LIBGL = -lGL
- ifeq ($(NO_X11),1)
- NO_DEBUGGER = 1
-@@ -484,9 +484,9 @@
-
- # the new debugger relies on GTK+ in addition to the base SDLMAME needs
- # Non-X11 builds can not use the debugger
--INCPATH += `pkg-config --cflags-only-I gtk+-2.0` `pkg-config --cflags-only-I gconf-2.0`
--CCOMFLAGS += `pkg-config --cflags-only-other gtk+-2.0` `pkg-config --cflags-only-other gconf-2.0`
--LIBS += `pkg-config --libs gtk+-2.0` `pkg-config --libs gconf-2.0`
-+#INCPATH += `pkg-config --cflags-only-I gtk+-2.0` `pkg-config --cflags-only-I gconf-2.0`
-+#CCOMFLAGS += `pkg-config --cflags-only-other gtk+-2.0` `pkg-config --cflags-only-other gconf-2.0`
-+#LIBS += `pkg-config --libs gtk+-2.0` `pkg-config --libs gconf-2.0`
- #CCOMFLAGS += -DGTK_DISABLE_DEPRECATED
-
- # some systems still put important things in a different prefix
diff --git a/emulators/mame/pkg-plist b/emulators/mame/pkg-plist
index 4b60f7d9a90..ada7abfeadd 100644
--- a/emulators/mame/pkg-plist
+++ b/emulators/mame/pkg-plist
@@ -1,16 +1,36 @@
bin/mame
libexec/mame/chdman
+libexec/mame/jedutil
libexec/mame/ldresample
libexec/mame/ldverify
libexec/mame/romcmp
libexec/mame/testkeys
libexec/mame/unidasm
+%%PORTDOCS%%%%DOCSDIR%%/docs/config.txt
+%%PORTDOCS%%%%DOCSDIR%%/docs/hlsl.txt
+%%PORTDOCS%%%%DOCSDIR%%/docs/license.txt
+%%PORTDOCS%%%%DOCSDIR%%/docs/mame.txt
+%%PORTDOCS%%%%DOCSDIR%%/docs/newvideo.txt
+%%PORTDOCS%%%%DOCSDIR%%/docs/windows.txt
+%%PORTDOCS%%%%DOCSDIR%%/whatsnew_0145.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mame.ini
+%%DATADIR%%/artwork/aperture.png
+%%DATADIR%%/artwork/white.png
+%%DATADIR%%/hash/megatech.xml
+%%DATADIR%%/hash/neogeo.xml
+%%DATADIR%%/hash/softwarelist.dtd
+%%DATADIR%%/hash/stv.xml
%%DATADIR%%/keymaps/km-be.txt
%%DATADIR%%/keymaps/km-ch.txt
%%DATADIR%%/keymaps/km-de.txt
%%DATADIR%%/keymaps/km-fr-OSX.txt
%%DATADIR%%/keymaps/km-fr.txt
%%DATADIR%%/keymaps/km_it.txt
-@dirrm %%DATADIR%%/keymaps/
-@dirrm %%DATADIR%%/
+@dirrm %%DATADIR%%/keymaps
+@dirrm %%DATADIR%%/hash
+@dirrm %%DATADIR%%/artwork
+@dirrm %%DATADIR%%
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/docs
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm libexec/mame