View | Details | Raw Unified | Return to bug 185500
Collapse All | Expand All

(-)emulators/xbraitenberg/Makefile (-2 / +6 lines)
Lines 8-19 Link Here
8
MASTER_SITES=	http://www.lcdf.org/~eddietwo/xbraitenberg/
8
MASTER_SITES=	http://www.lcdf.org/~eddietwo/xbraitenberg/
9
9
10
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	A Braitenberg vehicle simulator with pseudo-physics
11
COMMENT=	Braitenberg vehicle simulator with pseudo-physics
12
12
13
USE_XORG=	x11 ice sm xext
13
USE_XORG=	x11 ice sm xext
14
GNU_CONFIGURE=	yes
14
GNU_CONFIGURE=	yes
15
CONFIGURE_ENV=	ac_cv_fpermissive=no
15
16
16
PLIST_FILES=	bin/xbraitenberg
17
PLIST_FILES=	bin/xbraitenberg
17
18
18
NO_STAGE=	yes
19
post-patch:
20
	@${REINPLACE_CMD} -e \
21
		'/operator bool() const/d' ${WRKSRC}/operator.hh
22
19
.include <bsd.port.mk>
23
.include <bsd.port.mk>
(-)emulators/xbraitenberg/files/patch-permstr.hh (+22 lines)
Line 0 Link Here
1
--- permstr.hh.orig
2
+++ permstr.hh
3
@@ -4,6 +4,10 @@
4
 #include <cstddef>
5
 #include <cstdarg>
6
 
7
+class PermString;
8
+
9
+PermString permprintf(const char *, ...);
10
+
11
 class PermString { struct Doodad; public:
12
   
13
     typedef Doodad *Capsule;
14
@@ -91,7 +95,7 @@
15
 inline int
16
 hashcode(PermString s)
17
 {
18
-    return (int)(s.cc());
19
+    return (int)(size_t)(s.cc());
20
 }
21
 
22
 #endif

Return to bug 185500