git: 1c7c79813845 - main - math/tlfloat: Improve port and build shared library
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 23 Oct 2025 18:45:32 UTC
The branch main has been updated by diizzy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1c7c798138450d59172b9a348573ec5c09f8f42d
commit 1c7c798138450d59172b9a348573ec5c09f8f42d
Author: Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2025-10-22 20:24:07 +0000
Commit: Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2025-10-23 18:44:46 +0000
math/tlfloat: Improve port and build shared library
* Remove mpfr as dependency, only used for unit tests
* Enable LTO by default
* Don't build utils (not installed)
* Don't build unit tests unless requested
* Enable PIC
* Build shared library instead of static
PR: 289741
Approved by: maintainer timeout, 1+ month
---
math/tlfloat/Makefile | 14 ++++++++++++--
math/tlfloat/pkg-plist | 4 +++-
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/math/tlfloat/Makefile b/math/tlfloat/Makefile
index babeeb34186f..5a3ff504a107 100644
--- a/math/tlfloat/Makefile
+++ b/math/tlfloat/Makefile
@@ -1,6 +1,7 @@
PORTNAME= tlfloat
DISTVERSIONPREFIX=v
DISTVERSION= 1.15.0
+PORTREVISION= 1
CATEGORIES= math
MAINTAINER= thierry@FreeBSD.org
@@ -14,11 +15,20 @@ BROKEN_arm64= error: use of undeclared identifier 'isnanl'
BROKEN_armv7= error: use of undeclared identifier 'isnanl'
BROKEN_i386= error: undefined symbol: __trunctfdf2
-LIB_DEPENDS= libmpfr.so:math/mpfr
+TEST_DEPENDS= mpfr>0:math/mpfr
-USES= cmake:testing compiler:c++20-lang
+USES= cmake:testing compiler:c++20-lang pathfix
USE_GITHUB= yes
GH_ACCOUNT= shibatch
+WITH_LTO= yes
+
+CMAKE_TESTING_ON= BUILD_TESTS
+
+CMAKE_OFF= BUILD_TESTS \
+ BUILD_UTILS
+CMAKE_ON= CMAKE_POSITION_INDEPENDENT_CODE \
+ BUILD_SHARED_LIBS
+
.include <bsd.port.mk>
diff --git a/math/tlfloat/pkg-plist b/math/tlfloat/pkg-plist
index ccd4ce1a5e9d..6d0ce085e3c1 100644
--- a/math/tlfloat/pkg-plist
+++ b/math/tlfloat/pkg-plist
@@ -5,5 +5,7 @@ include/tlfloat/tlfloat.hpp
include/tlfloat/tlfloatconfig.hpp
include/tlfloat/tlmath.hpp
include/tlfloat/tlmathcoef.hpp
-lib/libtlfloat.a
+lib/libtlfloat.so
+lib/libtlfloat.so.1
+lib/libtlfloat.so.1.15.0
libdata/pkgconfig/tlfloat.pc