Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jul 2024 10:04:50 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 124ca4902765 - main - math/cminpack: long double libraries are not installed on powerpc*
Message-ID:  <202407091004.469A4oRk005373@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

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

commit 124ca4902765c74eb8c8006c7d31a74da35f7055
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-07-08 11:49:37 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-07-09 10:04:25 +0000

    math/cminpack: long double libraries are not installed on powerpc*
    
    long double on powerpc* is equal to double.
---
 math/cminpack/Makefile  | 9 +++++++++
 math/cminpack/pkg-plist | 8 ++++----
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/math/cminpack/Makefile b/math/cminpack/Makefile
index ff9e28068456..11560a7c5289 100644
--- a/math/cminpack/Makefile
+++ b/math/cminpack/Makefile
@@ -20,6 +20,15 @@ CMAKE_OFF=	USE_BLAS
 
 OPTIONS_DEFINE=	EXAMPLES
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH:Mpowerpc*}
+PLIST_SUB+=	NOT_POWERPC="@comment "
+.else
+PLIST_SUB+=	NOT_POWERPC=""
+.endif
+
+
 post-install-EXAMPLES-on:
 	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} "*.[ch] testdata" \
diff --git a/math/cminpack/pkg-plist b/math/cminpack/pkg-plist
index fc998bc76a4e..d165243ced8f 100644
--- a/math/cminpack/pkg-plist
+++ b/math/cminpack/pkg-plist
@@ -3,14 +3,14 @@ include/cminpack-1/minpack.h
 lib/libcminpack.so
 lib/libcminpack.so.1
 lib/libcminpack.so.1.3.9
-lib/libcminpackld.so
-lib/libcminpackld.so.1
-lib/libcminpackld.so.1.3.9
+%%NOT_POWERPC%%lib/libcminpackld.so
+%%NOT_POWERPC%%lib/libcminpackld.so.1
+%%NOT_POWERPC%%lib/libcminpackld.so.1.3.9
 lib/libcminpacks.so
 lib/libcminpacks.so.1
 lib/libcminpacks.so.1.3.9
 libdata/pkgconfig/cminpack.pc
-libdata/pkgconfig/cminpackld.pc
+%%NOT_POWERPC%%libdata/pkgconfig/cminpackld.pc
 libdata/pkgconfig/cminpacks.pc
 %%DATADIR%%/CMinpackConfig-%%CMAKE_BUILD_TYPE%%.cmake
 %%DATADIR%%/CMinpackConfig.cmake



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