Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Sep 2013 23:24:56 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r326336 - in head/emulators/xmame: . files
Message-ID:  <201309042324.r84NOuR9035795@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Wed Sep  4 23:24:55 2013
New Revision: 326336
URL: http://svnweb.freebsd.org/changeset/ports/326336

Log:
  Fix build with clang
  
  Submitted by:	dim

Added:
  head/emulators/xmame/files/patch-src-unix-osinline.h   (contents, props changed)
Modified:
  head/emulators/xmame/Makefile

Modified: head/emulators/xmame/Makefile
==============================================================================
--- head/emulators/xmame/Makefile	Wed Sep  4 23:16:09 2013	(r326335)
+++ head/emulators/xmame/Makefile	Wed Sep  4 23:24:55 2013	(r326336)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:    xmame
-# Date created:         4 Sep 1999
-# Whom:                 Donald Burr <dburr@FreeBSD.org>
-#
+# Created by: Donald Burr <dburr@FreeBSD.org>
 # $FreeBSD$
-#
 
 PORTNAME?=	xmame
 PORTVERSION?=	0.106
@@ -24,9 +20,8 @@ LIB_DEPENDS=	expat.6:${PORTSDIR}/textpro
 NO_CDROM=	License does not permit selling
 
 USES=		perl5 gmake
-USE_GCC=	any
 USE_BZIP2=	yes
-MAKE_ARGS+=	CC=${CC} ARCH=freebsd
+MAKE_ARGS+=	CC="${CC}" ARCH=freebsd
 WANT_SDL=	yes
 WANT_GNOME=	yes
 MAKE_JOBS_UNSAFE=	yes

Added: head/emulators/xmame/files/patch-src-unix-osinline.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/xmame/files/patch-src-unix-osinline.h	Wed Sep  4 23:24:55 2013	(r326336)
@@ -0,0 +1,11 @@
+--- src/unix/osinline.h.orig	2006-05-15 18:47:35.000000000 +0200
++++ src/unix/osinline.h	2013-08-28 11:04:54.000000000 +0200
+@@ -32,7 +32,7 @@ INLINE int _vec_mult(int x, int y)
+ 			:  "=&a" (result)           /* the result has to go in eax */
+ 			:  "mr" (x),                /* x and y can be regs or mem */
+ 			   "mr" (y)
+-			:  "%edx", "%cc"            /* clobbers edx and flags */
++			:  "%edx", "cc"             /* clobbers edx and flags */
+ 		);
+ 	return result;
+ }



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