Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Oct 2025 18:45:33 GMT
From:      Daniel Engberg <diizzy@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a35b8115e7e3 - main - math/sleef: Improve port
Message-ID:  <202510231845.59NIjXBm078583@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a35b8115e7e3facd957076f6b6c38e16d8b8a566

commit a35b8115e7e3facd957076f6b6c38e16d8b8a566
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2025-10-22 20:26:00 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2025-10-23 18:44:46 +0000

    math/sleef: Improve port
    
    * Remove LIB_DEPENDS, only used for unit testing
    * Adjust TEST_DEPENDS
    * Ignore CPUTYPE as it causes unit tests to fail on amd64 and likely
      also the library
    * Adjust CMAKE_* for unit tests
    
    PR:             289742
    Approved by:    maintainer timeout, 1+ month
---
 math/sleef/Makefile | 41 +++++++++++++++++++++++++++++++----------
 1 file changed, 31 insertions(+), 10 deletions(-)

diff --git a/math/sleef/Makefile b/math/sleef/Makefile
index 7c0449200a28..c3aed18009f5 100644
--- a/math/sleef/Makefile
+++ b/math/sleef/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	sleef
 DISTVERSION=	3.9.0
+PORTREVISION=	1
 CATEGORIES=	math
 
 MAINTAINER=	thierry@FreeBSD.org
@@ -10,21 +11,41 @@ LICENSE=	BSL
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 BUILD_DEPENDS=	tlfloat>0:math/tlfloat
-LIB_DEPENDS=	libgmp.so:math/gmp	\
-		libmpfr.so:math/mpfr	\
-		libfftw3.so:math/fftw3
-TEST_DEPENDS=	tlfloat>0:math/tlfloat
-
-USES=		cmake:testing compiler:c11 pathfix pkgconfig ssl
-CMAKE_ARGS=	-DSLEEF_BUILD_SHARED_LIBS:BOOL=ON	\
-		-DSLEEF_DISABLE_FLOAT128:BOOL=ON
+TEST_DEPENDS=	fftw3>0:math/fftw3 \
+		fftw3-float>0:math/fftw3-float \
+		gmp>0:math/gmp \
+		mpfr>0:math/mpfr \
+		tlfloat>0:math/tlfloat
+
+USES=		cmake:testing compiler:c11 pathfix pkgconfig
+.if make(test)
+USES+=		ssl
+.endif
 USE_LDCONFIG=	yes
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	shibatch
 
-CMAKE_OFF=	SLEEF_BUILD_TESTS
-CMAKE_TESTING_ON=	SLEEF_BUILD_TESTS
+# CPUTYPE breaks unit tests and presumably the library itself
+.if defined(CPUTYPE) && ${ARCH} == amd64
+CPUTYPE=
+.endif
+
+CMAKE_TESTING_OFF=	CMAKE_DISABLE_FIND_PACKAGE_OpenSSL \
+			SLEEF_DISABLE_FFTW
+CMAKE_TESTING_ON=	SLEEF_BUILD_TESTS \
+			SLEEF_ENABLE_MPFR \
+			SLEEF_ENABLE_SSL
+
+CMAKE_OFF=	SLEEF_BUILD_TESTS \
+		SLEEF_ENABLE_MPFR \
+		SLEEF_ENABLE_SSL
+
+CMAKE_ON=	CMAKE_DISABLE_FIND_PACKAGE_OpenSSL \
+		SLEEF_BUILD_SHARED_LIBS \
+		SLEEF_DISABLE_FLOAT128 \
+		SLEEF_DISABLE_FFTW \
+		SLEEF_ENABLE_TLFLOAT
 
 .include <bsd.port.options.mk>
 


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510231845.59NIjXBm078583>