devel/simgear: GCC architectures require linking with libosgDB [1]
Also, remove support for Clang < 4.0 and GCC < 6 for devel/simgear [1] and games/flightgear ports. PR: 232832 [1] Submitted by: Piotr Kubaj <pkubaj@anongoth.pl> [1]
This commit is contained in:
parent
de609e0217
commit
28b19b9b13
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=484471
@ -21,20 +21,11 @@ USES= alias cmake compiler:c++11-lib cpe gl jpeg openal:al,alut \
|
||||
USE_XORG= ice sm x11 xext xi xmu xt
|
||||
USE_GL= gl glu glut
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
LDFLAGS_mips= -losgDB
|
||||
LDFLAGS_mips64= -losgDB
|
||||
LDFLAGS_powerpc64= -losgDB
|
||||
LDFLAGS_powerpc= -losgDB
|
||||
LDFLAGS_powerpcspe= -losgDB
|
||||
LDFLAGS_sparc64= -losgDB
|
||||
|
||||
# Needs Clang 4.0+ to build, see:
|
||||
# https://sourceforge.net/p/flightgear/codetickets/2015/
|
||||
.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 40
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/bin/clang40:devel/llvm40
|
||||
CPP= ${LOCALBASE}/bin/clang-cpp40
|
||||
CC= ${LOCALBASE}/bin/clang40
|
||||
CXX= ${LOCALBASE}/bin/clang++40
|
||||
.endif
|
||||
|
||||
# Work around "'to_string' is not a member of 'std'" when building with Gcc < 6
|
||||
.if ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} < 60
|
||||
CFLAGS+= -D_GLIBCXX_USE_C99
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -51,21 +51,4 @@ QT5_CMAKE_OFF= -DENABLE_QT:BOOL=OFF
|
||||
QT5_USES= qt:5
|
||||
QT5_USE= QT=core,buildtools,gui,declarative,network,qmake,widgets
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# Needs Clang 4.0+ to build, see:
|
||||
# https://sourceforge.net/p/flightgear/codetickets/2015/
|
||||
.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 40
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/bin/clang40:devel/llvm40
|
||||
CPP= ${LOCALBASE}/bin/clang-cpp40
|
||||
CC= ${LOCALBASE}/bin/clang40
|
||||
CXX= ${LOCALBASE}/bin/clang++40
|
||||
.endif
|
||||
|
||||
# Chase devel/simgear compiler version
|
||||
.if ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} < 46
|
||||
USE_GCC= yes
|
||||
CXXFLAGS+= -D_GLIBCXX_USE_C99
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user