blob: 54f108c9ffb051e4f60ea5abd5c25f3c625ea9cc (
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
|
# New ports collection makefile for: libgmp3
# Date created: Jan 11, 2001
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= gmp
PORTVERSION= 5.0.2
CATEGORIES= math devel
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= gmp
DISTNAME= gmp-${PORTVERSION}
MAINTAINER= ale@FreeBSD.org
COMMENT= A free library for arbitrary precision arithmetic
CONFLICTS= libgmp-4.*
OPTIONS= CPU_OPTS "Enable assembly optimizations for your CPU" off
LICENSE= LGPL3
LICENSE_FILE= ${WRKSRC}/COPYING.LIB
USE_BZIP2= yes
HAS_CONFIGURE= yes
CONFIGURE_ENV= MAKEINFO="makeinfo --no-split"
CONFIGURE_ARGS= --prefix=${PREFIX} \
--infodir=${PREFIX}/info \
--mandir=${PREFIX}/man \
--enable-cxx
MAKE_JOBS_SAFE= yes
USE_LDCONFIG= yes
INFO= gmp
.include <bsd.port.pre.mk>
.if !defined(WITH_CPU_OPTS)
CONFIGURE_ARGS+=--build=${ARCH}-portbld-freebsd${OSREL}
.elif ${ARCH:S/64//} != ${ARCH}
CONFIGURE_ENV+= ABI="64"
.else
CONFIGURE_ENV+= ABI="32"
.endif
post-extract:
@${RM} -f ${WRKSRC}/doc/gmp.info*
post-patch:
@${REINPLACE_CMD} "s/\(athlon64\-\*\-\*\)/amd64-*-* | \1/;s/\(x86_64)\)/amd64 | \1/" \
${WRKSRC}/configure
regression-test check: build
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check
.include <bsd.port.post.mk>
|