9ef8e3b8c3
Despite ports r340913, the port still fails to build on FreeBSD 9.3 with lang/gcc (GCC 4.8): libreify/src/parser.cc: In member function 'void Reify::Parser::parseProgram()': libreify/src/parser.cc:130:51: error: 'to_string' is not a member of 'std' Apply a workaround for bug 193528 found in other ports to make that function visible to GCC 4.8 (GCC 4.9 and later are fine). Additionally, the port actually requires a C++11 standard library in addition to a C++11-compliant compiler, so adjust the USES line and later simplify the process of choosing which compiler to use. Approved by: vsevolod (maintainer) Differential Revision: https://reviews.freebsd.org/D3545
32 lines
840 B
Makefile
32 lines
840 B
Makefile
# Created by: Vsevolod Stakhov <vsevolod@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gringo
|
|
PORTVERSION= 4.5.2
|
|
DISTVERSIONSUFFIX= -source
|
|
CATEGORIES= math devel
|
|
MASTER_SITES= SOURCEFORGE/potassco/${PORTNAME}/${PORTVERSION}
|
|
|
|
MAINTAINER= vsevolod@FreeBSD.org
|
|
COMMENT= Grounding algorithm based on semi-naive database evaluation
|
|
|
|
LICENSE= GPLv3
|
|
|
|
BUILD_DEPENDS= re2c:${PORTSDIR}/devel/re2c
|
|
|
|
USES= bison compiler:c++11-lib scons
|
|
|
|
MAKE_ARGS+= ${MAKE_ENV}
|
|
CXXFLAGS+= -std=c++11
|
|
MAKE_ENV+= WITH_LUA=no
|
|
|
|
# Unhide std::to_string() with GCC < 4.9 (ports/193528)
|
|
CXXFLAGS+= -D_GLIBCXX_USE_C99
|
|
|
|
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 <bsd.port.mk>
|