freebsd-ports/math/mpdecimal/Makefile
Piotr Kubaj 9bec8e98ba math/mpdecimal: actually fix build on GCC architectures
configure script is written so that the compiler binary is used for linking.
2021-10-01 15:29:48 +00:00

33 lines
745 B
Makefile

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
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>