Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Aug 2023 15:39:02 GMT
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: d2bb2bbfa994 - main - math/linbox: add OpenCL dependency
Message-ID:  <202308041539.374Fd2rI043335@gitrepo.freebsd.org>

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

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

commit d2bb2bbfa994359bd8352b8d83101531611583ff
Author:     Philipp Ost <bsd@philippost.de>
AuthorDate: 2023-08-04 15:29:16 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2023-08-04 15:37:57 +0000

    math/linbox: add OpenCL dependency
    
    math/linbox currently picks up libOpenCL.so if it is present on the
    system, but does not declare it as a dependency. The attached patch adds
    it as a library dependency to the complete package and disables it for
    the minimal package.
    
    PR:             257891
    Reported by:    bsd (at) philippost.de
---
 math/linbox/Makefile  | 9 ++++++---
 math/linbox/pkg-plist | 1 +
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/math/linbox/Makefile b/math/linbox/Makefile
index 10855a2bec51..e86da401bddc 100644
--- a/math/linbox/Makefile
+++ b/math/linbox/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	linbox
 PORTVERSION=	1.7.0
 DISTVERSIONPREFIX=	v
+PORTREVISION=	1
 CATEGORIES=	math
 
 MAINTAINER=	thierry@FreeBSD.org
@@ -22,7 +23,8 @@ RUN_DEPENDS=	bash:shells/bash
 USE_GITHUB=	yes
 GH_ACCOUNT=	linbox-team
 
-USES=		autoreconf blaslapack:openblas compiler:c++11-lang gmake libtool localbase pkgconfig shebangfix
+USES=		autoreconf blaslapack:openblas compiler:c++11-lang gmake	\
+		libtool localbase pkgconfig shebangfix
 
 SHEBANG_FILES=	benchmarks/perfpublisher.sh linbox-auto-install.sh	\
 		linbox-config.in tests/jenkins-maker.sh	\
@@ -35,7 +37,7 @@ OPTIONS_DEFAULT=	FULL
 OPTIONS_SUB=		yes
 
 MIN_DESC=		Lightweight package, with less dependencies
-MIN_CONFIGURE_ON=	--without-saclib
+MIN_CONFIGURE_ON=	--without-saclib --without-ocl
 
 FULL_DESC=		Complete package with all its dependencies
 FULL_BUILD_DEPENDS=	gnuplot:math/gnuplot
@@ -44,10 +46,11 @@ FULL_LIB_DEPENDS=	libflint.so:math/flint2		\
 			libiml.so:math/iml		\
 			libmpfr.so:math/mpfr		\
 			libntl.so:math/ntl		\
+			libOpenCL.so:devel/ocl-icd	\
 			libtinyxml2.so:textproc/tinyxml2
 FULL_RUN_DEPENDS=	gnuplot:math/gnuplot
 FULL_USES=		ghostscript
-FULL_CONFIGURE_WITH=	flint fplll ghostscript gnuplot iml mpfr ntl
+FULL_CONFIGURE_WITH=	flint fplll ghostscript gnuplot iml mpfr ntl ocl
 
 DOXYGEN_VARS=		BINARY_ALIAS=sed=${LOCALBASE}/bin/gsed
 DOXYGEN_CONFIGURE_ENABLE=doc
diff --git a/math/linbox/pkg-plist b/math/linbox/pkg-plist
index a08ba57bf119..d21d8dca9bd7 100644
--- a/math/linbox/pkg-plist
+++ b/math/linbox/pkg-plist
@@ -90,6 +90,7 @@ include/linbox/algorithms/minpoly-rational.h
 include/linbox/algorithms/numeric-solver-lapack.h
 include/linbox/algorithms/one-invariant-factor.h
 include/linbox/algorithms/opencl-environ.h
+%%FULL%%include/linbox/algorithms/opencl-kernels/opencl-domain-kernels.inl
 include/linbox/algorithms/opencl-resource-controller.h
 include/linbox/algorithms/poly-det.h
 include/linbox/algorithms/poly-dixon.h



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