2013-03-08 12:32:11 +01:00
|
|
|
# Created by: Li-Wen Hsu <lwhsu@lwhsu.org>
|
2007-03-25 06:04:30 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= cvc3
|
2012-02-04 15:37:52 +01:00
|
|
|
PORTVERSION= 2.4.1
|
Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.
PR: 231590
2018-12-12 02:35:33 +01:00
|
|
|
PORTREVISION= 6
|
2007-03-25 06:04:30 +02:00
|
|
|
CATEGORIES= math
|
2012-02-04 15:37:52 +01:00
|
|
|
MASTER_SITES= http://www.cs.nyu.edu/acsys/cvc3/download/${PORTVERSION}/
|
2007-03-25 06:04:30 +02:00
|
|
|
|
2007-04-04 10:49:31 +02:00
|
|
|
MAINTAINER= lwhsu@FreeBSD.org
|
2014-07-07 17:31:01 +02:00
|
|
|
COMMENT= Automatic theorem prover for the SMT problem
|
2007-03-25 06:04:30 +02:00
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS= libgmp.so:math/gmp
|
2007-03-25 06:04:30 +02:00
|
|
|
|
|
|
|
CONFIGURE_ARGS= --enable-dynamic \
|
|
|
|
--with-arith=gmp \
|
|
|
|
--with-build=optimized \
|
|
|
|
--with-extra-includes=${LOCALBASE}/include \
|
|
|
|
--with-extra-libs=${LOCALBASE}/lib
|
|
|
|
CXXFLAGS+= -fPIC
|
|
|
|
GNU_CONFIGURE= yes
|
2016-10-21 17:21:13 +02:00
|
|
|
USES= bison gmake pathfix perl5
|
|
|
|
PATHFIX_MAKEFILEIN= Makefile
|
math/cvc3: unbreak with gcc6 or later
In file included from src/include/expr_manager.h:445:0,
from src/include/expr.h:803,
from expr.cpp:25:
src/include/expr_value.h: In static member function 'static size_t CVC3::ExprString::hash(const string&)':
src/include/expr_value.h:667:34: error: no match for call to '(std::hash<char*>) (const char*)'
return s_charHash(str.c_str());
^
In file included from src/include/hash_map.h:54:0,
from src/include/compat_hash_map.h:34,
from src/include/expr.h:33,
from src/include/assumptions.h:36,
from src/include/theorem_producer.h:75,
from common_theorem_producer.h:34,
from common_theorem_producer.cpp:27:
src/include/hash_table.h: In instantiation of 'Hash::hash_table<_Key, _Value, _HashFcn, _EqualKey, _ExtractKey>::~hash_table() [with _Key = CVC3::Expr; _Value = std::pair<const CVC3::Expr, CVC3::CDOmap<CVC3::Expr, CVC3::Theorem, std::hash<CVC3::Expr> >*>; _HashFcn = std::hash<CVC3::Expr>; _EqualKey = std::equal_to<CVC3::Expr>; _ExtractKey = Hash::_Select1st<std::pair<const CVC3::Expr, CVC3::CDOmap<CVC3::Expr, CVC3::Theorem, std::hash<CVC3::Expr> >*> >]':
src/include/hash_map.h:82:9: required from 'CVC3::CDMap<Key, Data, HashFcn>::~CDMap() [with Key = CVC3::Expr; Data = CVC3::Theorem; HashFcn = std::hash<CVC3::Expr>]'
common_theorem_producer.h:60:38: required from here
src/include/hash_table.h:319:5: error: use of deleted function 'std::hash<CVC3::Expr>::~hash()'
}
^
2017-02-11 20:54:32 +01:00
|
|
|
USE_CXXSTD= gnu++98
|
2013-11-13 16:55:09 +01:00
|
|
|
USE_GCC= any
|
2007-03-25 06:04:30 +02:00
|
|
|
USE_LDCONFIG= yes
|
2012-02-04 15:37:52 +01:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's,/bin/bash,/bin/sh,' ${WRKSRC}/Makefile.std
|
|
|
|
${REINPLACE_CMD} -e 's,.*$$(LDCONFIG).*,,' ${WRKSRC}/src/Makefile
|
|
|
|
|
|
|
|
post-install:
|
2014-07-16 05:25:07 +02:00
|
|
|
${INSTALL_PROGRAM} `readlink ${WRKSRC}/bin/cvc3` ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcvc3.so.5.0.0
|
2012-02-04 15:37:52 +01:00
|
|
|
|
2013-09-16 18:32:07 +02:00
|
|
|
.include <bsd.port.mk>
|