svn commit: r446506 - head/devel/simgear

Ganael LAPLANCHE martymac at FreeBSD.org
Sun Jul 23 20:20:01 UTC 2017


Author: martymac
Date: Sun Jul 23 20:19:59 2017
New Revision: 446506
URL: https://svnweb.freebsd.org/changeset/ports/446506

Log:
  - Add missing dependency to c++11-lib following previous commit
    (and remove explicit USE_GCC requirement)
  - Fix build on powerpc64
  
  PR:		220718
  Submitted by:	jbeich

Modified:
  head/devel/simgear/Makefile

Modified: head/devel/simgear/Makefile
==============================================================================
--- head/devel/simgear/Makefile	Sun Jul 23 19:59:16 2017	(r446505)
+++ head/devel/simgear/Makefile	Sun Jul 23 20:19:59 2017	(r446506)
@@ -2,7 +2,7 @@
 
 PORTNAME=	simgear
 PORTVERSION=	2017.1.3
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	devel games
 MASTER_SITES=	SF/flightgear/release-${PORTVERSION:R}
 
@@ -16,17 +16,15 @@ RUN_DEPENDS=	${LOCALBASE}/lib/libplibsl.a:x11-toolkits
 LIB_DEPENDS=	libboost_thread.so:devel/boost-libs \
 		libosg.so:graphics/osg
 
-BROKEN_powerpc64=	fails to compile: Package.cxx: 'to_string' is not a member of 'std
-
 USE_XORG=	ice sm x11 xext xi xmu xt
 USE_GL=		gl glu glut
-USES=		alias cmake compiler cpe jpeg openal:al,alut tar:bzip2
+USES=		alias cmake compiler:c++11-lib cpe jpeg openal:al,alut tar:bzip2
 
 .include <bsd.port.pre.mk>
 
-# When building with Gcc, needs Gcc 4.6+
-.if ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} < 46
-USE_GCC=	yes
+# 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>


More information about the svn-ports-all mailing list