svn commit: r494783 - head/games/flightgear

Jan Beich jbeich at FreeBSD.org
Wed Mar 6 08:21:37 UTC 2019


Author: jbeich
Date: Wed Mar  6 08:21:36 2019
New Revision: 494783
URL: https://svnweb.freebsd.org/changeset/ports/494783

Log:
  games/flightgear: unbreak with libc++ 8
  
  In file included from utils/fgelev/fgelev.cxx:23:
  In file included from /usr/include/c++/v1/iostream:38:
  In file included from /usr/include/c++/v1/ios:216:
  In file included from /usr/include/c++/v1/__locale:15:
  In file included from /usr/include/c++/v1/string:505:
  In file included from /usr/include/c++/v1/string_view:176:
  In file included from /usr/include/c++/v1/__string:57:
  In file included from /usr/include/c++/v1/algorithm:640:
  In file included from /usr/include/c++/v1/initializer_list:47:
  In file included from /usr/include/c++/v1/cstddef:38:
  version:1:1: error: expected unqualified-id
  2018.3.2
  ^
  
  PR:		236192
  Reported by:	pkg-fallout
  Approved by:	portmgr blanket

Modified:
  head/games/flightgear/Makefile   (contents, props changed)

Modified: head/games/flightgear/Makefile
==============================================================================
--- head/games/flightgear/Makefile	Wed Mar  6 08:21:29 2019	(r494782)
+++ head/games/flightgear/Makefile	Wed Mar  6 08:21:36 2019	(r494783)
@@ -52,4 +52,10 @@ QT5_CMAKE_OFF=	-DENABLE_QT:BOOL=OFF
 QT5_USES=	qt:5
 QT5_USE=	QT=core,buildtools,gui,declarative,network,qmake,widgets,svg
 
+post-patch:
+# Avoid conflict with C++20 <version> by adding .txt suffix
+	@${MV} ${WRKSRC}/version ${WRKSRC}/version.txt
+	@${REINPLACE_CMD} -Ei .c++20 '/file|set_prop/s/version[[:>:]]/&.txt/' \
+		${WRKSRC}/CMakeLists.txt
+
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list