diff --git a/math/mpdecimal/Makefile b/math/mpdecimal/Makefile index 8149011f6c2a..a5d59a202441 100644 --- a/math/mpdecimal/Makefile +++ b/math/mpdecimal/Makefile @@ -1,27 +1,33 @@ 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 + +.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 +.include