View | Details | Raw Unified | Return to bug 145050
Collapse All | Expand All

(-)mame/CVS/Entries (-1 / +1 lines)
Lines 1-5 Link Here
1
/Makefile/1.31/Mon Jan  4 23:14:35 2010//THEAD
1
/distinfo/1.18/Mon Jan  4 23:14:35 2010//THEAD
2
/distinfo/1.18/Mon Jan  4 23:14:35 2010//THEAD
2
/pkg-descr/1.1/Sun Feb 25 15:17:51 2007//THEAD
3
/pkg-descr/1.1/Sun Feb 25 15:17:51 2007//THEAD
3
/pkg-plist/1.14/Mon Jan  4 23:14:35 2010//THEAD
4
/pkg-plist/1.14/Mon Jan  4 23:14:35 2010//THEAD
4
D/files////
5
D/files////
5
/Makefile/1.32/Sun Mar 21 23:07:10 2010//THEAD
(-)mame/Makefile (-14 / +21 lines)
Lines 2-20 Link Here
2
# Date created:				2007-01-10
2
# Date created:				2007-01-10
3
# Whom:					alepulver
3
# Whom:					alepulver
4
#
4
#
5
# $FreeBSD: ports/emulators/sdlmame/Makefile,v 1.32 2010/02/22 00:49:21 wen Exp $
5
# $FreeBSD: ports/emulators/sdlmame/Makefile,v 1.31 2010/01/04 23:14:35 miwi Exp $
6
#
6
#
7
7
8
PORTNAME=	sdlmame
8
PORTNAME=	mame
9
PORTVERSION=	0.136
9
PORTVERSION=	0.137
10
CATEGORIES=	emulators
10
CATEGORIES=	emulators
11
MASTER_SITES=	ftp://ftp.arcadebsd.org/pub/ArcadeBSD/ports/distfiles/
11
MASTER_SITES=	http://www.aarongiles.com/mirror/releases/ \
12
DISTNAME=	${PORTNAME}${PORTVERSION:S/.//}
12
		ftp://ftp.arcadebsd.org/pub/ArcadeBSD/ports/distfiles/
13
DISTNAME=	${PORTNAME}${PORTVERSION:S/.//}s
13
14
14
MAINTAINER=	elbarto@ArcadeBSD.org
15
MAINTAINER=	elbarto@ArcadeBSD.org
15
COMMENT=	SDL port of the popular MAME (Multi Arcade Machine Emulator)
16
COMMENT=	The popular MAME (Multi Arcade Machine Emulator)
16
17
17
USE_ZIP=	yes
18
USE_ZIP=	yes
19
NO_WRKSUBDIR=	yes
18
USE_XORG=	xext xrender xinerama xi
20
USE_XORG=	xext xrender xinerama xi
19
USE_GL=		gl
21
USE_GL=		gl
20
USE_GNOME?=	gtk20 gconf2
22
USE_GNOME?=	gtk20 gconf2
Lines 22-28 Link Here
22
MAKE_ENV=	PTHREAD_LIBS="${PTHREAD_LIBS}"
24
MAKE_ENV=	PTHREAD_LIBS="${PTHREAD_LIBS}"
23
USE_SDL=	sdl
25
USE_SDL=	sdl
24
MAKEFILE=	makefile
26
MAKEFILE=	makefile
25
ONLY_FOR_ARCHS=	i386 amd64
27
ONLY_FOR_ARCH=	i386 amd64
26
SUB_FILES=	pkg-message
28
SUB_FILES=	pkg-message
27
29
28
OPTIONS=	DEBUG "Build sdlmame debugger" off
30
OPTIONS=	DEBUG "Build sdlmame debugger" off
Lines 43-58 Link Here
43
BROKEN=		Does not compile on sparc64
45
BROKEN=		Does not compile on sparc64
44
.endif
46
.endif
45
47
48
post-extract:
49
	@${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${WRKDIR}/mame.zip ${EXTRACT_AFTER_ARGS}
50
	@${RM} -f ${WRKDIR}/mame.zip
51
46
post-patch:
52
post-patch:
47
	@${REINPLACE_CMD} -e "s|ui.bdf|${DATADIR}/ui.bdf|g" ${WRKSRC}/src/emu/ui.c
53
	@${REINPLACE_CMD} -e "s|ui.bdf|${DATADIR}/ui.bdf|g" ${WRKSRC}/src/emu/ui.c
48
54
49
do-install:
55
do-install:
50
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
56
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
51
	${MKDIR} ${PREFIX}/libexec/sdlmame
57
	${MKDIR} ${PREFIX}/libexec/${PORTNAME}
52
	${INSTALL_PROGRAM} ${WRKSRC}/chdman ${PREFIX}/libexec/sdlmame
58
	${INSTALL_PROGRAM} ${WRKSRC}/chdman ${PREFIX}/libexec/${PORTNAME}
53
	${INSTALL_PROGRAM} ${WRKSRC}/ldresample ${PREFIX}/libexec/sdlmame
59
	${INSTALL_PROGRAM} ${WRKSRC}/ldresample ${PREFIX}/libexec/${PORTNAME}
54
	${INSTALL_PROGRAM} ${WRKSRC}/ldverify ${PREFIX}/libexec/sdlmame
60
	${INSTALL_PROGRAM} ${WRKSRC}/ldverify ${PREFIX}/libexec/${PORTNAME}
55
	${INSTALL_PROGRAM} ${WRKSRC}/testkeys ${PREFIX}/libexec/sdlmame
61
	${INSTALL_PROGRAM} ${WRKSRC}/romcmp ${PREFIX}/libexec/${PORTNAME}
62
	${INSTALL_PROGRAM} ${WRKSRC}/testkeys ${PREFIX}/libexec/${PORTNAME}
63
	${INSTALL_PROGRAM} ${WRKSRC}/unidasm ${PREFIX}/libexec/${PORTNAME}
56
64
57
.if !defined(NOPORTDOCS)
65
.if !defined(NOPORTDOCS)
58
	${MKDIR} ${DOCSDIR}
66
	${MKDIR} ${DOCSDIR}
Lines 60-67 Link Here
60
	${CP} -R ${WRKSRC}/docs ${DOCSDIR}
68
	${CP} -R ${WRKSRC}/docs ${DOCSDIR}
61
.endif
69
.endif
62
	${MKDIR} ${DATADIR}
70
	${MKDIR} ${DATADIR}
63
	${CP} ${WRKSRC}/ui.bdf ${DATADIR}/
71
	${CP} -R ${WRKSRC}/src/osd/sdl/keymaps ${DATADIR}/
64
	${CP} -R ${WRKSRC}/keymaps ${DATADIR}/
65
	${MKDIR} ${EXAMPLESDIR}
72
	${MKDIR} ${EXAMPLESDIR}
66
	${CP} ${FILESDIR}/mame.ini ${EXAMPLESDIR}
73
	${CP} ${FILESDIR}/mame.ini ${EXAMPLESDIR}
67
74
(-)mame/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (sdlmame0136.zip) = 3a83a5ba70b63298f4173558ccad1eba
1
MD5 (mame0137s.zip) = ce9e5359e882d5a8219821e39bd4f27a
2
SHA256 (sdlmame0136.zip) = 863c34af4850b7687de358601e5b13fbb4ed1c121e11654179e87fb39e7ede2d
2
SHA256 (mame0137s.zip) = 19678b480355b3c88fd026d0b5d4cb8f5da283666be7b0aa677a05f84041f8c7
3
SIZE (sdlmame0136.zip) = 18936113
3
SIZE (mame0137s.zip) = 16336251
(-)mame/files/mame.ini (-2 / +6 lines)
Lines 13-21 Link Here
13
artpath                   $HOME/.mame/artwork
13
artpath                   $HOME/.mame/artwork
14
ctrlrpath                 $HOME/.mame/ctrlr
14
ctrlrpath                 $HOME/.mame/ctrlr
15
inipath                   $HOME/.mame;.;ini
15
inipath                   $HOME/.mame;.;ini
16
fontpath                  /usr/local/share/sdlmame/
16
fontpath                  $HOME/.mame/.
17
cheatpath                 $HOME/.mame/cheat
17
cheatpath                 $HOME/.mame/cheat
18
crosshairpath             crosshair
18
crosshairpath             $HOME/.mame/crosshair
19
19
20
#
20
#
21
# CORE OUTPUT DIRECTORY OPTIONS
21
# CORE OUTPUT DIRECTORY OPTIONS
Lines 112-117 Link Here
112
joystick_map              auto
112
joystick_map              auto
113
joystick_deadzone         0.3
113
joystick_deadzone         0.3
114
joystick_saturation       0.85
114
joystick_saturation       0.85
115
natural                   0
116
uimodekey                 auto
115
117
116
#
118
#
117
# CORE INPUT AUTOMATIC ENABLE OPTIONS
119
# CORE INPUT AUTOMATIC ENABLE OPTIONS
Lines 133-138 Link Here
133
update_in_pause           0
135
update_in_pause           0
134
debug                     0
136
debug                     0
135
debugscript               
137
debugscript               
138
debug_internal            0
136
139
137
#
140
#
138
# CORE MISC OPTIONS
141
# CORE MISC OPTIONS
Lines 150-155 Link Here
150
# PERFORMANCE OPTIONS
153
# PERFORMANCE OPTIONS
151
#
154
#
152
multithreading            0
155
multithreading            0
156
numprocessors             auto
153
sdlvideofps               0
157
sdlvideofps               0
154
158
155
#
159
#
(-)mame/files/patch-makefile (-58 / +22 lines)
Lines 1-58 Link Here
1
--- makefile.orig	2009-11-13 11:07:31.000000000 +0100
1
--- makefile.orig	2010-03-01 20:26:50.000000000 +0100
2
+++ makefile	2009-11-13 11:08:58.000000000 +0100
2
+++ makefile	2010-03-24 00:48:38.000000000 +0100
3
@@ -59,7 +59,7 @@
3
@@ -266,8 +266,8 @@
4
 ifeq ($(OSD),windows)
4
 
5
 TARGETOS = win32
5
 # compiler, linker and utilities
6
 else
6
 AR = @ar
7
-TARGETOS = unix
7
-CC = @gcc
8
+TARGETOS = freebsd
8
-LD = @g++
9
 endif
9
+CC:= @$(CC)
10
 endif
10
+LD:= @$(CXX)
11
 
11
 MD = -mkdir$(EXE)
12
@@ -197,8 +197,8 @@
12
 RM = @rm -f
13
 
13
 
14
 # compiler, linker and utilities
14
@@ -308,7 +308,7 @@
15
 AR = @ar
15
 endif
16
-CC = @gcc
16
 
17
-LD = @gcc
17
 # fullname is prefix+name+suffix+suffix64+suffixdebug
18
+CC := @$(CC)
18
-FULLNAME = $(PREFIX)$(PREFIXSDL)$(NAME)$(SUFFIX)$(SUFFIX64)$(SUFFIXDEBUG)
19
+LD := @$(CC)
19
+FULLNAME = $(PREFIXSDL)$(NAME)$(SUFFIX)$(SUFFIX64)$(SUFFIXDEBUG)
20
 MD = -mkdir$(EXE)
20
 
21
 RM = @rm -f
21
 # add an EXE suffix to get the final emulator name
22
 
22
 EMULATOR = $(FULLNAME)$(EXE)
23
@@ -227,7 +227,7 @@
24
 endif
25
 
26
 # fullname is prefix+name+suffix+debugsuffix
27
-FULLNAME = $(PREFIX)$(NAME)$(CPPSUFFIX)$(SUFFIX)$(DEBUGSUFFIX)
28
+FULLNAME = sdl$(NAME)$(CPPSUFFIX)$(SUFFIX)$(DEBUGSUFFIX)
29
 
30
 # add an EXE suffix to get the final emulator name
31
 EMULATOR = $(FULLNAME)$(EXE)
32
@@ -338,7 +338,7 @@
33
 ifneq ($(OPTIMIZE),0)
34
 ifneq ($(TARGETOS),os2)
35
 ifndef IA64
36
-CCOMFLAGS += -Werror -fno-strict-aliasing $(ARCHOPTS)
37
+CCOMFLAGS += -fno-strict-aliasing $(ARCHOPTS)
38
 else
39
 endif
40
 else
41
@@ -382,7 +382,7 @@
42
 	-I$(SRC)/lib/util \
43
 	-I$(SRC)/osd \
44
 	-I$(SRC)/osd/$(OSD) \
45
-
46
+	-I$(LOCALBASE)/include \
47
 
48
 
49
 #-------------------------------------------------
50
@@ -395,7 +395,7 @@
51
 ifneq ($(TARGETOS),macosx)
52
 ifneq ($(TARGETOS),os2)
53
 ifneq ($(TARGETOS),solaris)
54
-LDFLAGS = -Wl,--warn-common
55
+LDFLAGS = -Wl,--warn-common $(PTHREAD_LIBS) -L$(LOCALBASE)/lib
56
 endif
57
 endif
58
 endif
(-)mame/files/pkg-message.in (-2 / +2 lines)
Lines 1-10 Link Here
1
==============================================================================
1
==============================================================================
2
2
3
SDLMAME has been installed.
3
MAME has been installed.
4
4
5
A example configuration file has been installed in "%%EXAMPLESDIR%%/mame.ini"
5
A example configuration file has been installed in "%%EXAMPLESDIR%%/mame.ini"
6
Should you create a "~/.mame" directory and place it here or
6
Should you create a "~/.mame" directory and place it here or
7
launch "sdlmame -createconfig" and place the mame.ini created instead.
7
launch "mame -createconfig" and place the mame.ini created instead.
8
8
9
If you have a non-qwerty keyboard, you should put in your mame.ini :
9
If you have a non-qwerty keyboard, you should put in your mame.ini :
10
keymap      1
10
keymap      1
(-)mame/files/sdl.mak.patch (-25 / +31 lines)
Lines 1-25 Link Here
1
--- src/osd/sdl/sdl.mak.orig	2009-11-13 11:09:21.000000000 +0100
1
--- src/osd/sdl/sdl.mak.orig	2010-03-24 00:15:07.000000000 +0100
2
+++ src/osd/sdl/sdl.mak	2009-11-13 11:10:24.000000000 +0100
2
+++ src/osd/sdl/sdl.mak	2010-03-24 00:17:26.000000000 +0100
3
@@ -140,6 +140,7 @@
3
@@ -139,7 +139,7 @@
4
 endif
4
 ifeq ($(TARGETOS),freebsd)
5
 
5
 BASE_TARGETOS = unix
6
 ifeq ($(TARGETOS),freebsd)
6
 SYNC_IMPLEMENTATION = tc
7
+DEFS += -DNO_DEBUGGER
7
-DEFS += -DNO_AFFINITY_NP
8
 TARGETOS = unix
8
+DEFS += -DNO_AFFINITY_NP -DNO_DEBUGGER
9
 SYNC_IMPLEMENTATION = ntc
9
 # /usr/local/include is not considered a system include directory
10
 endif
10
 # on FreeBSD. GL.h resides there and throws warnings
11
@@ -288,10 +289,10 @@
11
 CCOMFLAGS += -isystem /usr/local/include
12
 # the new debugger relies on GTK+ in addition to the base SDLMAME needs
12
@@ -304,7 +304,7 @@
13
 # Non-X11 builds can not use the debugger
13
 ifeq ($(BASE_TARGETOS),unix)
14
 ifndef NO_X11
14
 
15
-OSDCOREOBJS += $(SDLOBJ)/debugwin.o $(SDLOBJ)/dview.o $(SDLOBJ)/debug-sup.o $(SDLOBJ)/debug-intf.o
15
 DEFS += -DSDLMAME_UNIX
16
-CFLAGS += `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gconf-2.0` 
16
-DEBUGOBJS = $(SDLOBJ)/debugwin.o $(SDLOBJ)/dview.o $(SDLOBJ)/debug-sup.o $(SDLOBJ)/debug-intf.o
17
-LIBS += `pkg-config --libs gtk+-2.0` `pkg-config --libs gconf-2.0`
17
+DEBUGOBJS = $(SDLOBJ)/debugwin.o
18
-CFLAGS += -DGTK_DISABLE_DEPRECATED
18
 LIBGL = -lGL
19
+OSDCOREOBJS += $(SDLOBJ)/debugwin.o
19
 ifeq ($(NO_X11),1)
20
+#CFLAGS += `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gconf-2.0` 
20
 NO_DEBUGGER = 1
21
+#LIBS += `pkg-config --libs gtk+-2.0` `pkg-config --libs gconf-2.0`
21
@@ -454,8 +454,8 @@
22
+#CFLAGS += -DGTK_DISABLE_DEPRECATED
22
 
23
 else
23
 # the new debugger relies on GTK+ in addition to the base SDLMAME needs
24
 OSDCOREOBJS += $(SDLOBJ)/debugwin.o
24
 # Non-X11 builds can not use the debugger
25
 endif # NO_X11
25
-CCOMFLAGS += `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gconf-2.0`
26
-LIBS += `pkg-config --libs gtk+-2.0` `pkg-config --libs gconf-2.0`
27
+#CCOMFLAGS += `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gconf-2.0`
28
+#LIBS += `pkg-config --libs gtk+-2.0` `pkg-config --libs gconf-2.0`
29
 #CCOMFLAGS += -DGTK_DISABLE_DEPRECATED
30
 
31
 # some systems still put important things in a different prefix
(-)mame/pkg-descr (-16 / +8 lines)
Lines 1-17 Link Here
1
SDLMAME is a port of the popular MAME. There are a few principles that guide
1
MAME stands for Multiple Arcade Machine Emulator.
2
it's development:
2
When used in conjunction with images of the original
3
arcade game's ROM and disk data, MAME attempts to
4
reproduce that game as faithfully as possible on a
5
more modern general-purpose computer. MAME can currently
6
emulate several thousand different classic arcade video
7
games from the late 1970s through the modern era.
3
8
4
1) Run on Linux/Unix, Mac OS X, and other SDL supported operating systems with
9
WWW: http://mamedev.org
5
   as few changes as possible to the base Win32 code. This means we can track
6
   changes faster than larger more conventional ports such as MacMAME, and we
7
   also maintain what I call "Firefox compatibilty" where learning a major app
8
   only needs to be done once per application, and it then applies across many
9
   operating systems. If you can use the command-line Win32 MAME, you already
10
   know how to use SDLMAME on any platform you may encounter it on.
11
12
2) MAME developers are important. By keeping quickly up to date, we make it
13
   easy for people on non-Windows platforms to make and submit changes to the
14
   core MAME code, and we offer native implementations of MAME's multi-window
15
   GUI debugger on both Linux/Unix and Mac OS X.
16
17
WWW: http://rbelmont.mameworld.info/?page_id=163
(-)mame/pkg-plist (-8 / +9 lines)
Lines 1-15 Link Here
1
bin/sdlmame
1
bin/mame
2
libexec/sdlmame/chdman
2
libexec/mame/chdman
3
libexec/sdlmame/ldverify
3
libexec/mame/ldresample
4
libexec/sdlmame/ldresample
4
libexec/mame/ldverify
5
libexec/sdlmame/testkeys
5
libexec/mame/romcmp
6
%%PORTDOCS%%%%DOCSDIR%%/SDLMAME.txt
6
libexec/mame/testkeys
7
libexec/mame/unidasm
7
%%PORTDOCS%%%%DOCSDIR%%/docs/license.txt
8
%%PORTDOCS%%%%DOCSDIR%%/docs/license.txt
8
%%PORTDOCS%%%%DOCSDIR%%/docs/mame.txt
9
%%PORTDOCS%%%%DOCSDIR%%/docs/mame.txt
9
%%PORTDOCS%%%%DOCSDIR%%/docs/newvideo.txt
10
%%PORTDOCS%%%%DOCSDIR%%/docs/newvideo.txt
10
%%PORTDOCS%%%%DOCSDIR%%/docs/windows.txt
11
%%PORTDOCS%%%%DOCSDIR%%/docs/windows.txt
11
%%PORTDOCS%%%%DOCSDIR%%/docs/config.txt
12
%%PORTDOCS%%%%DOCSDIR%%/docs/config.txt
12
%%DATADIR%%/ui.bdf
13
%%PORTDOCS%%%%DOCSDIR%%/whatsnew.txt
13
%%DATADIR%%/keymaps/km-be.txt
14
%%DATADIR%%/keymaps/km-be.txt
14
%%DATADIR%%/keymaps/km-ch.txt
15
%%DATADIR%%/keymaps/km-ch.txt
15
%%DATADIR%%/keymaps/km-de.txt
16
%%DATADIR%%/keymaps/km-de.txt
Lines 19-25 Link Here
19
%%EXAMPLESDIR%%/mame.ini
20
%%EXAMPLESDIR%%/mame.ini
20
@dirrm %%DATADIR%%/keymaps/
21
@dirrm %%DATADIR%%/keymaps/
21
@dirrm %%DATADIR%%/
22
@dirrm %%DATADIR%%/
22
@dirrm libexec/sdlmame
23
@dirrm libexec/mame
23
%%PORTDOCS%%@dirrm %%DOCSDIR%%/docs
24
%%PORTDOCS%%@dirrm %%DOCSDIR%%/docs
24
%%PORTDOCS%%@dirrm %%DOCSDIR%%
25
%%PORTDOCS%%@dirrm %%DOCSDIR%%
25
@dirrm %%EXAMPLESDIR%%
26
@dirrm %%EXAMPLESDIR%%

Return to bug 145050