aboutsummaryrefslogtreecommitdiff
path: root/math/gmp/Makefile
blob: eafe69d0eb6d36410222f786f40906d9b460d59b (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
51
52
53
54
55
56
57
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>

PORTNAME=	gmp
PORTVERSION=	6.2.1
CATEGORIES=	math devel
MASTER_SITES=	GNU

MAINTAINER=	ale@FreeBSD.org
COMMENT=	Free library for arbitrary precision arithmetic

LICENSE=	LGPL3

USES=		cpe libtool makeinfo tar:xz

CPE_VENDOR=	gmplib

OPTIONS_DEFINE=	CPU_OPTS
CPU_OPTS_DESC=	Enable assembly optimizations for your CPU

HAS_CONFIGURE=	yes
CONFIGURE_ENV=	MAKEINFO="${MAKEINFO} --no-split"
CONFIGURE_ARGS=	--prefix=${PREFIX} \
		--infodir=${PREFIX}/${INFO_PATH} \
		--mandir=${PREFIX}/man \
		--enable-cxx

USE_LDCONFIG=	yes

INFO=		gmp

INSTALL_TARGET=	install-strip
TEST_TARGET=	check

.include <bsd.port.pre.mk>

.if ${ARCH:Mmips*}
MAKE_JOBS_UNSAFE=yes
.endif

.if ! ${PORT_OPTIONS:MCPU_OPTS}
CONFIGURE_ARGS+=--build=${CONFIGURE_TARGET}
.elif ${ARCH:S/64//} != ${ARCH}
.if ${ARCH:Mpowerpc64*}
CONFIGURE_ENV+=	ABI="mode64"
.elif ${ARCH:Mriscv64*}
CONFIGURE_ENV+=	ABI="standard"
.else
CONFIGURE_ENV+=	ABI="64"
.endif
.else
CONFIGURE_ENV+=	ABI="32"
.endif

post-extract:
	@${RM} ${WRKSRC}/doc/gmp.info*

.include <bsd.port.post.mk>