diff --git a/math/libtommath/Makefile b/math/libtommath/Makefile index 1e721627e196..14cb5f597382 100644 --- a/math/libtommath/Makefile +++ b/math/libtommath/Makefile @@ -1,48 +1,21 @@ PORTNAME= libtommath -DISTVERSION= 1.2.1 +DISTVERSION= 1.3.0 CATEGORIES= math MASTER_SITES= https://github.com/libtom/libtommath/releases/download/v${DISTVERSION}/ DISTNAME= ltm-${DISTVERSION} MAINTAINER= gahr@FreeBSD.org COMMENT= Comprehensive, modular, and portable mathematical routines WWW= https://libtom.net/ LICENSE= UNLICENSE LICENSE_FILE= ${WRKSRC}/LICENSE -USES= gmake libtool:build pathfix tar:xz - +USES= cmake:testing tar:xz +CMAKE_ARGS= -DBUILD_TESTING:BOOL=ON \ + -DCMAKE_INSTALL_PKGCONFIGDIR:STRING=libdata/pkgconfig WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} -USE_LDCONFIG= yes - -MAKEFILE= makefile.shared -MAKE_ENV+= IGNORE_SPEED=yes -ALL_TARGET= default -CFLAGS+= -fPIC -PORTDOCS= * - -PLIST_FILES= include/tommath.h \ - lib/libtommath.a \ - lib/libtommath.so \ - lib/libtommath.so.${DISTVERSION:R:R} \ - lib/libtommath.so.${DISTVERSION} \ - libdata/pkgconfig/libtommath.pc -OPTIONS_DEFINE= DOCS - -post-patch: - @${REINPLACE_CMD} -e 's|$$(LIBPATH)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \ - ${WRKSRC}/${MAKEFILE} - -post-install: - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/bn.pdf ${STAGEDIR}${DOCSDIR} - @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtommath.so.${DISTVERSION} - -do-test: - (cd ${WRKSRC}; \ - ${SETENV} ${MAKE_ENV} ${MAKE_CMD} -f makefile mtest/mtest test; \ - ./mtest/mtest | ./test) +USE_LDCONFIG= yes .include diff --git a/math/libtommath/distinfo b/math/libtommath/distinfo index 6cc0e5e7f56c..bcbacb38c3fd 100644 --- a/math/libtommath/distinfo +++ b/math/libtommath/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1696845190 -SHA256 (ltm-1.2.1.tar.xz) = 986025d7b374276fee2e30e99f3649e4ac0db8a02257a37ee10eae72abed0d1f -SIZE (ltm-1.2.1.tar.xz) = 635728 +TIMESTAMP = 1712044712 +SHA256 (ltm-1.3.0.tar.xz) = 296272d93435991308eb73607600c034b558807a07e829e751142e65ccfa9d08 +SIZE (ltm-1.3.0.tar.xz) = 642776