Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Aug 2010 10:04:12 GMT
From:      Emmanuel Vadot <elbarto@arcadebsd.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/149191: Update ports emulators/sdlmess : Update to 0.139 and repocopy to emulators/mess
Message-ID:  <201008021004.o72A4CcM007674@www.freebsd.org>
Resent-Message-ID: <201008021010.o72AA1Rr074626@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         149191
>Category:       ports
>Synopsis:       Update ports emulators/sdlmess : Update to 0.139 and repocopy to emulators/mess
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 02 10:10:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Emmanuel Vadot
>Release:        8.1-STABLE-i386
>Organization:
ArcadeBSD
>Environment:
FreeBSD emeraldas 8.1-STABLE FreeBSD 8.1-STABLE #3: Sun Aug  1 19:53:02 CEST 2010     elbarto@emeraldas:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
Update to 0.139
Please repocopy to emulators/mess (same reason as sdlmame/mame).

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -uNr /usr/ports/emulators/sdlmess/Makefile mess/Makefile
--- /usr/ports/emulators/sdlmess/Makefile	2010-08-01 20:08:28.000000000 +0200
+++ mess/Makefile	2010-08-01 23:42:07.000000000 +0200
@@ -5,28 +5,32 @@
 # $FreeBSD: ports/emulators/sdlmess/Makefile,v 1.29 2010/02/22 00:45:14 wen Exp $
 #
 
-PORTNAME=	sdlmess
-PORTVERSION=	0.136
+PORTNAME=	mess
+PORTVERSION=	0.139
 CATEGORIES=	emulators
-MASTER_SITES=	ftp://ftp.arcadebsd.org/pub/ArcadeBSD/ports/distfiles/
-DISTNAME=	${PORTNAME}${PORTVERSION:S/.//}
+MASTER_SITES=	http://www.aarongiles.com/mirror/releases/:mame \
+		http://www.mess.org/files/:mess \
+		ftp://ftp.arcadebsd.org/pub/ArcadeBSD/ports/distfiles/
+DISTFILES=	mame${PORTVERSION:S/.//}s.zip:mame \
+		mess${PORTVERSION:S/.//}s.zip:mess
 
 MAINTAINER=	elbarto@ArcadeBSD.org
-COMMENT=	SDL port of the popular MESS (Multiple Emulator Super System)
+COMMENT=	The popular MESS (Multiple Emulator Super System)
 
-FETCH_ENV=	HTTP_USER_AGENT=defined
 USE_ZIP=	yes
+NO_WRKSUBDIR=	yes
 USE_XORG=	xext xrender xinerama xi
 USE_GL=		gl
 USE_GNOME?=	gtk20 gconf2
 USE_GMAKE=	yes
-MAKE_ENV=	PTHREAD_LIBS="${PTHREAD_LIBS}"
+MAKE_ENV=	PTHREAD_LIBS="${PTHREAD_LIBS}" TARGET=mess
 USE_SDL=	sdl
-MAKEFILE=	makefile.sdl
+USE_GCC=	4.4+
+MAKEFILE=	makefile
 ONLY_FOR_ARCHS=	i386 amd64
 SUB_FILES=	pkg-message
 
-OPTIONS=	DEBUG "Build sdlmess debugger" off
+OPTIONS=	DEBUG "Build mess debugger" off
 
 .include <bsd.port.pre.mk>
 
@@ -35,7 +39,7 @@
 EXTRA_PATCHES+=		${FILESDIR}/sdl.mak.patch
 .endif
 
-MAKE_JOBS_UNSAFE=	yes
+MAKE_JOBS_SAFE=	yes
 
 .if ${ARCH} == "amd64"
 MAKE_ENV+=	PTR64=1
@@ -44,27 +48,29 @@
 BROKEN=		Does not compile on sparc64
 .endif
 
+post-extract:
+	@${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${WRKDIR}/mame.zip ${EXTRACT_AFTER_ARGS}
+	@${RM} -f ${WRKDIR}/mame.zip
+
 post-patch:
 	@${REINPLACE_CMD} -e "s|ui.bdf|${DATADIR}/ui.bdf|g" ${WRKSRC}/src/emu/ui.c
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
-	${MKDIR} ${PREFIX}/libexec/sdlmess
-	${INSTALL_PROGRAM} ${WRKSRC}/chdman ${PREFIX}/libexec/sdlmess
-	${INSTALL_PROGRAM} ${WRKSRC}/imgtool ${PREFIX}/libexec/sdlmess
-	${INSTALL_PROGRAM} ${WRKSRC}/jedutil ${PREFIX}/libexec/sdlmess
-	${INSTALL_PROGRAM} ${WRKSRC}/ldresample ${PREFIX}/libexec/sdlmess
-	${INSTALL_PROGRAM} ${WRKSRC}/ldverify ${PREFIX}/libexec/sdlmess
-	${INSTALL_PROGRAM} ${WRKSRC}/testkeys ${PREFIX}/libexec/sdlmess
-	${INSTALL_PROGRAM} ${WRKSRC}/unidasm ${PREFIX}/libexec/sdlmess
+	${MKDIR} ${PREFIX}/libexec/${PORTNAME}
+	${INSTALL_PROGRAM} ${WRKSRC}/chdman ${PREFIX}/libexec/${PORTNAME}
+	${INSTALL_PROGRAM} ${WRKSRC}/imgtool ${PREFIX}/libexec/${PORTNAME}
+	${INSTALL_PROGRAM} ${WRKSRC}/jedutil ${PREFIX}/libexec/${PORTNAME}
+	${INSTALL_PROGRAM} ${WRKSRC}/ldresample ${PREFIX}/libexec/${PORTNAME}
+	${INSTALL_PROGRAM} ${WRKSRC}/ldverify ${PREFIX}/libexec/${PORTNAME}
+	${INSTALL_PROGRAM} ${WRKSRC}/testkeys ${PREFIX}/libexec/${PORTNAME}
+	${INSTALL_PROGRAM} ${WRKSRC}/unidasm ${PREFIX}/libexec/${PORTNAME}
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
 	${CP} -R ${WRKSRC}/docs ${DOCSDIR}
 .endif
 	${MKDIR} ${DATADIR}
-	${CP} ${WRKSRC}/ui.bdf ${DATADIR}/
-	${CP} -R ${WRKSRC}/keymaps ${DATADIR}/
 	${CP} -R ${WRKSRC}/hash ${DATADIR}/
 	${CP} -R ${WRKSRC}/artwork ${DATADIR}/
 	${MKDIR} ${EXAMPLESDIR}
diff -uNr /usr/ports/emulators/sdlmess/distinfo mess/distinfo
--- /usr/ports/emulators/sdlmess/distinfo	2010-01-18 06:01:58.000000000 +0100
+++ mess/distinfo	2010-08-01 23:04:06.000000000 +0200
@@ -1,3 +1,6 @@
-MD5 (sdlmess0136.zip) = ad07a5df80f0f7a548f14703aa6ff756
-SHA256 (sdlmess0136.zip) = c8be6f3c939738370bcfabd629661691926d00ae0f70032d8f8379313dca88bb
-SIZE (sdlmess0136.zip) = 36705871
+MD5 (mame0139s.zip) = e9f81e86b786e0131eb6fb59e6bfe189
+SHA256 (mame0139s.zip) = e9dc268530b9a2b6fe17330af96dc5680dadba1b5e444bf7ef8fa1f15de7f3d6
+SIZE (mame0139s.zip) = 16706970
+MD5 (mess0139s.zip) = 21617dc50408612905c138ed2d6b2930
+SHA256 (mess0139s.zip) = def723e0e87c6b541c145c9a5c92d86187d530662fb88b186f0c596e1e1309ed
+SIZE (mess0139s.zip) = 18474426
diff -uNr /usr/ports/emulators/sdlmess/files/patch-debugcpu.c mess/files/patch-debugcpu.c
--- /usr/ports/emulators/sdlmess/files/patch-debugcpu.c	1970-01-01 01:00:00.000000000 +0100
+++ mess/files/patch-debugcpu.c	2010-08-01 23:32:00.000000000 +0200
@@ -0,0 +1,13 @@
+--- src/emu/debug/debugcpu.c.orig	2010-08-01 23:31:06.000000000 +0200
++++ src/emu/debug/debugcpu.c	2010-08-01 23:31:23.000000000 +0200
+@@ -49,7 +49,9 @@
+ #include "debugint/debugint.h"
+ #include "uiinput.h"
+ #include <ctype.h>
+-
++#ifdef __FreeBSD__
++#undef tolower
++#endif
+ 
+ 
+ /***************************************************************************
diff -uNr /usr/ports/emulators/sdlmess/files/patch-makefile mess/files/patch-makefile
--- /usr/ports/emulators/sdlmess/files/patch-makefile	1970-01-01 01:00:00.000000000 +0100
+++ mess/files/patch-makefile	2010-08-01 23:05:05.000000000 +0200
@@ -0,0 +1,22 @@
+--- makefile.orig	2010-08-01 23:04:35.000000000 +0200
++++ makefile	2010-08-01 23:04:58.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 -uNr /usr/ports/emulators/sdlmess/files/patch-makefile.sdl mess/files/patch-makefile.sdl
--- /usr/ports/emulators/sdlmess/files/patch-makefile.sdl	2009-11-26 15:26:46.000000000 +0100
+++ mess/files/patch-makefile.sdl	1970-01-01 01:00:00.000000000 +0100
@@ -1,57 +0,0 @@
---- makefile.sdl.orig	2009-09-17 02:49:53.000000000 +0200
-+++ makefile.sdl	2009-11-24 07:25:56.000000000 +0100
-@@ -59,7 +59,7 @@
- ifeq ($(OSD),windows)
- TARGETOS = win32
- else
--TARGETOS = unix
-+TARGETOS = freebsd
- endif
- endif
- 
-@@ -197,8 +197,8 @@
- 
- # compiler, linker and utilities
- AR = @ar
--CC = @gcc
--LD = @gcc
-+CC := @$(CC)
-+LD := @$(CC)
- MD = -mkdir$(EXE)
- RM = @rm -f
- 
-@@ -227,7 +227,7 @@
- endif
- 
- # fullname is prefix+name+suffix+debugsuffix
--FULLNAME = $(PREFIX)$(NAME)$(CPPSUFFIX)$(SUFFIX)$(DEBUGSUFFIX)
-+FULLNAME = sdl$(NAME)$(CPPSUFFIX)$(SUFFIX)$(DEBUGSUFFIX)
- 
- # add an EXE suffix to get the final emulator name
- EMULATOR = $(FULLNAME)$(EXE)
-@@ -338,7 +338,7 @@
- ifneq ($(OPTIMIZE),0)
- ifneq ($(TARGETOS),os2)
- ifndef IA64
--CCOMFLAGS += -Werror -fno-strict-aliasing $(ARCHOPTS)
-+CCOMFLAGS += -fno-strict-aliasing $(ARCHOPTS)
- else
- endif
- else
-@@ -382,6 +382,7 @@
- 	-I$(SRC)/lib/util \
- 	-I$(SRC)/osd \
- 	-I$(SRC)/osd/$(OSD) \
-+	-I$(LOCALBASE)/include \
- 
- 
- 
-@@ -395,7 +396,7 @@
- ifneq ($(TARGETOS),macosx)
- ifneq ($(TARGETOS),os2)
- ifneq ($(TARGETOS),solaris)
--LDFLAGS = -Wl,--warn-common
-+LDFLAGS = -Wl,--warn-common $(PTHREAD_LIBS) -L$(LOCALBASE)/lib
- endif
- endif
- endif
diff -uNr /usr/ports/emulators/sdlmess/files/sdl.mak.patch mess/files/sdl.mak.patch
--- /usr/ports/emulators/sdlmess/files/sdl.mak.patch	2009-11-26 15:26:46.000000000 +0100
+++ mess/files/sdl.mak.patch	2010-08-02 11:50:17.000000000 +0200
@@ -1,25 +1,32 @@
---- src/osd/sdl/sdl.mak.orig	2009-11-13 11:09:21.000000000 +0100
-+++ src/osd/sdl/sdl.mak	2009-11-13 11:10:24.000000000 +0100
-@@ -140,6 +140,7 @@
- endif
- 
- ifeq ($(TARGETOS),freebsd)
-+DEFS += -DNO_DEBUGGER
- TARGETOS = unix
- SYNC_IMPLEMENTATION = ntc
- endif
-@@ -288,10 +289,10 @@
- # the new debugger relies on GTK+ in addition to the base SDLMAME needs
- # Non-X11 builds can not use the debugger
- ifndef NO_X11
--OSDCOREOBJS += $(SDLOBJ)/debugwin.o $(SDLOBJ)/dview.o $(SDLOBJ)/debug-sup.o $(SDLOBJ)/debug-intf.o
--CFLAGS += `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gconf-2.0` 
--LIBS += `pkg-config --libs gtk+-2.0` `pkg-config --libs gconf-2.0`
--CFLAGS += -DGTK_DISABLE_DEPRECATED
-+OSDCOREOBJS += $(SDLOBJ)/debugwin.o
-+#CFLAGS += `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gconf-2.0` 
-+#LIBS += `pkg-config --libs gtk+-2.0` `pkg-config --libs gconf-2.0`
-+#CFLAGS += -DGTK_DISABLE_DEPRECATED
- else
- OSDCOREOBJS += $(SDLOBJ)/debugwin.o
- endif # NO_X11
+--- src/osd/sdl/sdl.mak.orig	2010-02-14 04:47:30.000000000 +0100
++++ src/osd/sdl/sdl.mak	2010-08-02 11:50:12.000000000 +0200
+@@ -139,7 +139,8 @@
+ ifeq ($(TARGETOS),freebsd)
+ BASE_TARGETOS = unix
+ SYNC_IMPLEMENTATION = tc
+-DEFS += -DNO_AFFINITY_NP
++DEFS += -DNO_AFFINITY_NP -DNO_DEBUGGER
++NO_DEBUGGER=1
+ # /usr/local/include is not considered a system include directory
+ # on FreeBSD. GL.h resides there and throws warnings
+ CCOMFLAGS += -isystem /usr/local/include
+@@ -304,7 +305,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
+@@ -454,8 +455,8 @@
+ 
+ # the new debugger relies on GTK+ in addition to the base SDLMAME needs
+ # Non-X11 builds can not use the debugger
+-CCOMFLAGS += `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gconf-2.0`
+-LIBS += `pkg-config --libs gtk+-2.0` `pkg-config --libs gconf-2.0`
++#CCOMFLAGS += `pkg-config --cflags gtk+-2.0` `pkg-config --cflags 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 -uNr /usr/ports/emulators/sdlmess/pkg-plist mess/pkg-plist
--- /usr/ports/emulators/sdlmess/pkg-plist	2010-01-18 06:01:58.000000000 +0100
+++ mess/pkg-plist	2010-08-01 23:45:58.000000000 +0200
@@ -1,12 +1,11 @@
-bin/sdlmess
-libexec/sdlmess/chdman
-libexec/sdlmess/imgtool
-libexec/sdlmess/jedutil
-libexec/sdlmess/ldresample
-libexec/sdlmess/ldverify
-libexec/sdlmess/testkeys
-libexec/sdlmess/unidasm
-%%PORTDOCS%%%%DOCSDIR%%/SDLMESS.txt
+bin/mess
+libexec/mess/chdman
+libexec/mess/imgtool
+libexec/mess/jedutil
+libexec/mess/ldresample
+libexec/mess/ldverify
+libexec/mess/testkeys
+libexec/mess/unidasm
 %%PORTDOCS%%%%DOCSDIR%%/whatsnew.txt
 %%PORTDOCS%%%%DOCSDIR%%/docs/config.txt
 %%PORTDOCS%%%%DOCSDIR%%/docs/credits.htm
@@ -18,7 +17,6 @@
 %%PORTDOCS%%%%DOCSDIR%%/docs/newvideo.txt
 %%PORTDOCS%%%%DOCSDIR%%/docs/windows.txt
 %%PORTDOCS%%%%DOCSDIR%%/docs/wintoc.xml
-%%PORTDOCS%%%%DOCSDIR%%/docs/images/logo.gif
 %%PORTDOCS%%%%DOCSDIR%%/docs/windows/choice.htm
 %%PORTDOCS%%%%DOCSDIR%%/docs/windows/compile.htm
 %%PORTDOCS%%%%DOCSDIR%%/docs/windows/config.htm
@@ -26,10 +24,8 @@
 %%PORTDOCS%%%%DOCSDIR%%/docs/windows/guiconf.htm
 %%PORTDOCS%%%%DOCSDIR%%/docs/windows/guiuse.htm
 %%PORTDOCS%%%%DOCSDIR%%/docs/windows/install.htm
-%%PORTDOCS%%%%DOCSDIR%%/docs/windows/instbios.htm
 %%PORTDOCS%%%%DOCSDIR%%/docs/windows/instroms.htm
 %%PORTDOCS%%%%DOCSDIR%%/docs/windows/main.htm
-%%PORTDOCS%%%%DOCSDIR%%/docs/windows/mgebios.htm
 %%PORTDOCS%%%%DOCSDIR%%/docs/windows/mgeroms.htm
 %%PORTDOCS%%%%DOCSDIR%%/docs/windows/osmenu.htm
 %%PORTDOCS%%%%DOCSDIR%%/docs/windows/runsw.htm
@@ -62,9 +58,6 @@
 %%DATADIR%%/artwork/dallas.zip
 %%DATADIR%%/artwork/dallas16.zip
 %%DATADIR%%/artwork/dallas32.zip
-%%DATADIR%%/artwork/dir.txt
-%%DATADIR%%/artwork/floppyr.png
-%%DATADIR%%/artwork/floppyw.png
 %%DATADIR%%/artwork/glasgow.zip
 %%DATADIR%%/artwork/hp48g.zip
 %%DATADIR%%/artwork/hp48gp.zip
@@ -73,8 +66,6 @@
 %%DATADIR%%/artwork/hp48sx.zip
 %%DATADIR%%/artwork/junior.zip
 %%DATADIR%%/artwork/kim1.zip
-%%DATADIR%%/artwork/ledoff.png
-%%DATADIR%%/artwork/ledon.png
 %%DATADIR%%/artwork/mk1.zip
 %%DATADIR%%/artwork/mk2.zip
 %%DATADIR%%/artwork/mm4.zip
@@ -82,14 +73,12 @@
 %%DATADIR%%/artwork/mm50.zip
 %%DATADIR%%/artwork/mpf1.zip
 %%DATADIR%%/artwork/mpf1b.zip
-%%DATADIR%%/artwork/nes.zip
 %%DATADIR%%/artwork/pc1401.zip
 %%DATADIR%%/artwork/pc1402.zip
 %%DATADIR%%/artwork/pc1403.zip
 %%DATADIR%%/artwork/rebel5.zip
 %%DATADIR%%/artwork/roma32.zip
 %%DATADIR%%/artwork/ssystem3.zip
-%%DATADIR%%/artwork/thomson.lay
 %%DATADIR%%/artwork/thomson.zip
 %%DATADIR%%/hash/a2600.hsi
 %%DATADIR%%/hash/a5200.hsi
@@ -117,7 +106,6 @@
 %%DATADIR%%/hash/channelf.hsi
 %%DATADIR%%/hash/coco.hsi
 %%DATADIR%%/hash/coleco.hsi
-%%DATADIR%%/hash/coupe.hsi
 %%DATADIR%%/hash/cpc464.hsi
 %%DATADIR%%/hash/cpc6128.hsi
 %%DATADIR%%/hash/dragon64.hsi
@@ -140,6 +128,7 @@
 %%DATADIR%%/hash/mc10.hsi
 %%DATADIR%%/hash/megaduck.hsi
 %%DATADIR%%/hash/microtan.hsi
+%%DATADIR%%/hash/mo5.hsi
 %%DATADIR%%/hash/msx.hsi
 %%DATADIR%%/hash/msx2.hsi
 %%DATADIR%%/hash/mtx512.hsi
@@ -165,26 +154,18 @@
 %%DATADIR%%/hash/svision.hsi
 %%DATADIR%%/hash/ti99_4a.hsi
 %%DATADIR%%/hash/ts2068.hsi
+%%DATADIR%%/hash/vboy.hsi
 %%DATADIR%%/hash/vc4000.hsi
 %%DATADIR%%/hash/vectrex.hsi
 %%DATADIR%%/hash/vic20.hsi
 %%DATADIR%%/hash/wswan.hsi
-%%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
-%%DATADIR%%/ui.bdf
 %%EXAMPLESDIR%%/mess.ini
 @dirrm %%DATADIR%%/artwork
 @dirrm %%DATADIR%%/hash
-@dirrm %%DATADIR%%/keymaps
 @dirrm %%DATADIR%%
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/docs/images
 %%PORTDOCS%%@dirrm %%DOCSDIR%%/docs/windows/images
 %%PORTDOCS%%@dirrm %%DOCSDIR%%/docs/windows
 %%PORTDOCS%%@dirrm %%DOCSDIR%%/docs
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
 @dirrm %%EXAMPLESDIR%%
-@dirrm libexec/sdlmess
+@dirrm libexec/mess


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008021004.o72A4CcM007674>