Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Aug 2014 08:13:29 +0000 (UTC)
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r363691 - in head/emulators: mame mame/files mess mess/files
Message-ID:  <201408010813.s718DT9S049133@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: madpilot
Date: Fri Aug  1 08:13:29 2014
New Revision: 363691
URL: http://svnweb.freebsd.org/changeset/ports/363691
QAT: https://qat.redports.org/buildarchive/r363691/

Log:
  Update mame/mess to 0.154
  
  PR:		188861
  Submitted by:	Ports Fury

Added:
  head/emulators/mame/files/patch-src__lib__lib7z__CpuArch.h   (contents, props changed)
  head/emulators/mame/files/patch-src__lib__lua__luaconf.h   (contents, props changed)
  head/emulators/mame/files/patch-src__osd__eigccx86.h   (contents, props changed)
  head/emulators/mame/files/patch-src__osd__eminline.h   (contents, props changed)
  head/emulators/mame/files/patch-src__osd__sdl__osinline.h   (contents, props changed)
  head/emulators/mame/files/patch-src__osd__sdl__sdlsync_ntc.c   (contents, props changed)
  head/emulators/mame/files/patch-src__osd__sdl__sdlsync_os2.c   (contents, props changed)
  head/emulators/mess/files/patch-src__lib__lib7z__CpuArch.h   (contents, props changed)
  head/emulators/mess/files/patch-src__lib__lua__luaconf.h   (contents, props changed)
  head/emulators/mess/files/patch-src__osd__eigccx86.h   (contents, props changed)
  head/emulators/mess/files/patch-src__osd__eminline.h   (contents, props changed)
  head/emulators/mess/files/patch-src__osd__sdl__osinline.h   (contents, props changed)
  head/emulators/mess/files/patch-src__osd__sdl__sdlsync_ntc.c   (contents, props changed)
  head/emulators/mess/files/patch-src__osd__sdl__sdlsync_os2.c   (contents, props changed)
Deleted:
  head/emulators/mame/files/patch-src__emu__netlist__nl_base.h
  head/emulators/mame/files/patch-src__emu__netlist__pstate.h
  head/emulators/mess/files/patch-src__emu__netlist__nl_base.h
  head/emulators/mess/files/patch-src__emu__netlist__pstate.h
Modified:
  head/emulators/mame/Makefile
  head/emulators/mame/distinfo
  head/emulators/mame/pkg-plist
  head/emulators/mess/Makefile
  head/emulators/mess/distinfo
  head/emulators/mess/pkg-plist

Modified: head/emulators/mame/Makefile
==============================================================================
--- head/emulators/mame/Makefile	Fri Aug  1 07:54:59 2014	(r363690)
+++ head/emulators/mame/Makefile	Fri Aug  1 08:13:29 2014	(r363691)
@@ -2,13 +2,12 @@
 # $FreeBSD$
 
 PORTNAME=	mame
-PORTVERSION=	0.152${PATCHSUFFIX}
-PORTREVISION=	1
+PORTVERSION=	0.154${PATCHSUFFIX}
 CATEGORIES=	emulators
-MASTER_SITES=	http://mame.mirrors.zippykid.com/releases/ \
+MASTER_SITES=	http://mamedev.mameworld.info/releases/ \
 		http://emumovies.com/aarongiles/releases/ \
 		http://mamedev.org/updates/:patchsets
-DISTFILES=	${PORTNAME}${PORTVERSION:S/.//:C/p[0-9]*$//}s.zip \
+DISTFILES=	${PORTNAME}${PORTVERSION:S/.//:C/p[0-9]*$//}s${EXTRACT_SUFX} \
 		${UPDATE_PATCHES:C/$/.zip:patchsets/}
 DIST_SUBDIR=	${PORTNAME}
 
@@ -21,15 +20,16 @@ LIB_DEPENDS=	libFLAC.so:${PORTSDIR}/audi
 		libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
 RUN_DEPENDS=	liberation-fonts-ttf>=0:${PORTSDIR}/x11-fonts/liberation-fonts-ttf
 
-OPTIONS_DEFINE=	BUILTIN_DEBUGGER DEBUG DOCS EXAMPLES SDL2
-BUILTIN_DEBUGGER_DESC=	Builtin debugger support
-SDL2_DESC=	SDL2 libraries support
-
 NO_WRKSUBDIR=	yes
 
-USES=		dos2unix gmake pkgconfig shebangfix
-DOS2UNIX_FILES=	src/emu/netlist/nl_base.h \
-		src/emu/netlist/pstate.h
+USES=		dos2unix gmake pkgconfig shebangfix zip
+DOS2UNIX_FILES=	src/lib/lib7z/CpuArch.h \
+		src/lib/lua/luaconf.h \
+		src/osd/eigccx86.h \
+		src/osd/eminline.h \
+		src/osd/sdl/osinline.h \
+		src/osd/sdl/sdlsync_ntc.c \
+		src/osd/sdl/sdlsync_os2.c
 SHEBANG_FILES=	src/emu/cpu/m6502/m6502make.py \
 		src/emu/cpu/m6809/m6809make.py \
 		src/emu/cpu/mcs96/mcs96make.py \
@@ -40,11 +40,23 @@ USE_PYTHON_BUILD=2
 MAKE_ENV=	NOWERROR=1 USE_NETWORK=1 \
 		LD="${CXX}" PYTHON="${PYTHON_CMD}" \
 		OPT_FLAGS="${CXXFLAGS}" GCC_LDFLAGS="${LDFLAGS}" \
-		TARGET="${PORTNAME}" FULLNAME="${PORTNAME}"
+		TARGET="${PORTNAME}" FULLNAME="${PORTNAME}" \
+		SDL_NETWORK="pcap"
 MAKEFILE=	makefile
 
 SUB_FILES=	pkg-message
 
+OPTIONS_DEFINE=		BUILTIN_DEBUGGER DEBUG DOCS EXAMPLES SDL2
+
+BUILTIN_DEBUGGER_DESC=	Builtin debugger support
+BUILTIN_DEBUGGER_USE=	QT4=gui,moc_build,qmake_build
+BUILTIN_DEBUGGER_MAKE_ENV_OFF=\
+			NO_DEBUGGER=1 NO_USE_QTDEBUG=1
+DEBUG_MAKE_ENV=		DEBUG=1
+SDL2_DESC=		SDL2 libraries support
+SDL2_USE=		SDL=sdl2,ttf2
+SDL2_MAKE_ENV=		SDL_LIBVER="sdl2"
+
 PATCHLEVEL=	# none
 
 .if defined(PATCHLEVEL) && ${PATCHLEVEL}
@@ -56,25 +68,10 @@ UPDATE_PATCHES!=	/usr/bin/jot -s " " \
 
 .include <bsd.port.options.mk>
 
-.if ${PORT_OPTIONS:MBUILTIN_DEBUGGER}
-USE_QT4=	gui moc_build qmake_build
-.else
-MAKE_ENV+=	NO_DEBUGGER=1 NO_USE_QTDEBUG=1
-.endif
-
-.if ${PORT_OPTIONS:MSDL2}
-USE_SDL=	sdl2 ttf2
-MAKE_ENV+=	SDL_LIBVER="sdl2"
-.else
+.if empty(PORT_OPTIONS:MSDL2)
 USE_SDL=	sdl ttf
 .endif
 
-.if ${PORT_OPTIONS:MDEBUG}
-MAKE_ENV+=	DEBUG=1
-.endif
-
-.include <bsd.port.pre.mk>
-
 .if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
 BROKEN=		Does not install on ia64, powerpc, or sparc64
 .endif
@@ -94,21 +91,19 @@ post-extract:
 
 post-patch:
 	@${REINPLACE_CMD} -e \
-		'/^BUILD_EXPAT /s|^|#| ; \
-		 /^BUILD_ZLIB /s|^|#| ; \
-		 /^BUILD_FLAC /s|^|#| ; \
-		 /^BUILD_JPEGLIB /s|^|#| ; \
-		 /^CC /s|^|#| ; \
-		 /^LD /s|^|#| ; \
-		 /^PYTHON /s|^|#| ; \
+		's|^\(BUILD_EXPAT \)|#\1| ; \
+		 s|^\(BUILD_ZLIB \)|#\1| ; \
+		 s|^\(BUILD_FLAC \)|#\1| ; \
+		 s|^\(BUILD_JPEGLIB \)|#\1| ; \
+		 s|^\(CC \)|#\1| ; \
+		 s|^\(LD \)|#\1| ; \
+		 s|^\(PYTHON \)|#\1| ; \
 		 s|-O$$(OPTIMIZE)|| ; \
 		 /--warn-common/s|= -Wl,|= $$(GCC_LDFLAGS) -Wl,| ; \
 		 /LDFLAGS/s|-s|| ; \
 		 /LIBS/s|-lstdc++|| ; \
 		 /LIBS/s|-lpthread|-pthread|' ${WRKSRC}/makefile
 	@${REINPLACE_CMD} -e \
-		'/realloc/s|^|// |' ${WRKSRC}/src/emu/emualloc.h
-	@${REINPLACE_CMD} -e \
 		'/LIBS/s|-lpthread|-pthread| ; \
 		 /-isystem/s|^|#| ; \
 		 /X11R6/s|^|#|' ${WRKSRC}/src/osd/sdl/sdl.mak
@@ -122,13 +117,13 @@ do-install:
 		${STAGEDIR}${PREFIX}/libexec/${PORTNAME})
 .endfor
 	@${MKDIR} ${STAGEDIR}${DATADIR}
-	(cd ${WRKSRC} && ${COPYTREE_SHARE} artwork ${STAGEDIR}${DATADIR})
-	(cd ${WRKSRC} && ${COPYTREE_SHARE} hash ${STAGEDIR}${DATADIR})
-	(cd ${WRKSRC}/src/osd/sdl && ${COPYTREE_SHARE} keymaps \
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} artwork ${STAGEDIR}${DATADIR})
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} hash ${STAGEDIR}${DATADIR})
+	@(cd ${WRKSRC}/src/osd/sdl && ${COPYTREE_SHARE} keymaps \
 		${STAGEDIR}${DATADIR})
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	(cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${STAGEDIR}${DOCSDIR})
-	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${STAGEDIR}${DOCSDIR})
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	(cd ${FILESDIR} && ${INSTALL_DATA} mame.ini ${STAGEDIR}${EXAMPLESDIR})
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/emulators/mame/distinfo
==============================================================================
--- head/emulators/mame/distinfo	Fri Aug  1 07:54:59 2014	(r363690)
+++ head/emulators/mame/distinfo	Fri Aug  1 08:13:29 2014	(r363691)
@@ -1,2 +1,2 @@
-SHA256 (mame/mame0152s.zip) = dd245297824e0b3938312c74aee31e1d32798d093bbf19f857de56bbd1ea4bdf
-SIZE (mame/mame0152s.zip) = 36247883
+SHA256 (mame/mame0154s.zip) = 522ba9275e9f633ab616dcd0ac0ab4fcd3b72690ed09915dcd4d0b627c696149
+SIZE (mame/mame0154s.zip) = 39697095

Added: head/emulators/mame/files/patch-src__lib__lib7z__CpuArch.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/mame/files/patch-src__lib__lib7z__CpuArch.h	Fri Aug  1 08:13:29 2014	(r363691)
@@ -0,0 +1,11 @@
+--- src/lib/lib7z/CpuArch.h.orig
++++ src/lib/lib7z/CpuArch.h
+@@ -16,7 +16,7 @@
+ If MY_CPU_LE_UNALIGN is not defined, we don't know about these properties of platform.
+ */
+ 
+-#if defined(_M_X64) || defined(_M_AMD64) || defined(__x86_64__)
++#if defined(__amd64__) || defined(_M_X64) || defined(_M_AMD64) || defined(__x86_64__)
+ #define MY_CPU_AMD64
+ #endif
+ 

Added: head/emulators/mame/files/patch-src__lib__lua__luaconf.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/mame/files/patch-src__lib__lua__luaconf.h	Fri Aug  1 08:13:29 2014	(r363691)
@@ -0,0 +1,11 @@
+--- src/lib/lua/luaconf.h.orig
++++ src/lib/lua/luaconf.h
+@@ -514,7 +514,7 @@
+ #define LUA_NANTRICK
+ 
+ /* pentium 64 bits? */
+-#elif defined(__x86_64)                     /* }{ */
++#elif defined(__amd64__) || defined(__x86_64__) || defined(__x86_64) /* }{ */
+ 
+ #define LUA_IEEE754TRICK
+ #define LUA_IEEEENDIAN      0

Added: head/emulators/mame/files/patch-src__osd__eigccx86.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/mame/files/patch-src__osd__eigccx86.h	Fri Aug  1 08:13:29 2014	(r363691)
@@ -0,0 +1,128 @@
+--- src/osd/eigccx86.h.orig
++++ src/osd/eigccx86.h
+@@ -42,7 +42,7 @@
+     multiply and return the full 64 bit result
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define mul_32x32 _mul_32x32
+ INLINE INT64 ATTR_CONST ATTR_FORCE_INLINE
+ _mul_32x32(INT32 a, INT32 b)
+@@ -68,7 +68,7 @@
+     result
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define mulu_32x32 _mulu_32x32
+ INLINE UINT64 ATTR_CONST ATTR_FORCE_INLINE
+ _mulu_32x32(UINT32 a, UINT32 b)
+@@ -145,7 +145,7 @@
+     result to 32 bits
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define mul_32x32_shift _mul_32x32_shift
+ INLINE INT32 ATTR_CONST ATTR_FORCE_INLINE
+ _mul_32x32_shift(INT32 a, INT32 b, UINT8 shift)
+@@ -175,7 +175,7 @@
+     result to 32 bits
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define mulu_32x32_shift _mulu_32x32_shift
+ INLINE UINT32 ATTR_CONST ATTR_FORCE_INLINE
+ _mulu_32x32_shift(UINT32 a, UINT32 b, UINT8 shift)
+@@ -203,7 +203,7 @@
+     divide and return the 32 bit quotient
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define div_64x32 _div_64x32
+ INLINE INT32 ATTR_CONST ATTR_FORCE_INLINE
+ _div_64x32(INT64 a, INT32 b)
+@@ -230,7 +230,7 @@
+     divide and return the 32 bit quotient
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define divu_64x32 _divu_64x32
+ INLINE UINT32 ATTR_CONST ATTR_FORCE_INLINE
+ _divu_64x32(UINT64 a, UINT32 b)
+@@ -258,7 +258,7 @@
+     32 bit remainder
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define div_64x32_rem _div_64x32_rem
+ INLINE INT32 ATTR_FORCE_INLINE
+ _div_64x32_rem(INT64 dividend, INT32 divisor, INT32 *remainder)
+@@ -286,7 +286,7 @@
+     and 32 bit remainder
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define divu_64x32_rem _divu_64x32_rem
+ INLINE UINT32 ATTR_FORCE_INLINE
+ _divu_64x32_rem(UINT64 dividend, UINT32 divisor, UINT32 *remainder)
+@@ -337,7 +337,7 @@
+     division, and returning the 32 bit quotient
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define div_32x32_shift _div_32x32_shift
+ INLINE INT32 ATTR_CONST ATTR_FORCE_INLINE
+ _div_32x32_shift(INT32 a, INT32 b, UINT8 shift)
+@@ -369,7 +369,7 @@
+     division, and returning the 32 bit quotient
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define divu_32x32_shift _divu_32x32_shift
+ INLINE UINT32 ATTR_CONST ATTR_FORCE_INLINE
+ _divu_32x32_shift(UINT32 a, UINT32 b, UINT8 shift)
+@@ -400,7 +400,7 @@
+     divide and return the 32 bit remainder
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define mod_64x32 _mod_64x32
+ INLINE INT32 ATTR_CONST ATTR_FORCE_INLINE
+ _mod_64x32(INT64 a, INT32 b)
+@@ -427,7 +427,7 @@
+     divide and return the 32 bit remainder
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define modu_64x32 _modu_64x32
+ INLINE UINT32 ATTR_CONST ATTR_FORCE_INLINE
+ _modu_64x32(UINT64 a, UINT32 b)
+@@ -563,7 +563,7 @@
+     return the previous value at 'ptr'.
+ -------------------------------------------------*/
+ 
+-#ifdef __x86_64__
++#if defined(__amd64__) || defined(__x86_64__)
+ #define compare_exchange64 _compare_exchange64
+ INLINE INT64 ATTR_NONNULL(1) ATTR_FORCE_INLINE
+ _compare_exchange64(INT64 volatile *ptr, INT64 compare, INT64 exchange)
+@@ -693,7 +693,7 @@
+ 
+ #define get_profile_ticks _get_profile_ticks
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ INLINE UINT64 ATTR_UNUSED ATTR_FORCE_INLINE _get_profile_ticks(void)
+ {
+ 	UINT64 result;

Added: head/emulators/mame/files/patch-src__osd__eminline.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/mame/files/patch-src__osd__eminline.h	Fri Aug  1 08:13:29 2014	(r363691)
@@ -0,0 +1,11 @@
+--- src/osd/eminline.h.orig
++++ src/osd/eminline.h
+@@ -17,7 +17,7 @@
+ /* we come with implementations for GCC x86 and PPC */
+ #if defined(__GNUC__)
+ 
+-#if defined(__i386__) || defined(__x86_64__)
++#if defined(__i386__) || defined(__amd64__) || defined(__x86_64__)
+ #include "eigccx86.h"
+ #elif defined(__ppc__) || defined (__PPC__) || defined(__ppc64__) || defined(__PPC64__)
+ #include "eigccppc.h"

Added: head/emulators/mame/files/patch-src__osd__sdl__osinline.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/mame/files/patch-src__osd__sdl__osinline.h	Fri Aug  1 08:13:29 2014	(r363691)
@@ -0,0 +1,11 @@
+--- src/osd/sdl/osinline.h.orig
++++ src/osd/sdl/osinline.h
+@@ -14,7 +14,7 @@
+ //  INLINE FUNCTIONS
+ //============================================================
+ 
+-#if defined(__i386__) || defined(__x86_64__)
++#if defined(__i386__) || defined(__amd64__) || defined(__x86_64__)
+ 
+ 
+ INLINE void ATTR_FORCE_INLINE

Added: head/emulators/mame/files/patch-src__osd__sdl__sdlsync_ntc.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/mame/files/patch-src__osd__sdl__sdlsync_ntc.c	Fri Aug  1 08:13:29 2014	(r363691)
@@ -0,0 +1,29 @@
+--- src/osd/sdl/sdlsync_ntc.c.orig
++++ src/osd/sdl/sdlsync_ntc.c
+@@ -102,7 +102,7 @@
+ {
+ 	INT32 myslot = (atomic_increment32(&lock->nextindex) - 1) & (WORK_MAX_THREADS - 1);
+ 
+-#if defined(__i386__) || defined(__x86_64__)
++#if defined(__i386__) || defined(__amd64__) || defined(__x86_64__)
+ 	register INT32 tmp;
+ 	__asm__ __volatile__ (
+ 		"1: clr    %[tmp]             ;"
+@@ -157,7 +157,7 @@
+ 
+ void osd_scalable_lock_release(osd_scalable_lock *lock, INT32 myslot)
+ {
+-#if defined(__i386__) || defined(__x86_64__)
++#if defined(__i386__) || defined(__amd64__) || defined(__x86_64__)
+ 	register INT32 tmp = TRUE;
+ 	__asm__ __volatile__ (
+ 		" xchg   %[haslock], %[tmp] ;"
+@@ -230,7 +230,7 @@
+ 		do {
+ 			register INT32 spin = 10000; // Convenient spin count
+ 			register pthread_t tmp;
+-#if defined(__i386__) || defined(__x86_64__)
++#if defined(__i386__) || defined(__amd64__) || defined(__x86_64__)
+ 			__asm__ __volatile__ (
+ 				"1: pause                    ;"
+ 				"   mov    %[holder], %[tmp] ;"

Added: head/emulators/mame/files/patch-src__osd__sdl__sdlsync_os2.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/mame/files/patch-src__osd__sdl__sdlsync_os2.c	Fri Aug  1 08:13:29 2014	(r363691)
@@ -0,0 +1,29 @@
+--- src/osd/sdl/sdlsync_os2.c.orig
++++ src/osd/sdl/sdlsync_os2.c
+@@ -91,7 +91,7 @@
+ {
+ 	INT32 myslot = (atomic_increment32(&lock->nextindex) - 1) & (WORK_MAX_THREADS - 1);
+ 
+-#if defined(__i386__) || defined(__x86_64__)
++#if defined(__i386__) || defined(__amd64__) || defined(__x86_64__)
+ 	register INT32 tmp;
+ 	__asm__ __volatile__ (
+ 		"1: clr    %[tmp]             ;"
+@@ -146,7 +146,7 @@
+ 
+ void osd_scalable_lock_release(osd_scalable_lock *lock, INT32 myslot)
+ {
+-#if defined(__i386__) || defined(__x86_64__)
++#if defined(__i386__) || defined(__amd64__) || defined(__x86_64__)
+ 	register INT32 tmp = TRUE;
+ 	__asm__ __volatile__ (
+ 		" xchg   %[haslock], %[tmp] ;"
+@@ -219,7 +219,7 @@
+ 		do {
+ 			register INT32 spin = 10000; // Convenient spin count
+ 			register pthread_t tmp;
+-#if defined(__i386__) || defined(__x86_64__)
++#if defined(__i386__) || defined(__amd64__) || defined(__x86_64__)
+ 			__asm__ __volatile__ (
+ 				"1: pause                    ;"
+ 				"   mov    %[holder], %[tmp] ;"

Modified: head/emulators/mame/pkg-plist
==============================================================================
--- head/emulators/mame/pkg-plist	Fri Aug  1 07:54:59 2014	(r363690)
+++ head/emulators/mame/pkg-plist	Fri Aug  1 08:13:29 2014	(r363691)
@@ -8,6 +8,7 @@ libexec/mame/testkeys
 libexec/mame/unidasm
 %%PORTDOCS%%%%DOCSDIR%%/docs/SDL.txt
 %%PORTDOCS%%%%DOCSDIR%%/docs/config.txt
+%%PORTDOCS%%%%DOCSDIR%%/docs/floppy.txt
 %%PORTDOCS%%%%DOCSDIR%%/docs/hlsl.txt
 %%PORTDOCS%%%%DOCSDIR%%/docs/imgtool.txt
 %%PORTDOCS%%%%DOCSDIR%%/docs/license.txt
@@ -87,12 +88,15 @@ libexec/mame/unidasm
 %%DATADIR%%/hash/cbm2_flop.xml
 %%DATADIR%%/hash/cbm8096_flop.xml
 %%DATADIR%%/hash/cbm8296_flop.xml
+%%DATADIR%%/hash/cc40_cart.xml
 %%DATADIR%%/hash/cd32.xml
 %%DATADIR%%/hash/cdi.xml
 %%DATADIR%%/hash/cdtv.xml
 %%DATADIR%%/hash/channelf.xml
 %%DATADIR%%/hash/coco_cart.xml
+%%DATADIR%%/hash/coco_flop.xml
 %%DATADIR%%/hash/coleco.xml
+%%DATADIR%%/hash/compclr2_flop.xml
 %%DATADIR%%/hash/compis.xml
 %%DATADIR%%/hash/comx35_flop.xml
 %%DATADIR%%/hash/copera.xml
@@ -121,10 +125,16 @@ libexec/mame/unidasm
 %%DATADIR%%/hash/gba.xml
 %%DATADIR%%/hash/gbcolor.xml
 %%DATADIR%%/hash/genius.xml
+%%DATADIR%%/hash/gl2000.xml
+%%DATADIR%%/hash/gl6000sl.xml
+%%DATADIR%%/hash/glcolor.xml
 %%DATADIR%%/hash/gmaster.xml
 %%DATADIR%%/hash/gp32.xml
 %%DATADIR%%/hash/gx4000.xml
 %%DATADIR%%/hash/horizon.xml
+%%DATADIR%%/hash/hp9835a_rom.xml
+%%DATADIR%%/hash/hp9845a_rom.xml
+%%DATADIR%%/hash/hp9845b_rom.xml
 %%DATADIR%%/hash/hx20_flop.xml
 %%DATADIR%%/hash/ibm5140.xml
 %%DATADIR%%/hash/ibm5150.xml
@@ -156,6 +166,7 @@ libexec/mame/unidasm
 %%DATADIR%%/hash/m5.xml
 %%DATADIR%%/hash/mac_flop.xml
 %%DATADIR%%/hash/mac_hdd.xml
+%%DATADIR%%/hash/mbc200.xml
 %%DATADIR%%/hash/mbc55x.xml
 %%DATADIR%%/hash/mc1502_flop.xml
 %%DATADIR%%/hash/megacd.xml
@@ -173,8 +184,10 @@ libexec/mame/unidasm
 %%DATADIR%%/hash/msx.hsi
 %%DATADIR%%/hash/msx1_cart.xml
 %%DATADIR%%/hash/msx1_cass.xml
+%%DATADIR%%/hash/msx1_flop.xml
 %%DATADIR%%/hash/msx2.hsi
 %%DATADIR%%/hash/msx2_cart.xml
+%%DATADIR%%/hash/msx2_flop.xml
 %%DATADIR%%/hash/myvision.xml
 %%DATADIR%%/hash/mz2000_cass.xml
 %%DATADIR%%/hash/mz2000_flop.xml
@@ -187,6 +200,9 @@ libexec/mame/unidasm
 %%DATADIR%%/hash/neogeo.xml
 %%DATADIR%%/hash/nes.hsi
 %%DATADIR%%/hash/nes.xml
+%%DATADIR%%/hash/nes_ade.xml
+%%DATADIR%%/hash/nes_datach.xml
+%%DATADIR%%/hash/nes_kstudio.xml
 %%DATADIR%%/hash/nes_ntbrom.xml
 %%DATADIR%%/hash/next.xml
 %%DATADIR%%/hash/ngp.xml
@@ -200,6 +216,7 @@ libexec/mame/unidasm
 %%DATADIR%%/hash/orion_flop.xml
 %%DATADIR%%/hash/orionpro_flop.xml
 %%DATADIR%%/hash/osborne1.xml
+%%DATADIR%%/hash/osborne2.xml
 %%DATADIR%%/hash/p500_flop.xml
 %%DATADIR%%/hash/partner_cass.xml
 %%DATADIR%%/hash/partner_flop.xml
@@ -249,6 +266,9 @@ libexec/mame/unidasm
 %%DATADIR%%/hash/samcoupe_flop.xml
 %%DATADIR%%/hash/sat_cart.xml
 %%DATADIR%%/hash/saturn.xml
+%%DATADIR%%/hash/sawatte.xml
+%%DATADIR%%/hash/sc3000_cart.xml
+%%DATADIR%%/hash/sc3000_cass.xml
 %%DATADIR%%/hash/scv.xml
 %%DATADIR%%/hash/segacd.xml
 %%DATADIR%%/hash/sf7000.xml
@@ -278,6 +298,7 @@ libexec/mame/unidasm
 %%DATADIR%%/hash/super6.xml
 %%DATADIR%%/hash/superpet_flop.xml
 %%DATADIR%%/hash/supracan.xml
+%%DATADIR%%/hash/sv8000.xml
 %%DATADIR%%/hash/svi318_cart.xml
 %%DATADIR%%/hash/svi318_cass.xml
 %%DATADIR%%/hash/svi318_flop.xml

Modified: head/emulators/mess/Makefile
==============================================================================
--- head/emulators/mess/Makefile	Fri Aug  1 07:54:59 2014	(r363690)
+++ head/emulators/mess/Makefile	Fri Aug  1 08:13:29 2014	(r363691)
@@ -2,13 +2,12 @@
 # $FreeBSD$
 
 PORTNAME=	mess
-PORTVERSION=	0.152${PATCHSUFFIX}
-PORTREVISION=	1
+PORTVERSION=	0.154${PATCHSUFFIX}
 CATEGORIES=	emulators
-MASTER_SITES=	http://mame.mirrors.zippykid.com/releases/ \
+MASTER_SITES=	http://mamedev.mameworld.info/releases/ \
 		http://emumovies.com/aarongiles/releases/ \
 		http://mamedev.org/updates/:patchsets
-DISTFILES=	mame${PORTVERSION:S/.//:C/p[0-9]*$//}s.zip \
+DISTFILES=	mame${PORTVERSION:S/.//:C/p[0-9]*$//}s${EXTRACT_SUFX} \
 		${UPDATE_PATCHES:C/$/.zip:patchsets/}
 DIST_SUBDIR=	mame
 
@@ -21,15 +20,16 @@ LIB_DEPENDS=	libFLAC.so:${PORTSDIR}/audi
 		libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
 RUN_DEPENDS=	liberation-fonts-ttf>=0:${PORTSDIR}/x11-fonts/liberation-fonts-ttf
 
-OPTIONS_DEFINE=	BUILTIN_DEBUGGER DEBUG DOCS EXAMPLES SDL2
-BUILTIN_DEBUGGER_DESC=	Builtin debugger support
-SDL2_DESC=	SDL2 libraries support
-
 NO_WRKSUBDIR=	yes
 
-USES=		dos2unix gmake pkgconfig shebangfix
-DOS2UNIX_FILES=	src/emu/netlist/nl_base.h \
-		src/emu/netlist/pstate.h
+USES=		dos2unix gmake pkgconfig shebangfix zip
+DOS2UNIX_FILES=	src/lib/lib7z/CpuArch.h \
+		src/lib/lua/luaconf.h \
+		src/osd/eigccx86.h \
+		src/osd/eminline.h \
+		src/osd/sdl/osinline.h \
+		src/osd/sdl/sdlsync_ntc.c \
+		src/osd/sdl/sdlsync_os2.c
 SHEBANG_FILES=	src/emu/cpu/m6502/m6502make.py \
 		src/emu/cpu/m6809/m6809make.py \
 		src/emu/cpu/mcs96/mcs96make.py \
@@ -40,11 +40,23 @@ USE_PYTHON_BUILD=2
 MAKE_ENV=	NOWERROR=1 USE_NETWORK=1 \
 		LD="${CXX}" PYTHON="${PYTHON_CMD}" \
 		OPT_FLAGS="${CXXFLAGS}" GCC_LDFLAGS="${LDFLAGS}" \
-		TARGET="${PORTNAME}" FULLNAME="${PORTNAME}"
+		TARGET="${PORTNAME}" FULLNAME="${PORTNAME}" \
+		SDL_NETWORK="pcap"
 MAKEFILE=	makefile
 
 SUB_FILES=	pkg-message
 
+OPTIONS_DEFINE=		BUILTIN_DEBUGGER DEBUG DOCS EXAMPLES SDL2
+
+BUILTIN_DEBUGGER_DESC=	Builtin debugger support
+BUILTIN_DEBUGGER_USE=	QT4=gui,moc_build,qmake_build
+BUILTIN_DEBUGGER_MAKE_ENV_OFF=\
+			NO_DEBUGGER=1 NO_USE_QTDEBUG=1
+DEBUG_MAKE_ENV=		DEBUG=1
+SDL2_DESC=		SDL2 libraries support
+SDL2_USE=		SDL=sdl2,ttf2
+SDL2_MAKE_ENV=		SDL_LIBVER="sdl2"
+
 PATCHLEVEL=	# none
 
 .if defined(PATCHLEVEL) && ${PATCHLEVEL}
@@ -56,25 +68,10 @@ UPDATE_PATCHES!=	/usr/bin/jot -s " " \
 
 .include <bsd.port.options.mk>
 
-.if ${PORT_OPTIONS:MBUILTIN_DEBUGGER}
-USE_QT4=	gui moc_build qmake_build
-.else
-MAKE_ENV+=	NO_DEBUGGER=1 NO_USE_QTDEBUG=1
-.endif
-
-.if ${PORT_OPTIONS:MSDL2}
-USE_SDL=	sdl2 ttf2
-MAKE_ENV+=	SDL_LIBVER="sdl2"
-.else
+.if empty(PORT_OPTIONS:MSDL2)
 USE_SDL=	sdl ttf
 .endif
 
-.if ${PORT_OPTIONS:MDEBUG}
-MAKE_ENV+=	DEBUG=1
-.endif
-
-.include <bsd.port.pre.mk>
-
 .if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
 BROKEN=		Does not install on ia64, powerpc, or sparc64
 .endif
@@ -94,21 +91,19 @@ post-extract:
 
 post-patch:
 	@${REINPLACE_CMD} -e \
-		'/^BUILD_EXPAT /s|^|#| ; \
-		 /^BUILD_ZLIB /s|^|#| ; \
-		 /^BUILD_FLAC /s|^|#| ; \
-		 /^BUILD_JPEGLIB /s|^|#| ; \
-		 /^CC /s|^|#| ; \
-		 /^LD /s|^|#| ; \
-		 /^PYTHON /s|^|#| ; \
+		's|^\(BUILD_EXPAT \)|#\1| ; \
+		 s|^\(BUILD_ZLIB \)|#\1| ; \
+		 s|^\(BUILD_FLAC \)|#\1| ; \
+		 s|^\(BUILD_JPEGLIB \)|#\1| ; \
+		 s|^\(CC \)|#\1| ; \
+		 s|^\(LD \)|#\1| ; \
+		 s|^\(PYTHON \)|#\1| ; \
 		 s|-O$$(OPTIMIZE)|| ; \
 		 /--warn-common/s|= -Wl,|= $$(GCC_LDFLAGS) -Wl,| ; \
 		 /LDFLAGS/s|-s|| ; \
 		 /LIBS/s|-lstdc++|| ; \
 		 /LIBS/s|-lpthread|-pthread|' ${WRKSRC}/makefile
 	@${REINPLACE_CMD} -e \
-		'/realloc/s|^|// |' ${WRKSRC}/src/emu/emualloc.h
-	@${REINPLACE_CMD} -e \
 		'/LIBS/s|-lpthread|-pthread| ; \
 		 /-isystem/s|^|#| ; \
 		 /X11R6/s|^|#|' ${WRKSRC}/src/osd/sdl/sdl.mak
@@ -132,4 +127,4 @@ do-install:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	(cd ${FILESDIR} && ${INSTALL_DATA} mess.ini ${STAGEDIR}${EXAMPLESDIR})
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/emulators/mess/distinfo
==============================================================================
--- head/emulators/mess/distinfo	Fri Aug  1 07:54:59 2014	(r363690)
+++ head/emulators/mess/distinfo	Fri Aug  1 08:13:29 2014	(r363691)
@@ -1,2 +1,2 @@
-SHA256 (mame/mame0152s.zip) = dd245297824e0b3938312c74aee31e1d32798d093bbf19f857de56bbd1ea4bdf
-SIZE (mame/mame0152s.zip) = 36247883
+SHA256 (mame/mame0154s.zip) = 522ba9275e9f633ab616dcd0ac0ab4fcd3b72690ed09915dcd4d0b627c696149
+SIZE (mame/mame0154s.zip) = 39697095

Added: head/emulators/mess/files/patch-src__lib__lib7z__CpuArch.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/mess/files/patch-src__lib__lib7z__CpuArch.h	Fri Aug  1 08:13:29 2014	(r363691)
@@ -0,0 +1,11 @@
+--- src/lib/lib7z/CpuArch.h.orig
++++ src/lib/lib7z/CpuArch.h
+@@ -16,7 +16,7 @@
+ If MY_CPU_LE_UNALIGN is not defined, we don't know about these properties of platform.
+ */
+ 
+-#if defined(_M_X64) || defined(_M_AMD64) || defined(__x86_64__)
++#if defined(__amd64__) || defined(_M_X64) || defined(_M_AMD64) || defined(__x86_64__)
+ #define MY_CPU_AMD64
+ #endif
+ 

Added: head/emulators/mess/files/patch-src__lib__lua__luaconf.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/mess/files/patch-src__lib__lua__luaconf.h	Fri Aug  1 08:13:29 2014	(r363691)
@@ -0,0 +1,11 @@
+--- src/lib/lua/luaconf.h.orig
++++ src/lib/lua/luaconf.h
+@@ -514,7 +514,7 @@
+ #define LUA_NANTRICK
+ 
+ /* pentium 64 bits? */
+-#elif defined(__x86_64)                     /* }{ */
++#elif defined(__amd64__) || defined(__x86_64__) || defined(__x86_64) /* }{ */
+ 
+ #define LUA_IEEE754TRICK
+ #define LUA_IEEEENDIAN      0

Added: head/emulators/mess/files/patch-src__osd__eigccx86.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/mess/files/patch-src__osd__eigccx86.h	Fri Aug  1 08:13:29 2014	(r363691)
@@ -0,0 +1,128 @@
+--- src/osd/eigccx86.h.orig
++++ src/osd/eigccx86.h
+@@ -42,7 +42,7 @@
+     multiply and return the full 64 bit result
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define mul_32x32 _mul_32x32
+ INLINE INT64 ATTR_CONST ATTR_FORCE_INLINE
+ _mul_32x32(INT32 a, INT32 b)
+@@ -68,7 +68,7 @@
+     result
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define mulu_32x32 _mulu_32x32
+ INLINE UINT64 ATTR_CONST ATTR_FORCE_INLINE
+ _mulu_32x32(UINT32 a, UINT32 b)
+@@ -145,7 +145,7 @@
+     result to 32 bits
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define mul_32x32_shift _mul_32x32_shift
+ INLINE INT32 ATTR_CONST ATTR_FORCE_INLINE
+ _mul_32x32_shift(INT32 a, INT32 b, UINT8 shift)
+@@ -175,7 +175,7 @@
+     result to 32 bits
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define mulu_32x32_shift _mulu_32x32_shift
+ INLINE UINT32 ATTR_CONST ATTR_FORCE_INLINE
+ _mulu_32x32_shift(UINT32 a, UINT32 b, UINT8 shift)
+@@ -203,7 +203,7 @@
+     divide and return the 32 bit quotient
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define div_64x32 _div_64x32
+ INLINE INT32 ATTR_CONST ATTR_FORCE_INLINE
+ _div_64x32(INT64 a, INT32 b)
+@@ -230,7 +230,7 @@
+     divide and return the 32 bit quotient
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define divu_64x32 _divu_64x32
+ INLINE UINT32 ATTR_CONST ATTR_FORCE_INLINE
+ _divu_64x32(UINT64 a, UINT32 b)
+@@ -258,7 +258,7 @@
+     32 bit remainder
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define div_64x32_rem _div_64x32_rem
+ INLINE INT32 ATTR_FORCE_INLINE
+ _div_64x32_rem(INT64 dividend, INT32 divisor, INT32 *remainder)
+@@ -286,7 +286,7 @@
+     and 32 bit remainder
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define divu_64x32_rem _divu_64x32_rem
+ INLINE UINT32 ATTR_FORCE_INLINE
+ _divu_64x32_rem(UINT64 dividend, UINT32 divisor, UINT32 *remainder)
+@@ -337,7 +337,7 @@
+     division, and returning the 32 bit quotient
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define div_32x32_shift _div_32x32_shift
+ INLINE INT32 ATTR_CONST ATTR_FORCE_INLINE
+ _div_32x32_shift(INT32 a, INT32 b, UINT8 shift)
+@@ -369,7 +369,7 @@
+     division, and returning the 32 bit quotient
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define divu_32x32_shift _divu_32x32_shift
+ INLINE UINT32 ATTR_CONST ATTR_FORCE_INLINE
+ _divu_32x32_shift(UINT32 a, UINT32 b, UINT8 shift)
+@@ -400,7 +400,7 @@
+     divide and return the 32 bit remainder
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define mod_64x32 _mod_64x32
+ INLINE INT32 ATTR_CONST ATTR_FORCE_INLINE
+ _mod_64x32(INT64 a, INT32 b)
+@@ -427,7 +427,7 @@
+     divide and return the 32 bit remainder
+ -------------------------------------------------*/
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ #define modu_64x32 _modu_64x32
+ INLINE UINT32 ATTR_CONST ATTR_FORCE_INLINE
+ _modu_64x32(UINT64 a, UINT32 b)
+@@ -563,7 +563,7 @@
+     return the previous value at 'ptr'.
+ -------------------------------------------------*/
+ 
+-#ifdef __x86_64__
++#if defined(__amd64__) || defined(__x86_64__)
+ #define compare_exchange64 _compare_exchange64
+ INLINE INT64 ATTR_NONNULL(1) ATTR_FORCE_INLINE
+ _compare_exchange64(INT64 volatile *ptr, INT64 compare, INT64 exchange)
+@@ -693,7 +693,7 @@
+ 
+ #define get_profile_ticks _get_profile_ticks
+ 
+-#ifndef __x86_64__
++#if !defined(__amd64__) && !defined(__x86_64__)
+ INLINE UINT64 ATTR_UNUSED ATTR_FORCE_INLINE _get_profile_ticks(void)
+ {
+ 	UINT64 result;

Added: head/emulators/mess/files/patch-src__osd__eminline.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/mess/files/patch-src__osd__eminline.h	Fri Aug  1 08:13:29 2014	(r363691)
@@ -0,0 +1,11 @@
+--- src/osd/eminline.h.orig
++++ src/osd/eminline.h
+@@ -17,7 +17,7 @@
+ /* we come with implementations for GCC x86 and PPC */
+ #if defined(__GNUC__)
+ 
+-#if defined(__i386__) || defined(__x86_64__)
++#if defined(__i386__) || defined(__amd64__) || defined(__x86_64__)
+ #include "eigccx86.h"
+ #elif defined(__ppc__) || defined (__PPC__) || defined(__ppc64__) || defined(__PPC64__)
+ #include "eigccppc.h"

Added: head/emulators/mess/files/patch-src__osd__sdl__osinline.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/mess/files/patch-src__osd__sdl__osinline.h	Fri Aug  1 08:13:29 2014	(r363691)
@@ -0,0 +1,11 @@
+--- src/osd/sdl/osinline.h.orig
++++ src/osd/sdl/osinline.h
+@@ -14,7 +14,7 @@
+ //  INLINE FUNCTIONS
+ //============================================================
+ 
+-#if defined(__i386__) || defined(__x86_64__)
++#if defined(__i386__) || defined(__amd64__) || defined(__x86_64__)
+ 
+ 
+ INLINE void ATTR_FORCE_INLINE

Added: head/emulators/mess/files/patch-src__osd__sdl__sdlsync_ntc.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/mess/files/patch-src__osd__sdl__sdlsync_ntc.c	Fri Aug  1 08:13:29 2014	(r363691)
@@ -0,0 +1,29 @@
+--- src/osd/sdl/sdlsync_ntc.c.orig
++++ src/osd/sdl/sdlsync_ntc.c
+@@ -102,7 +102,7 @@
+ {
+ 	INT32 myslot = (atomic_increment32(&lock->nextindex) - 1) & (WORK_MAX_THREADS - 1);
+ 
+-#if defined(__i386__) || defined(__x86_64__)
++#if defined(__i386__) || defined(__amd64__) || defined(__x86_64__)
+ 	register INT32 tmp;
+ 	__asm__ __volatile__ (
+ 		"1: clr    %[tmp]             ;"
+@@ -157,7 +157,7 @@
+ 
+ void osd_scalable_lock_release(osd_scalable_lock *lock, INT32 myslot)
+ {
+-#if defined(__i386__) || defined(__x86_64__)
++#if defined(__i386__) || defined(__amd64__) || defined(__x86_64__)
+ 	register INT32 tmp = TRUE;
+ 	__asm__ __volatile__ (
+ 		" xchg   %[haslock], %[tmp] ;"
+@@ -230,7 +230,7 @@
+ 		do {
+ 			register INT32 spin = 10000; // Convenient spin count
+ 			register pthread_t tmp;
+-#if defined(__i386__) || defined(__x86_64__)
++#if defined(__i386__) || defined(__amd64__) || defined(__x86_64__)
+ 			__asm__ __volatile__ (
+ 				"1: pause                    ;"
+ 				"   mov    %[holder], %[tmp] ;"

Added: head/emulators/mess/files/patch-src__osd__sdl__sdlsync_os2.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/mess/files/patch-src__osd__sdl__sdlsync_os2.c	Fri Aug  1 08:13:29 2014	(r363691)
@@ -0,0 +1,29 @@
+--- src/osd/sdl/sdlsync_os2.c.orig
++++ src/osd/sdl/sdlsync_os2.c
+@@ -91,7 +91,7 @@
+ {
+ 	INT32 myslot = (atomic_increment32(&lock->nextindex) - 1) & (WORK_MAX_THREADS - 1);
+ 
+-#if defined(__i386__) || defined(__x86_64__)
++#if defined(__i386__) || defined(__amd64__) || defined(__x86_64__)
+ 	register INT32 tmp;
+ 	__asm__ __volatile__ (
+ 		"1: clr    %[tmp]             ;"
+@@ -146,7 +146,7 @@
+ 
+ void osd_scalable_lock_release(osd_scalable_lock *lock, INT32 myslot)
+ {
+-#if defined(__i386__) || defined(__x86_64__)
++#if defined(__i386__) || defined(__amd64__) || defined(__x86_64__)
+ 	register INT32 tmp = TRUE;
+ 	__asm__ __volatile__ (
+ 		" xchg   %[haslock], %[tmp] ;"
+@@ -219,7 +219,7 @@
+ 		do {
+ 			register INT32 spin = 10000; // Convenient spin count
+ 			register pthread_t tmp;
+-#if defined(__i386__) || defined(__x86_64__)
++#if defined(__i386__) || defined(__amd64__) || defined(__x86_64__)
+ 			__asm__ __volatile__ (
+ 				"1: pause                    ;"
+ 				"   mov    %[holder], %[tmp] ;"

Modified: head/emulators/mess/pkg-plist
==============================================================================
--- head/emulators/mess/pkg-plist	Fri Aug  1 07:54:59 2014	(r363690)
+++ head/emulators/mess/pkg-plist	Fri Aug  1 08:13:29 2014	(r363691)
@@ -10,6 +10,7 @@ libexec/mess/testkeys
 libexec/mess/unidasm
 %%PORTDOCS%%%%DOCSDIR%%/docs/SDL.txt
 %%PORTDOCS%%%%DOCSDIR%%/docs/config.txt
+%%PORTDOCS%%%%DOCSDIR%%/docs/floppy.txt
 %%PORTDOCS%%%%DOCSDIR%%/docs/hlsl.txt
 %%PORTDOCS%%%%DOCSDIR%%/docs/imgtool.txt
 %%PORTDOCS%%%%DOCSDIR%%/docs/license.txt
@@ -89,12 +90,15 @@ libexec/mess/unidasm
 %%DATADIR%%/hash/cbm2_flop.xml
 %%DATADIR%%/hash/cbm8096_flop.xml
 %%DATADIR%%/hash/cbm8296_flop.xml
+%%DATADIR%%/hash/cc40_cart.xml
 %%DATADIR%%/hash/cd32.xml
 %%DATADIR%%/hash/cdi.xml
 %%DATADIR%%/hash/cdtv.xml
 %%DATADIR%%/hash/channelf.xml
 %%DATADIR%%/hash/coco_cart.xml
+%%DATADIR%%/hash/coco_flop.xml
 %%DATADIR%%/hash/coleco.xml
+%%DATADIR%%/hash/compclr2_flop.xml
 %%DATADIR%%/hash/compis.xml
 %%DATADIR%%/hash/comx35_flop.xml
 %%DATADIR%%/hash/copera.xml
@@ -123,10 +127,16 @@ libexec/mess/unidasm
 %%DATADIR%%/hash/gba.xml
 %%DATADIR%%/hash/gbcolor.xml
 %%DATADIR%%/hash/genius.xml
+%%DATADIR%%/hash/gl2000.xml
+%%DATADIR%%/hash/gl6000sl.xml
+%%DATADIR%%/hash/glcolor.xml
 %%DATADIR%%/hash/gmaster.xml
 %%DATADIR%%/hash/gp32.xml
 %%DATADIR%%/hash/gx4000.xml
 %%DATADIR%%/hash/horizon.xml
+%%DATADIR%%/hash/hp9835a_rom.xml
+%%DATADIR%%/hash/hp9845a_rom.xml
+%%DATADIR%%/hash/hp9845b_rom.xml
 %%DATADIR%%/hash/hx20_flop.xml
 %%DATADIR%%/hash/ibm5140.xml
 %%DATADIR%%/hash/ibm5150.xml
@@ -158,6 +168,7 @@ libexec/mess/unidasm
 %%DATADIR%%/hash/m5.xml
 %%DATADIR%%/hash/mac_flop.xml
 %%DATADIR%%/hash/mac_hdd.xml
+%%DATADIR%%/hash/mbc200.xml
 %%DATADIR%%/hash/mbc55x.xml
 %%DATADIR%%/hash/mc1502_flop.xml
 %%DATADIR%%/hash/megacd.xml
@@ -175,8 +186,10 @@ libexec/mess/unidasm
 %%DATADIR%%/hash/msx.hsi
 %%DATADIR%%/hash/msx1_cart.xml
 %%DATADIR%%/hash/msx1_cass.xml
+%%DATADIR%%/hash/msx1_flop.xml
 %%DATADIR%%/hash/msx2.hsi
 %%DATADIR%%/hash/msx2_cart.xml
+%%DATADIR%%/hash/msx2_flop.xml
 %%DATADIR%%/hash/myvision.xml
 %%DATADIR%%/hash/mz2000_cass.xml
 %%DATADIR%%/hash/mz2000_flop.xml
@@ -189,6 +202,9 @@ libexec/mess/unidasm
 %%DATADIR%%/hash/neogeo.xml
 %%DATADIR%%/hash/nes.hsi
 %%DATADIR%%/hash/nes.xml
+%%DATADIR%%/hash/nes_ade.xml
+%%DATADIR%%/hash/nes_datach.xml
+%%DATADIR%%/hash/nes_kstudio.xml
 %%DATADIR%%/hash/nes_ntbrom.xml
 %%DATADIR%%/hash/next.xml
 %%DATADIR%%/hash/ngp.xml
@@ -202,6 +218,7 @@ libexec/mess/unidasm
 %%DATADIR%%/hash/orion_flop.xml
 %%DATADIR%%/hash/orionpro_flop.xml
 %%DATADIR%%/hash/osborne1.xml
+%%DATADIR%%/hash/osborne2.xml
 %%DATADIR%%/hash/p500_flop.xml
 %%DATADIR%%/hash/partner_cass.xml
 %%DATADIR%%/hash/partner_flop.xml
@@ -251,6 +268,9 @@ libexec/mess/unidasm
 %%DATADIR%%/hash/samcoupe_flop.xml
 %%DATADIR%%/hash/sat_cart.xml
 %%DATADIR%%/hash/saturn.xml
+%%DATADIR%%/hash/sawatte.xml
+%%DATADIR%%/hash/sc3000_cart.xml
+%%DATADIR%%/hash/sc3000_cass.xml
 %%DATADIR%%/hash/scv.xml
 %%DATADIR%%/hash/segacd.xml
 %%DATADIR%%/hash/sf7000.xml
@@ -280,6 +300,7 @@ libexec/mess/unidasm
 %%DATADIR%%/hash/super6.xml
 %%DATADIR%%/hash/superpet_flop.xml
 %%DATADIR%%/hash/supracan.xml
+%%DATADIR%%/hash/sv8000.xml
 %%DATADIR%%/hash/svi318_cart.xml
 %%DATADIR%%/hash/svi318_cass.xml
 %%DATADIR%%/hash/svi318_flop.xml



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