Skip to content

Commit

Permalink
suitesparse: bump to 7.3.0 (#730)
Browse files Browse the repository at this point in the history
  • Loading branch information
licy183 authored Dec 14, 2023
1 parent 4f83e83 commit ab5484e
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 71 deletions.
55 changes: 46 additions & 9 deletions tur/suitesparse/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ TERMUX_PKG_HOMEPAGE=https://github.com/DrTimothyAldenDavis/SuiteSparse
TERMUX_PKG_DESCRIPTION="A Suite of Sparse matrix packages."
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=7.0.1
TERMUX_PKG_SRCURL=https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=dc2f8d5c2657c120b30cce942f634ec08fc3a4b0b10e19d3eef7790b2bec8d1e
TERMUX_PKG_DEPENDS="libopenblas, libgmp, libmpfr"
TERMUX_PKG_VERSION=1:7.3.1
TERMUX_PKG_SRCURL=https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/refs/tags/v${TERMUX_PKG_VERSION#*:}.tar.gz
TERMUX_PKG_SHA256=b512484396a80750acf3082adc1807ba0aabb103c2e09be5691f46f14d0a9718
TERMUX_PKG_DEPENDS="blas-openblas, libopenblas, libgmp, libmpfr"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_FORCE_CMAKE=true
TERMUX_PKG_EXTRA_MAKE_ARGS="BLAS=-lopenblas LAPACK="
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DCMAKE_SYSTEM_NAME=Linux
-DBLA_VENDOR=Generic
-DALLOW_64BIT_BLAS=OFF
"

source $TERMUX_SCRIPTDIR/common-files/setup_toolchain_gcc.sh

Expand Down Expand Up @@ -61,12 +66,44 @@ termux_step_make() {
CMAKE_OPTIONS+=" -DCMAKE_USE_SYSTEM_LIBRARIES=True"
CMAKE_OPTIONS+=" -DDOXYGEN_EXECUTABLE="
CMAKE_OPTIONS+=" -DBUILD_TESTING=OFF"
CMAKE_OPTIONS+=" $TERMUX_PKG_EXTRA_CONFIGURE_ARGS"
CMAKE_OPTIONS+=" $(echo $TERMUX_PKG_EXTRA_CONFIGURE_ARGS)"

make -j $TERMUX_MAKE_PROCESSES $TERMUX_PKG_EXTRA_MAKE_ARGS \
CMAKE_OPTIONS="$CMAKE_OPTIONS"
make -j $TERMUX_MAKE_PROCESSES \
CMAKE_OPTIONS="$CMAKE_OPTIONS" JOBS=$TERMUX_MAKE_PROCESSES
}

termux_step_make_install() {
make install INSTALL=$TERMUX_PREFIX $TERMUX_PKG_EXTRA_MAKE_ARGS
make install INSTALL=$TERMUX_PREFIX
}

termux_step_post_massage() {
# Do not forget to bump revision of reverse dependencies and rebuild them
# after SOVERSION is changed.
local _SOVERSION_GUARD_FILES="
lib/libamd.so.3
lib/libbtf.so.2
lib/libcamd.so.3
lib/libccolamd.so.3
lib/libcholmod.so.5
lib/libcolamd.so.3
lib/libcxsparse.so.4
lib/libgpuqrengine.so.3
lib/libgraphblas.so.8
lib/libklu.so.2
lib/libklu_cholmod.so.2
lib/libldl.so.3
lib/libmongoose.so.3
lib/librbio.so.4
lib/libspex.so.2
lib/libspqr.so.4
lib/libsuitesparse_gpuruntime.so.3
lib/libsuitesparseconfig.so.7
lib/libumfpack.so.6
"
local f
for f in ${_SOVERSION_GUARD_FILES}; do
if [ ! -e "${f}" ]; then
termux_error_exit "SOVERSION guard check failed."
fi
done
}
62 changes: 0 additions & 62 deletions tur/suitesparse/remove_-lrt.patch

This file was deleted.

0 comments on commit ab5484e

Please sign in to comment.