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
This commit is contained in:
Jan Beich 2019-03-06 08:21:36 +00:00
parent 0be9a6a12a
commit 75a8d8568d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=494783

View File

@ -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>