aboutsummaryrefslogtreecommitdiff
path: root/math/py-z3-solver/Makefile
blob: 38a4cac939c557d080b31b04cf85b35a06f73b6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $FreeBSD$

PORTNAME=	z3-solver
DISTVERSIONPREFIX=	z3-
DISTVERSION=	4.8.4
PORTREVISION=	2
CATEGORIES=	math
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Python binding for Z3 Theorem Prover

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/../../../LICENSE.txt

# CAVEAT: It should have LIB_DEPENDS=libz3.so:math/z3, but currently it rebuilds all code, see https://github.com/Z3Prover/z3/issues/1767

USES=		compiler:c++11-lang python
USE_GITHUB=	yes
GH_ACCOUNT=	Z3Prover
GH_PROJECT=	z3
USE_PYTHON=	distutils autoplist

WRKSRC_SUBDIR=	src/api/python

CXXFLAGS+=	-fPIC # failure message on 13-i386 suggested -fPIC, no other platforms experienced failures

post-patch: # https://github.com/Z3Prover/z3/issues/2131
	@${REINPLACE_CMD} 's|…|...|' ${WRKSRC}/../../ast/recfun_decl_plugin.h

.include <bsd.port.mk>