svn commit: r406993 - head/ports-mgmt/portrac

Raphael Kubo da Costa rakuco at FreeBSD.org
Sat Jan 23 14:31:12 UTC 2016


Author: rakuco
Date: Sat Jan 23 14:31:10 2016
New Revision: 406993
URL: https://svnweb.freebsd.org/changeset/ports/406993

Log:
  Fix build on FreeBSD 9.
  
  Add the same -D_GLIBCXX_USE_C99 trick that a few other ports use so that gcc48
  and its libstdc++ make std::to_string() available.
  
  MFH:		2016Q1

Modified:
  head/ports-mgmt/portrac/Makefile

Modified: head/ports-mgmt/portrac/Makefile
==============================================================================
--- head/ports-mgmt/portrac/Makefile	Sat Jan 23 14:30:29 2016	(r406992)
+++ head/ports-mgmt/portrac/Makefile	Sat Jan 23 14:31:10 2016	(r406993)
@@ -11,7 +11,6 @@ COMMENT=	Simple GUI tool for tracking po
 
 LICENSE=	BSD2CLAUSE
 
-BROKEN_FreeBSD_9=	does not build (lacking c++11 support)
 BROKEN_sparc64=	fails to compile: error in C++ code
 
 PLIST_FILES=	bin/portrac \
@@ -19,6 +18,9 @@ PLIST_FILES=	bin/portrac \
 		share/portrac/up-to-date.png \
 		share/portrac/updates-available.png
 
+# Unhide std::to_string() to fix build with GCC (ports/193528)
+CXXFLAGS=	-D_GLIBCXX_USE_C99
+
 USES=		compiler:c++11-lib qmake tar:bzip2
 USE_CXXSTD=	c++11
 USE_QT5=	widgets buildtools_build


More information about the svn-ports-all mailing list