Lines 1-57
Link Here
|
1 |
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org> |
1 |
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org> |
2 |
|
2 |
|
3 |
PORTNAME= gmp |
3 |
PORTNAME= gmp |
4 |
PORTVERSION= 6.2.1 |
4 |
PORTVERSION= 6.2.1 |
5 |
CATEGORIES= math devel |
5 |
CATEGORIES= math devel |
6 |
MASTER_SITES= GNU |
6 |
MASTER_SITES= GNU |
7 |
|
7 |
|
8 |
MAINTAINER= ale@FreeBSD.org |
8 |
MAINTAINER= ale@FreeBSD.org |
9 |
COMMENT= Free library for arbitrary precision arithmetic |
9 |
COMMENT= Free library for arbitrary precision arithmetic |
10 |
|
10 |
|
11 |
LICENSE= LGPL3 |
11 |
LICENSE= LGPL3 |
12 |
|
12 |
|
13 |
USES= cpe libtool makeinfo tar:xz |
13 |
USES= cpe libtool tar:xz |
14 |
|
14 |
|
15 |
CPE_VENDOR= gmplib |
15 |
CPE_VENDOR= gmplib |
16 |
|
16 |
|
17 |
OPTIONS_DEFINE= CPU_OPTS |
17 |
OPTIONS_DEFINE= CPU_OPTS INFO |
|
|
18 |
OPTIONS_DEFAULT= INFO |
19 |
|
18 |
CPU_OPTS_DESC= Enable assembly optimizations for your CPU |
20 |
CPU_OPTS_DESC= Enable assembly optimizations for your CPU |
19 |
|
21 |
|
20 |
HAS_CONFIGURE= yes |
22 |
HAS_CONFIGURE= yes |
21 |
CONFIGURE_ENV= MAKEINFO="${MAKEINFO} --no-split" |
23 |
CONFIGURE_ENV= MAKEINFO="${MAKEINFO} --no-split" |
22 |
CONFIGURE_ARGS= --prefix=${PREFIX} \ |
24 |
CONFIGURE_ARGS= --prefix=${PREFIX} \ |
23 |
--infodir=${PREFIX}/${INFO_PATH} \ |
25 |
--infodir=${PREFIX}/${INFO_PATH} \ |
24 |
--mandir=${PREFIX}/man \ |
26 |
--mandir=${MANPREFIX}/man \ |
25 |
--enable-cxx |
27 |
--enable-cxx |
26 |
|
28 |
|
27 |
USE_LDCONFIG= yes |
29 |
USE_LDCONFIG= yes |
28 |
|
30 |
|
29 |
INFO= gmp |
31 |
INFO_INFO= gmp |
|
|
32 |
INFO_USES= makeinfo |
30 |
|
33 |
|
31 |
INSTALL_TARGET= install-strip |
34 |
INSTALL_TARGET= install-strip |
32 |
TEST_TARGET= check |
35 |
TEST_TARGET= check |
33 |
|
36 |
|
34 |
.include <bsd.port.pre.mk> |
37 |
.include <bsd.port.pre.mk> |
35 |
|
38 |
|
36 |
.if ${ARCH:Mmips*} |
39 |
.if ${ARCH:Mmips*} |
37 |
MAKE_JOBS_UNSAFE=yes |
40 |
MAKE_JOBS_UNSAFE=yes |
38 |
.endif |
41 |
.endif |
39 |
|
42 |
|
40 |
.if ! ${PORT_OPTIONS:MCPU_OPTS} |
43 |
.if ! ${PORT_OPTIONS:MCPU_OPTS} |
41 |
CONFIGURE_ARGS+=--build=${CONFIGURE_TARGET} |
44 |
CONFIGURE_ARGS+=--build=${CONFIGURE_TARGET} |
42 |
.elif ${ARCH:S/64//} != ${ARCH} |
45 |
.elif ${ARCH:S/64//} != ${ARCH} |
43 |
.if ${ARCH:Mpowerpc64*} |
46 |
.if ${ARCH:Mpowerpc64*} |
44 |
CONFIGURE_ENV+= ABI="mode64" |
47 |
CONFIGURE_ENV+= ABI="mode64" |
45 |
.elif ${ARCH:Mriscv64*} |
48 |
.elif ${ARCH:Mriscv64*} |
46 |
CONFIGURE_ENV+= ABI="standard" |
49 |
CONFIGURE_ENV+= ABI="standard" |
47 |
.else |
50 |
.else |
48 |
CONFIGURE_ENV+= ABI="64" |
51 |
CONFIGURE_ENV+= ABI="64" |
49 |
.endif |
52 |
.endif |
50 |
.else |
53 |
.else |
51 |
CONFIGURE_ENV+= ABI="32" |
54 |
CONFIGURE_ENV+= ABI="32" |
52 |
.endif |
55 |
.endif |
53 |
|
56 |
|
54 |
post-extract: |
57 |
post-extract-INFO-on: |
55 |
@${RM} ${WRKSRC}/doc/gmp.info* |
58 |
@${RM} ${WRKSRC}/doc/gmp.info* |
56 |
|
59 |
|
|
|
60 |
post-install-INFO-off: |
61 |
@${RM} ${STAGEDIR}${PREFIX}/${INFO_PATH}/*.info* |
62 |
|
57 |
.include <bsd.port.post.mk> |
63 |
.include <bsd.port.post.mk> |
58 |
- |
|
|