summaryrefslogtreecommitdiff
path: root/math/z3/Makefile
blob: cc156bcf535d6daeb1752c387a2263f15255a6d1 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# $FreeBSD$

PORTNAME=	z3
PORTVERSION=	4.4.0
DISTVERSIONPREFIX=	${PORTNAME}-
CATEGORIES=	math

MAINTAINER=	6yearold@gmail.com
COMMENT=	Z3 Theorem Prover

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

BROKEN_powerpc64=	Does not build

USE_GITHUB=	yes
GH_ACCOUNT=	Z3Prover

OPTIONS_DEFINE=		DEBUG STATIC

OPTIONS_DEFAULT=	STATIC
OPTIONS_SUB=		yes

DEBUG_CONFIGURE_ON=	--debug

STATIC_DESC=		Build static z3 library
STATIC_CONFIGURE_ON=	--staticlib

GMP_DESC=		Use GMP library for AP arithmetic
GMP_CONFIGURE_ON=	--gmp
GMP_CXXFLAGS=		-I${LOCALBASE}include
GMP_LDFLAGS=		-L${LOCALBASE}/lib
GMP_LIB_DEPENDS=	libgmp.so:math/gmp

HAS_CONFIGURE=		yes
USE_LDCONFIG=		yes
BUILD_WRKSRC=		${WRKSRC}/build
INSTALL_WRKSRC=		${WRKSRC}/build

USES=		python

pre-build:
	${MKDIR} ${STAGEDIR}/${PYTHONPREFIX_SITELIBDIR}

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/z3
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libz3.so
	${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/libz3.so

.include <bsd.port.mk>