From 771ba9b3724b231f8beb3842f0957653e34daf44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Fri, 28 Oct 2022 19:00:39 -0300 Subject: [PATCH] igraph: update to 0.10.2. Also: use openblas instead of lapack when available. --- common/shlibs | 2 +- srcpkgs/igraph/template | 21 ++++++++++++++++----- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/common/shlibs b/common/shlibs index 6446b42400d..644676c76ec 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3883,7 +3883,7 @@ libjsonnet.so.0 jsonnet-0.14.0_2 libjsonnet++.so.0 jsonnet-0.14.0_2 libigdgmm.so.12 intel-gmmlib-22.1.3_1 libigfxcmrt.so.7 intel-media-driver-21.3.5_1 -libigraph.so.0 igraph-0.9.4_1 +libigraph.so.3 igraph-0.10.2_1 libgtk-layer-shell.so.0 gtk-layer-shell-0.1.0_1 librdkafka.so.1 librdkafka-1.4.4_3 librdkafka++.so.1 librdkafka-1.4.4_3 diff --git a/srcpkgs/igraph/template b/srcpkgs/igraph/template index 983de0006d3..0075cb24a31 100644 --- a/srcpkgs/igraph/template +++ b/srcpkgs/igraph/template @@ -1,18 +1,29 @@ # Template file for 'igraph' pkgname=igraph -version=0.9.8 +version=0.10.2 revision=1 build_style=cmake -configure_args="-DIGRAPH_ENABLE_TLS=on -DIGRAPH_ENABLE_LTO=on -DBUILD_SHARED_LIBS=ON" -hostmakedepends="flex bison python3" -makedepends="arpack-ng-devel glpk-devel gmp-devel lapack-devel libgomp-devel libxml2-devel SuiteSparse-devel" +configure_args="-DIGRAPH_ENABLE_TLS=on -DIGRAPH_ENABLE_LTO=on -DBUILD_SHARED_LIBS=ON + -DBLA_VENDOR=$(vopt_if openblas 'OpenBLAS' 'Generic')" +makedepends="arpack-ng-devel glpk-devel gmp-devel libgomp-devel libxml2-devel + $(vopt_if openblas 'openblas-devel' 'lapack-devel')" short_desc="Graph library" maintainer="Gonzalo TornarĂ­a " license="GPL-2.0-or-later" homepage="https://igraph.org/c/" changelog="https://raw.githubusercontent.com/igraph/igraph/master/CHANGELOG.md" distfiles="https://github.com/igraph/igraph/releases/download/${version}/igraph-${version}.tar.gz" -checksum=f9a83473cea3e037b605b79b336be656b00dcf3037b233b4b250bd9270f36397 +checksum=2c2b9f18fc2f84b327f1146466942eb3e3d2ff09b6738504efb9e5edf2728c83 + +build_options="openblas" + +case "$XBPS_TARGET_MACHINE" in + x86_64*|i686*|aarch64*|armv[67]*|ppc64*) + # Prefer accelerated routines where available + build_options_default="openblas" + ;; + *) ;; +esac igraph-devel_package() { depends="${makedepends} ${sourcepkg}>=${version}_${revision}"