1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

- Update to version 0.117.

This commit is contained in:
Alejandro Pulver 2007-07-24 13:49:50 +00:00
parent 2f084025fa
commit 948cf03107
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=196200
16 changed files with 212 additions and 444 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= sdlmame
PORTVERSION= 0.115u2
PORTVERSION= 0.117
CATEGORIES= emulators
MASTER_SITES= http://rbelmont.mameworld.info/
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}
@ -25,8 +25,8 @@ SUB_FILES= ${PORTNAME} pkg-message
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
${MKDIR} ${PREFIX}/libexec/${PORTNAME}
.for f in obj/mame/file2str obj/mame/png2bdc mame testkeys romcmp chdman \
jedutil makemeta regrep srcclean
.for f in obj/sdl/mame/file2str obj/sdl/mame/png2bdc mame testkeys romcmp \
chdman jedutil makemeta regrep srcclean
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/libexec/${PORTNAME}
.endfor
${MKDIR} ${DATADIR}

View File

@ -1,3 +1,3 @@
MD5 (sdlmame0115u2.zip) = bcd9c225e248d0a629c4c50178f5d7fd
SHA256 (sdlmame0115u2.zip) = 66d2e7e61aeab2cd352d6f89dcc355bf30f668296cd4e25d671f8cd9a048e229
SIZE (sdlmame0115u2.zip) = 15362091
MD5 (sdlmame0117.zip) = dfda8c92853c72e7a6bbae8e686e8cf6
SHA256 (sdlmame0117.zip) = 083cbac7b8b906431e675933473ce10da654ad5c8a380ca8d5be920f32394526
SIZE (sdlmame0117.zip) = 15453659

View File

@ -1,20 +1,19 @@
--- makefile.orig Thu Apr 12 22:01:33 2007
+++ makefile Sat Apr 21 13:20:41 2007
@@ -63,11 +63,13 @@
# uncomment next line to include the debugger
# DEBUG = 1
+ifeq ($(ARCH),i386)
--- makefile.orig Thu Jun 28 14:55:46 2007
+++ makefile Fri Jul 20 14:47:57 2007
@@ -70,10 +70,12 @@
# DEBUG = 1
# uncomment next line to use DRC MIPS3 engine
+ifeq ($(ARCH),i386)
X86_MIPS3_DRC = 1
# uncomment next line to use DRC PowerPC engine
X86_PPC_DRC = 1
+endif
#-------------------------------------------------
# specify build options; see each option below
@@ -174,8 +176,8 @@
# uncomment next line to use DRC Voodoo rasterizers
# X86_VOODOO_DRC = 1
@@ -157,8 +159,8 @@
# compiler, linker and utilities
AR = @ar
@ -22,111 +21,55 @@
-LD = @gcc
+CC := @$(CC)
+LD = @$(CC)
MD = -mkdir
MD = -mkdir$(EXE)
RM = @rm -f
@@ -191,53 +193,12 @@
@@ -237,7 +239,7 @@
endif
# by default, don't compile for a specific target CPU
-NAME = $(PREFIX)$(TARGET)
-ARCH =
-
-# architecture-specific builds get extra options
-ifdef ATHLON
-NAME = $(PREFIX)$(TARGET)at
-ARCH = -march=athlon
-endif
-
-ifdef I686
-NAME = $(PREFIX)$(TARGET)pp
-ARCH = -march=pentiumpro
-endif
-
-ifdef P4
-NAME = $(PREFIX)$(TARGET)p4
-ARCH = -march=pentium4
-endif
-
-ifdef AMD64
-NAME = $(PREFIX)$(TARGET)64
-ARCH = -march=athlon64
-endif
-
-ifdef PM
-NAME = $(PREFIX)$(TARGET)pm
-ARCH = -march=pentium3 -msse2
-endif
-
-ifdef G4
-NAME = $(PREFIX)$(TARGET)g4
-ARCH = -mcpu=G4
-endif
-
-ifdef G5
-NAME = $(PREFIX)$(TARGET)g5
-ARCH = -mcpu=G5
-endif
-
-ifdef CELL
-NAME = $(PREFIX)$(TARGET)cbe
+NAME = $(TARGET)
ARCH =
-endif
# fullname is prefix+name+suffix
-FULLNAME = $(PREFIX)$(NAME)$(SUFFIX)
+FULLNAME = $(NAME)$(SUFFIX)
# debug builds just get the 'd' suffix and nothing more
ifdef DEBUG
-NAME = $(PREFIX)$(TARGET)d
+NAME = $(TARGET)d
endif
EMULATOR = $(NAME)$(EXE)
@@ -275,7 +236,7 @@
# compile and linking flags
# add an EXE suffix to get the final emulator name
EMULATOR = $(FULLNAME)$(EXE)
@@ -302,7 +304,7 @@
#-------------------------------------------------
-CFLAGS = \
+CFLAGS += \
$(OPT_FLAGS) \
-std=gnu89 \
-I$(SRC)/$(TARGET) \
@@ -287,6 +248,7 @@
# we compile to C89 standard with GNU extensions
-CFLAGS = -std=gnu89
+CFLAGS += -std=gnu89
# add -g if we need symbols
ifdef SYMBOLS
@@ -333,12 +335,11 @@
# and make all errors into warnings
# but not on 64-bit or debug builds
ifneq ($(OPTIMIZE),0)
-CFLAGS += $(ARCH) -fno-strict-aliasing
+CFLAGS += -fno-strict-aliasing
# only -Werror if not PTR64 and not DEBUG
ifndef PTR64
ifndef DEBUG
-CFLAGS += -Werror
endif # !DEBUG
endif # !PTR64
endif # neq OPTIMIZE
@@ -358,6 +359,7 @@
-I$(SRC)/lib/util \
-I$(SRC)/osd \
-I$(SRC)/osd/$(MAMEOS) \
+ -I$(LOCALBASE)/include -I$(X11BASE)/include
-I$(SRC)/osd/$(OSD) \
+ -I$(LOCALBASE)/include
ifdef MESS
CFLAGS += \
@@ -305,7 +267,7 @@
endif # PPC
endif # SYMBOLS
-CFLAGS += $(ARCH) \
+CFLAGS += \
-Wall \
-Wpointer-arith \
-Wbad-function-cast \
@@ -317,7 +279,7 @@
-Wdeclaration-after-statement
ifneq ($(OPTIMIZE),0)
-CFLAGS += -DNDEBUG $(ARCH) -fno-strict-aliasing
+CFLAGS += -DNDEBUG -fno-strict-aliasing
endif
@@ -367,7 +369,7 @@
CFLAGS += -O$(OPTIMIZE)
@@ -325,11 +287,9 @@
# extra options needed *only* for the osd files
CFLAGSOSDEPEND = $(CFLAGS)
-LDFLAGS = -WO
+LDFLAGS += -WO -L$(LOCALBASE)/lib -L$(X11BASE)/lib
-ifdef SYMBOLS
# LDFLAGS are used generally; LDFLAGSEMULATOR are additional
# flags only used when linking the core emulator
-LDFLAGS =
-else
+ifndef SYMBOLS
LDFLAGS += -s
endif
+LDFLAGS += -L$(LOCALBASE)/lib
LDFLAGSEMULATOR =
# strip symbols and other metadata in non-symbols builds

View File

@ -10,14 +10,13 @@ libexec/sdlmame/romcmp
libexec/sdlmame/srcclean
libexec/sdlmame/testkeys
%%PORTDOCS%%%%DOCSDIR%%/SDLMAME.txt
%%PORTDOCS%%%%DOCSDIR%%/cheats.txt
%%PORTDOCS%%%%DOCSDIR%%/docs/license.txt
%%PORTDOCS%%%%DOCSDIR%%/docs/mame.txt
%%PORTDOCS%%%%DOCSDIR%%/docs/newvideo.txt
%%PORTDOCS%%%%DOCSDIR%%/docs/windows.txt
%%PORTDOCS%%%%DOCSDIR%%/whatsnew.txt
%%PORTDOCS%%%%DOCSDIR%%/whatsnew_0115u2.txt
%%DATADIR%%/keymaps/km-ch.txt
%%DATADIR%%/keymaps/km-de.txt
%%DATADIR%%/keymaps/km-fr-OSX.txt
%%DATADIR%%/keymaps/km-fr.txt
%%DATADIR%%/ui.bdf

View File

@ -6,7 +6,7 @@
#
PORTNAME= sdlmame
PORTVERSION= 0.115u2
PORTVERSION= 0.117
CATEGORIES= emulators
MASTER_SITES= http://rbelmont.mameworld.info/
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}
@ -25,8 +25,8 @@ SUB_FILES= ${PORTNAME} pkg-message
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
${MKDIR} ${PREFIX}/libexec/${PORTNAME}
.for f in obj/mame/file2str obj/mame/png2bdc mame testkeys romcmp chdman \
jedutil makemeta regrep srcclean
.for f in obj/sdl/mame/file2str obj/sdl/mame/png2bdc mame testkeys romcmp \
chdman jedutil makemeta regrep srcclean
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/libexec/${PORTNAME}
.endfor
${MKDIR} ${DATADIR}

View File

@ -1,3 +1,3 @@
MD5 (sdlmame0115u2.zip) = bcd9c225e248d0a629c4c50178f5d7fd
SHA256 (sdlmame0115u2.zip) = 66d2e7e61aeab2cd352d6f89dcc355bf30f668296cd4e25d671f8cd9a048e229
SIZE (sdlmame0115u2.zip) = 15362091
MD5 (sdlmame0117.zip) = dfda8c92853c72e7a6bbae8e686e8cf6
SHA256 (sdlmame0117.zip) = 083cbac7b8b906431e675933473ce10da654ad5c8a380ca8d5be920f32394526
SIZE (sdlmame0117.zip) = 15453659

View File

@ -1,20 +1,19 @@
--- makefile.orig Thu Apr 12 22:01:33 2007
+++ makefile Sat Apr 21 13:20:41 2007
@@ -63,11 +63,13 @@
# uncomment next line to include the debugger
# DEBUG = 1
+ifeq ($(ARCH),i386)
--- makefile.orig Thu Jun 28 14:55:46 2007
+++ makefile Fri Jul 20 14:47:57 2007
@@ -70,10 +70,12 @@
# DEBUG = 1
# uncomment next line to use DRC MIPS3 engine
+ifeq ($(ARCH),i386)
X86_MIPS3_DRC = 1
# uncomment next line to use DRC PowerPC engine
X86_PPC_DRC = 1
+endif
#-------------------------------------------------
# specify build options; see each option below
@@ -174,8 +176,8 @@
# uncomment next line to use DRC Voodoo rasterizers
# X86_VOODOO_DRC = 1
@@ -157,8 +159,8 @@
# compiler, linker and utilities
AR = @ar
@ -22,111 +21,55 @@
-LD = @gcc
+CC := @$(CC)
+LD = @$(CC)
MD = -mkdir
MD = -mkdir$(EXE)
RM = @rm -f
@@ -191,53 +193,12 @@
@@ -237,7 +239,7 @@
endif
# by default, don't compile for a specific target CPU
-NAME = $(PREFIX)$(TARGET)
-ARCH =
-
-# architecture-specific builds get extra options
-ifdef ATHLON
-NAME = $(PREFIX)$(TARGET)at
-ARCH = -march=athlon
-endif
-
-ifdef I686
-NAME = $(PREFIX)$(TARGET)pp
-ARCH = -march=pentiumpro
-endif
-
-ifdef P4
-NAME = $(PREFIX)$(TARGET)p4
-ARCH = -march=pentium4
-endif
-
-ifdef AMD64
-NAME = $(PREFIX)$(TARGET)64
-ARCH = -march=athlon64
-endif
-
-ifdef PM
-NAME = $(PREFIX)$(TARGET)pm
-ARCH = -march=pentium3 -msse2
-endif
-
-ifdef G4
-NAME = $(PREFIX)$(TARGET)g4
-ARCH = -mcpu=G4
-endif
-
-ifdef G5
-NAME = $(PREFIX)$(TARGET)g5
-ARCH = -mcpu=G5
-endif
-
-ifdef CELL
-NAME = $(PREFIX)$(TARGET)cbe
+NAME = $(TARGET)
ARCH =
-endif
# fullname is prefix+name+suffix
-FULLNAME = $(PREFIX)$(NAME)$(SUFFIX)
+FULLNAME = $(NAME)$(SUFFIX)
# debug builds just get the 'd' suffix and nothing more
ifdef DEBUG
-NAME = $(PREFIX)$(TARGET)d
+NAME = $(TARGET)d
endif
EMULATOR = $(NAME)$(EXE)
@@ -275,7 +236,7 @@
# compile and linking flags
# add an EXE suffix to get the final emulator name
EMULATOR = $(FULLNAME)$(EXE)
@@ -302,7 +304,7 @@
#-------------------------------------------------
-CFLAGS = \
+CFLAGS += \
$(OPT_FLAGS) \
-std=gnu89 \
-I$(SRC)/$(TARGET) \
@@ -287,6 +248,7 @@
# we compile to C89 standard with GNU extensions
-CFLAGS = -std=gnu89
+CFLAGS += -std=gnu89
# add -g if we need symbols
ifdef SYMBOLS
@@ -333,12 +335,11 @@
# and make all errors into warnings
# but not on 64-bit or debug builds
ifneq ($(OPTIMIZE),0)
-CFLAGS += $(ARCH) -fno-strict-aliasing
+CFLAGS += -fno-strict-aliasing
# only -Werror if not PTR64 and not DEBUG
ifndef PTR64
ifndef DEBUG
-CFLAGS += -Werror
endif # !DEBUG
endif # !PTR64
endif # neq OPTIMIZE
@@ -358,6 +359,7 @@
-I$(SRC)/lib/util \
-I$(SRC)/osd \
-I$(SRC)/osd/$(MAMEOS) \
+ -I$(LOCALBASE)/include -I$(X11BASE)/include
-I$(SRC)/osd/$(OSD) \
+ -I$(LOCALBASE)/include
ifdef MESS
CFLAGS += \
@@ -305,7 +267,7 @@
endif # PPC
endif # SYMBOLS
-CFLAGS += $(ARCH) \
+CFLAGS += \
-Wall \
-Wpointer-arith \
-Wbad-function-cast \
@@ -317,7 +279,7 @@
-Wdeclaration-after-statement
ifneq ($(OPTIMIZE),0)
-CFLAGS += -DNDEBUG $(ARCH) -fno-strict-aliasing
+CFLAGS += -DNDEBUG -fno-strict-aliasing
endif
@@ -367,7 +369,7 @@
CFLAGS += -O$(OPTIMIZE)
@@ -325,11 +287,9 @@
# extra options needed *only* for the osd files
CFLAGSOSDEPEND = $(CFLAGS)
-LDFLAGS = -WO
+LDFLAGS += -WO -L$(LOCALBASE)/lib -L$(X11BASE)/lib
-ifdef SYMBOLS
# LDFLAGS are used generally; LDFLAGSEMULATOR are additional
# flags only used when linking the core emulator
-LDFLAGS =
-else
+ifndef SYMBOLS
LDFLAGS += -s
endif
+LDFLAGS += -L$(LOCALBASE)/lib
LDFLAGSEMULATOR =
# strip symbols and other metadata in non-symbols builds

View File

@ -10,14 +10,13 @@ libexec/sdlmame/romcmp
libexec/sdlmame/srcclean
libexec/sdlmame/testkeys
%%PORTDOCS%%%%DOCSDIR%%/SDLMAME.txt
%%PORTDOCS%%%%DOCSDIR%%/cheats.txt
%%PORTDOCS%%%%DOCSDIR%%/docs/license.txt
%%PORTDOCS%%%%DOCSDIR%%/docs/mame.txt
%%PORTDOCS%%%%DOCSDIR%%/docs/newvideo.txt
%%PORTDOCS%%%%DOCSDIR%%/docs/windows.txt
%%PORTDOCS%%%%DOCSDIR%%/whatsnew.txt
%%PORTDOCS%%%%DOCSDIR%%/whatsnew_0115u2.txt
%%DATADIR%%/keymaps/km-ch.txt
%%DATADIR%%/keymaps/km-de.txt
%%DATADIR%%/keymaps/km-fr-OSX.txt
%%DATADIR%%/keymaps/km-fr.txt
%%DATADIR%%/ui.bdf

View File

@ -6,7 +6,7 @@
#
PORTNAME= sdlmame
PORTVERSION= 0.115u2
PORTVERSION= 0.117
CATEGORIES= emulators
MASTER_SITES= http://rbelmont.mameworld.info/
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}
@ -25,8 +25,8 @@ SUB_FILES= ${PORTNAME} pkg-message
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
${MKDIR} ${PREFIX}/libexec/${PORTNAME}
.for f in obj/mame/file2str obj/mame/png2bdc mame testkeys romcmp chdman \
jedutil makemeta regrep srcclean
.for f in obj/sdl/mame/file2str obj/sdl/mame/png2bdc mame testkeys romcmp \
chdman jedutil makemeta regrep srcclean
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/libexec/${PORTNAME}
.endfor
${MKDIR} ${DATADIR}

View File

@ -1,3 +1,3 @@
MD5 (sdlmame0115u2.zip) = bcd9c225e248d0a629c4c50178f5d7fd
SHA256 (sdlmame0115u2.zip) = 66d2e7e61aeab2cd352d6f89dcc355bf30f668296cd4e25d671f8cd9a048e229
SIZE (sdlmame0115u2.zip) = 15362091
MD5 (sdlmame0117.zip) = dfda8c92853c72e7a6bbae8e686e8cf6
SHA256 (sdlmame0117.zip) = 083cbac7b8b906431e675933473ce10da654ad5c8a380ca8d5be920f32394526
SIZE (sdlmame0117.zip) = 15453659

View File

@ -1,20 +1,19 @@
--- makefile.orig Thu Apr 12 22:01:33 2007
+++ makefile Sat Apr 21 13:20:41 2007
@@ -63,11 +63,13 @@
# uncomment next line to include the debugger
# DEBUG = 1
+ifeq ($(ARCH),i386)
--- makefile.orig Thu Jun 28 14:55:46 2007
+++ makefile Fri Jul 20 14:47:57 2007
@@ -70,10 +70,12 @@
# DEBUG = 1
# uncomment next line to use DRC MIPS3 engine
+ifeq ($(ARCH),i386)
X86_MIPS3_DRC = 1
# uncomment next line to use DRC PowerPC engine
X86_PPC_DRC = 1
+endif
#-------------------------------------------------
# specify build options; see each option below
@@ -174,8 +176,8 @@
# uncomment next line to use DRC Voodoo rasterizers
# X86_VOODOO_DRC = 1
@@ -157,8 +159,8 @@
# compiler, linker and utilities
AR = @ar
@ -22,111 +21,55 @@
-LD = @gcc
+CC := @$(CC)
+LD = @$(CC)
MD = -mkdir
MD = -mkdir$(EXE)
RM = @rm -f
@@ -191,53 +193,12 @@
@@ -237,7 +239,7 @@
endif
# by default, don't compile for a specific target CPU
-NAME = $(PREFIX)$(TARGET)
-ARCH =
-
-# architecture-specific builds get extra options
-ifdef ATHLON
-NAME = $(PREFIX)$(TARGET)at
-ARCH = -march=athlon
-endif
-
-ifdef I686
-NAME = $(PREFIX)$(TARGET)pp
-ARCH = -march=pentiumpro
-endif
-
-ifdef P4
-NAME = $(PREFIX)$(TARGET)p4
-ARCH = -march=pentium4
-endif
-
-ifdef AMD64
-NAME = $(PREFIX)$(TARGET)64
-ARCH = -march=athlon64
-endif
-
-ifdef PM
-NAME = $(PREFIX)$(TARGET)pm
-ARCH = -march=pentium3 -msse2
-endif
-
-ifdef G4
-NAME = $(PREFIX)$(TARGET)g4
-ARCH = -mcpu=G4
-endif
-
-ifdef G5
-NAME = $(PREFIX)$(TARGET)g5
-ARCH = -mcpu=G5
-endif
-
-ifdef CELL
-NAME = $(PREFIX)$(TARGET)cbe
+NAME = $(TARGET)
ARCH =
-endif
# fullname is prefix+name+suffix
-FULLNAME = $(PREFIX)$(NAME)$(SUFFIX)
+FULLNAME = $(NAME)$(SUFFIX)
# debug builds just get the 'd' suffix and nothing more
ifdef DEBUG
-NAME = $(PREFIX)$(TARGET)d
+NAME = $(TARGET)d
endif
EMULATOR = $(NAME)$(EXE)
@@ -275,7 +236,7 @@
# compile and linking flags
# add an EXE suffix to get the final emulator name
EMULATOR = $(FULLNAME)$(EXE)
@@ -302,7 +304,7 @@
#-------------------------------------------------
-CFLAGS = \
+CFLAGS += \
$(OPT_FLAGS) \
-std=gnu89 \
-I$(SRC)/$(TARGET) \
@@ -287,6 +248,7 @@
# we compile to C89 standard with GNU extensions
-CFLAGS = -std=gnu89
+CFLAGS += -std=gnu89
# add -g if we need symbols
ifdef SYMBOLS
@@ -333,12 +335,11 @@
# and make all errors into warnings
# but not on 64-bit or debug builds
ifneq ($(OPTIMIZE),0)
-CFLAGS += $(ARCH) -fno-strict-aliasing
+CFLAGS += -fno-strict-aliasing
# only -Werror if not PTR64 and not DEBUG
ifndef PTR64
ifndef DEBUG
-CFLAGS += -Werror
endif # !DEBUG
endif # !PTR64
endif # neq OPTIMIZE
@@ -358,6 +359,7 @@
-I$(SRC)/lib/util \
-I$(SRC)/osd \
-I$(SRC)/osd/$(MAMEOS) \
+ -I$(LOCALBASE)/include -I$(X11BASE)/include
-I$(SRC)/osd/$(OSD) \
+ -I$(LOCALBASE)/include
ifdef MESS
CFLAGS += \
@@ -305,7 +267,7 @@
endif # PPC
endif # SYMBOLS
-CFLAGS += $(ARCH) \
+CFLAGS += \
-Wall \
-Wpointer-arith \
-Wbad-function-cast \
@@ -317,7 +279,7 @@
-Wdeclaration-after-statement
ifneq ($(OPTIMIZE),0)
-CFLAGS += -DNDEBUG $(ARCH) -fno-strict-aliasing
+CFLAGS += -DNDEBUG -fno-strict-aliasing
endif
@@ -367,7 +369,7 @@
CFLAGS += -O$(OPTIMIZE)
@@ -325,11 +287,9 @@
# extra options needed *only* for the osd files
CFLAGSOSDEPEND = $(CFLAGS)
-LDFLAGS = -WO
+LDFLAGS += -WO -L$(LOCALBASE)/lib -L$(X11BASE)/lib
-ifdef SYMBOLS
# LDFLAGS are used generally; LDFLAGSEMULATOR are additional
# flags only used when linking the core emulator
-LDFLAGS =
-else
+ifndef SYMBOLS
LDFLAGS += -s
endif
+LDFLAGS += -L$(LOCALBASE)/lib
LDFLAGSEMULATOR =
# strip symbols and other metadata in non-symbols builds

View File

@ -10,14 +10,13 @@ libexec/sdlmame/romcmp
libexec/sdlmame/srcclean
libexec/sdlmame/testkeys
%%PORTDOCS%%%%DOCSDIR%%/SDLMAME.txt
%%PORTDOCS%%%%DOCSDIR%%/cheats.txt
%%PORTDOCS%%%%DOCSDIR%%/docs/license.txt
%%PORTDOCS%%%%DOCSDIR%%/docs/mame.txt
%%PORTDOCS%%%%DOCSDIR%%/docs/newvideo.txt
%%PORTDOCS%%%%DOCSDIR%%/docs/windows.txt
%%PORTDOCS%%%%DOCSDIR%%/whatsnew.txt
%%PORTDOCS%%%%DOCSDIR%%/whatsnew_0115u2.txt
%%DATADIR%%/keymaps/km-ch.txt
%%DATADIR%%/keymaps/km-de.txt
%%DATADIR%%/keymaps/km-fr-OSX.txt
%%DATADIR%%/keymaps/km-fr.txt
%%DATADIR%%/ui.bdf

View File

@ -6,7 +6,7 @@
#
PORTNAME= sdlmame
PORTVERSION= 0.115u2
PORTVERSION= 0.117
CATEGORIES= emulators
MASTER_SITES= http://rbelmont.mameworld.info/
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}
@ -25,8 +25,8 @@ SUB_FILES= ${PORTNAME} pkg-message
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
${MKDIR} ${PREFIX}/libexec/${PORTNAME}
.for f in obj/mame/file2str obj/mame/png2bdc mame testkeys romcmp chdman \
jedutil makemeta regrep srcclean
.for f in obj/sdl/mame/file2str obj/sdl/mame/png2bdc mame testkeys romcmp \
chdman jedutil makemeta regrep srcclean
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/libexec/${PORTNAME}
.endfor
${MKDIR} ${DATADIR}

View File

@ -1,3 +1,3 @@
MD5 (sdlmame0115u2.zip) = bcd9c225e248d0a629c4c50178f5d7fd
SHA256 (sdlmame0115u2.zip) = 66d2e7e61aeab2cd352d6f89dcc355bf30f668296cd4e25d671f8cd9a048e229
SIZE (sdlmame0115u2.zip) = 15362091
MD5 (sdlmame0117.zip) = dfda8c92853c72e7a6bbae8e686e8cf6
SHA256 (sdlmame0117.zip) = 083cbac7b8b906431e675933473ce10da654ad5c8a380ca8d5be920f32394526
SIZE (sdlmame0117.zip) = 15453659

View File

@ -1,20 +1,19 @@
--- makefile.orig Thu Apr 12 22:01:33 2007
+++ makefile Sat Apr 21 13:20:41 2007
@@ -63,11 +63,13 @@
# uncomment next line to include the debugger
# DEBUG = 1
+ifeq ($(ARCH),i386)
--- makefile.orig Thu Jun 28 14:55:46 2007
+++ makefile Fri Jul 20 14:47:57 2007
@@ -70,10 +70,12 @@
# DEBUG = 1
# uncomment next line to use DRC MIPS3 engine
+ifeq ($(ARCH),i386)
X86_MIPS3_DRC = 1
# uncomment next line to use DRC PowerPC engine
X86_PPC_DRC = 1
+endif
#-------------------------------------------------
# specify build options; see each option below
@@ -174,8 +176,8 @@
# uncomment next line to use DRC Voodoo rasterizers
# X86_VOODOO_DRC = 1
@@ -157,8 +159,8 @@
# compiler, linker and utilities
AR = @ar
@ -22,111 +21,55 @@
-LD = @gcc
+CC := @$(CC)
+LD = @$(CC)
MD = -mkdir
MD = -mkdir$(EXE)
RM = @rm -f
@@ -191,53 +193,12 @@
@@ -237,7 +239,7 @@
endif
# by default, don't compile for a specific target CPU
-NAME = $(PREFIX)$(TARGET)
-ARCH =
-
-# architecture-specific builds get extra options
-ifdef ATHLON
-NAME = $(PREFIX)$(TARGET)at
-ARCH = -march=athlon
-endif
-
-ifdef I686
-NAME = $(PREFIX)$(TARGET)pp
-ARCH = -march=pentiumpro
-endif
-
-ifdef P4
-NAME = $(PREFIX)$(TARGET)p4
-ARCH = -march=pentium4
-endif
-
-ifdef AMD64
-NAME = $(PREFIX)$(TARGET)64
-ARCH = -march=athlon64
-endif
-
-ifdef PM
-NAME = $(PREFIX)$(TARGET)pm
-ARCH = -march=pentium3 -msse2
-endif
-
-ifdef G4
-NAME = $(PREFIX)$(TARGET)g4
-ARCH = -mcpu=G4
-endif
-
-ifdef G5
-NAME = $(PREFIX)$(TARGET)g5
-ARCH = -mcpu=G5
-endif
-
-ifdef CELL
-NAME = $(PREFIX)$(TARGET)cbe
+NAME = $(TARGET)
ARCH =
-endif
# fullname is prefix+name+suffix
-FULLNAME = $(PREFIX)$(NAME)$(SUFFIX)
+FULLNAME = $(NAME)$(SUFFIX)
# debug builds just get the 'd' suffix and nothing more
ifdef DEBUG
-NAME = $(PREFIX)$(TARGET)d
+NAME = $(TARGET)d
endif
EMULATOR = $(NAME)$(EXE)
@@ -275,7 +236,7 @@
# compile and linking flags
# add an EXE suffix to get the final emulator name
EMULATOR = $(FULLNAME)$(EXE)
@@ -302,7 +304,7 @@
#-------------------------------------------------
-CFLAGS = \
+CFLAGS += \
$(OPT_FLAGS) \
-std=gnu89 \
-I$(SRC)/$(TARGET) \
@@ -287,6 +248,7 @@
# we compile to C89 standard with GNU extensions
-CFLAGS = -std=gnu89
+CFLAGS += -std=gnu89
# add -g if we need symbols
ifdef SYMBOLS
@@ -333,12 +335,11 @@
# and make all errors into warnings
# but not on 64-bit or debug builds
ifneq ($(OPTIMIZE),0)
-CFLAGS += $(ARCH) -fno-strict-aliasing
+CFLAGS += -fno-strict-aliasing
# only -Werror if not PTR64 and not DEBUG
ifndef PTR64
ifndef DEBUG
-CFLAGS += -Werror
endif # !DEBUG
endif # !PTR64
endif # neq OPTIMIZE
@@ -358,6 +359,7 @@
-I$(SRC)/lib/util \
-I$(SRC)/osd \
-I$(SRC)/osd/$(MAMEOS) \
+ -I$(LOCALBASE)/include -I$(X11BASE)/include
-I$(SRC)/osd/$(OSD) \
+ -I$(LOCALBASE)/include
ifdef MESS
CFLAGS += \
@@ -305,7 +267,7 @@
endif # PPC
endif # SYMBOLS
-CFLAGS += $(ARCH) \
+CFLAGS += \
-Wall \
-Wpointer-arith \
-Wbad-function-cast \
@@ -317,7 +279,7 @@
-Wdeclaration-after-statement
ifneq ($(OPTIMIZE),0)
-CFLAGS += -DNDEBUG $(ARCH) -fno-strict-aliasing
+CFLAGS += -DNDEBUG -fno-strict-aliasing
endif
@@ -367,7 +369,7 @@
CFLAGS += -O$(OPTIMIZE)
@@ -325,11 +287,9 @@
# extra options needed *only* for the osd files
CFLAGSOSDEPEND = $(CFLAGS)
-LDFLAGS = -WO
+LDFLAGS += -WO -L$(LOCALBASE)/lib -L$(X11BASE)/lib
-ifdef SYMBOLS
# LDFLAGS are used generally; LDFLAGSEMULATOR are additional
# flags only used when linking the core emulator
-LDFLAGS =
-else
+ifndef SYMBOLS
LDFLAGS += -s
endif
+LDFLAGS += -L$(LOCALBASE)/lib
LDFLAGSEMULATOR =
# strip symbols and other metadata in non-symbols builds

View File

@ -10,14 +10,13 @@ libexec/sdlmame/romcmp
libexec/sdlmame/srcclean
libexec/sdlmame/testkeys
%%PORTDOCS%%%%DOCSDIR%%/SDLMAME.txt
%%PORTDOCS%%%%DOCSDIR%%/cheats.txt
%%PORTDOCS%%%%DOCSDIR%%/docs/license.txt
%%PORTDOCS%%%%DOCSDIR%%/docs/mame.txt
%%PORTDOCS%%%%DOCSDIR%%/docs/newvideo.txt
%%PORTDOCS%%%%DOCSDIR%%/docs/windows.txt
%%PORTDOCS%%%%DOCSDIR%%/whatsnew.txt
%%PORTDOCS%%%%DOCSDIR%%/whatsnew_0115u2.txt
%%DATADIR%%/keymaps/km-ch.txt
%%DATADIR%%/keymaps/km-de.txt
%%DATADIR%%/keymaps/km-fr-OSX.txt
%%DATADIR%%/keymaps/km-fr.txt
%%DATADIR%%/ui.bdf