aboutsummaryrefslogtreecommitdiff
path: root/math/mpdecimal/Makefile
blob: ae4b93e90312af8badca88095a0fb74ee1748b72 (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
PORTNAME=	mpdecimal
DISTVERSION=	2.5.1
CATEGORIES=	math
MASTER_SITES=	https://www.bytereef.org/software/mpdecimal/releases/

MAINTAINER=	skrah@bytereef.org
COMMENT=	C/C++ arbitrary precision decimal floating point libraries
WWW=		https://www.bytereef.org/mpdecimal/index.html

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

USES=		compiler:c++11-lang gmake

GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
ALL_TARGET=	default
TEST_TARGET=	check_local

PORTDOCS=	libmpdec++/* libmpdec/*

OPTIONS_DEFINE=	DOCS

.include <bsd.port.pre.mk>

.if ${CHOSEN_COMPILER_TYPE} == gcc
CONFIGURE_ARGS=	LD="${CC}" LDXX="${CXX}"
.endif

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmpdec.so.${DISTVERSION}
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmpdec++.so.${DISTVERSION}

.include <bsd.port.post.mk>