Index: math/gringo/Makefile =================================================================== --- math/gringo/Makefile +++ math/gringo/Makefile @@ -14,22 +14,19 @@ BUILD_DEPENDS= re2c:${PORTSDIR}/devel/re2c -USES= scons bison compiler:c++11-lang +USES= bison compiler:c++11-lib scons MAKE_ARGS+= ${MAKE_ENV} CXXFLAGS+= -std=c++11 MAKE_ENV+= WITH_LUA=no -PLIST_FILES= bin/${PORTNAME} bin/clingo - -.include +# Unhide std::to_string() with GCC < 4.9 (ports/193528) +CXXFLAGS+= -D_GLIBCXX_USE_C99 -.if ${OSVERSION} < 1000000 -USE_GCC= yes -.endif +PLIST_FILES= bin/${PORTNAME} bin/clingo do-install: ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/build/debug/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/build/debug/clingo ${STAGEDIR}${PREFIX}/bin/clingo -.include +.include