wok view umfpack/receipt @ rev 25846
Update some urls
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 23 07:09:13 2025 +0000 (3 weeks ago) |
parents | 0262035dc1e7 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="umfpack"
4 SOURCE="SuiteSparse"
5 VERSION="4.4.4"
6 CATEGORY="development"
7 SHORT_DESC="Multifrontal LU factorization."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://github.com/DrTimothyAldenDavis/SuiteSparse"
12 #WGET_URL="https://faculty.cse.tamu.edu/davis/$SOURCE/$TARBALL"
13 WGET_URL="https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/refs/tags/v$VERSION.tar.gz"
15 DEPENDS="blas lapack"
16 BUILD_DEPENDS="blas lapack libgfortran"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://github.com/DrTimothyAldenDavis/SuiteSparse/releases 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/[A-Za-z_-]*||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cat > dynlink.sh <<EOT
29 lib=\$1
30 shift
31 gcc -shared \$@ -lm -Wl,-soname -Wl,\$(basename \$lib) -o \$lib
32 EOT
33 for i in */Doc/ChangeLog ; do
34 VERSION=$(sed 's/.* version //;q' $i)
35 sed -i 's/\(.*cd Lib.*MAKE.\)\(.*\)/\1\2\n\1 -f Makefile.d\2/' \
36 ${i%%/*}/Makefile
37 i=${i%%/*}/Lib
38 sed -e "/RANLIB/d;s/\.a/.so.$VERSION/" \
39 -e 's/\.o/.oo/g;s/ -c / -fPIC&/' \
40 -e 's|CC.*/\([^/]*\)c$|& -o \1oo|' -e 's|\$<$|$< -o $@|' \
41 -e "s|\$(AR[A-Z]*)|sh $src/dynlink.sh|" \
42 < $i/Makefile > $i/Makefile.d
43 done
44 mkdir -p $DESTDIR/usr/lib $DESTDIR/usr/include
45 sed -i "s/lopenblas/lblas/;s|/usr/local|$DESTDIR/usr|" \
46 SuiteSparse_config/*.mk
47 sed -i 's|metis-4.0|& 2>/dev/null|' Makefile
48 make -j 1 && make install
49 for i in */Lib/*.so.* ; do
50 cp $i $DESTDIR/usr/lib
51 l=$(basename $i)
52 ln -s $l $DESTDIR/usr/lib/${l%.*.*}
53 ln -s $l $DESTDIR/usr/lib/${l%so*}so
54 done
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 mkdir -p $fs/usr/lib
61 cp -a $install/usr/lib/*.so* $fs/usr/lib
62 }