Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jan 2014 09:24:35 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r340240 - in head/emulators/xbraitenberg: . files
Message-ID:  <201401190924.s0J9OZ0K024261@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: miwi
Date: Sun Jan 19 09:24:34 2014
New Revision: 340240
URL: http://svnweb.freebsd.org/changeset/ports/340240
QAT: https://qat.redports.org/buildarchive/r340240/

Log:
  - Fix build with clang
  
  PR:		185500
  Submitted by:	Ports Fury

Added:
  head/emulators/xbraitenberg/files/
  head/emulators/xbraitenberg/files/patch-permstr.hh   (contents, props changed)
Modified:
  head/emulators/xbraitenberg/Makefile   (contents, props changed)

Modified: head/emulators/xbraitenberg/Makefile
==============================================================================
--- head/emulators/xbraitenberg/Makefile	Sun Jan 19 09:23:12 2014	(r340239)
+++ head/emulators/xbraitenberg/Makefile	Sun Jan 19 09:24:34 2014	(r340240)
@@ -8,12 +8,16 @@ CATEGORIES=	emulators
 MASTER_SITES=	http://www.lcdf.org/~eddietwo/xbraitenberg/
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A Braitenberg vehicle simulator with pseudo-physics
+COMMENT=	Braitenberg vehicle simulator with pseudo-physics
 
 USE_XORG=	x11 ice sm xext
 GNU_CONFIGURE=	yes
+CONFIGURE_ENV=	ac_cv_fpermissive=no
 
 PLIST_FILES=	bin/xbraitenberg
 
-NO_STAGE=	yes
+post-patch:
+	@${REINPLACE_CMD} -e \
+		'/operator bool() const/d' ${WRKSRC}/operator.hh
+
 .include <bsd.port.mk>

Added: head/emulators/xbraitenberg/files/patch-permstr.hh
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/xbraitenberg/files/patch-permstr.hh	Sun Jan 19 09:24:34 2014	(r340240)
@@ -0,0 +1,22 @@
+--- permstr.hh.orig
++++ permstr.hh
+@@ -4,6 +4,10 @@
+ #include <cstddef>
+ #include <cstdarg>
+ 
++class PermString;
++
++PermString permprintf(const char *, ...);
++
+ class PermString { struct Doodad; public:
+   
+     typedef Doodad *Capsule;
+@@ -91,7 +95,7 @@
+ inline int
+ hashcode(PermString s)
+ {
+-    return (int)(s.cc());
++    return (int)(size_t)(s.cc());
+ }
+ 
+ #endif



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