1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

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
This commit is contained in:
Philipp Ost 2023-08-04 17:29:16 +02:00 committed by Thierry Thomas
parent ec83ae75cd
commit d2bb2bbfa9
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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