aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2024-04-03 14:07:15 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2024-04-03 14:16:55 +0000
commitd2c7e86ddfb8cdf05f72c962539442c8a4ace4e8 (patch)
tree51bdbdc94b79b0a605f3256a0f739807aff62d10
parentb8a7b96f160a4e94e3459da3f5399dec945ca10d (diff)
downloadports-d2c7e86ddfb8cdf05f72c962539442c8a4ace4e8.tar.gz
ports-d2c7e86ddfb8cdf05f72c962539442c8a4ace4e8.zip
math/libtommath: update to 1.3.0
-rw-r--r--math/libtommath/Makefile37
-rw-r--r--math/libtommath/distinfo6
2 files changed, 8 insertions, 35 deletions
diff --git a/math/libtommath/Makefile b/math/libtommath/Makefile
index 1e721627e196..14cb5f597382 100644
--- a/math/libtommath/Makefile
+++ b/math/libtommath/Makefile
@@ -1,5 +1,5 @@
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}
@@ -11,38 +11,11 @@ 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 <bsd.port.mk>
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