--- emulators/xbraitenberg/Makefile 2013-11-06 22:06:18.000000000 +0900 +++ emulators/xbraitenberg/Makefile 2014-01-06 00:00:00.000000000 +0900 @@ -8,12 +8,16 @@ 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 --- emulators/xbraitenberg/files/patch-permstr.hh 1970-01-01 09:00:00.000000000 +0900 +++ emulators/xbraitenberg/files/patch-permstr.hh 2014-01-06 00:00:00.000000000 +0900 @@ -0,0 +1,22 @@ +--- permstr.hh.orig ++++ permstr.hh +@@ -4,6 +4,10 @@ + #include + #include + ++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