wok view umfpack/receipt @ rev 25083

updated p11-kit and p11-kit-dev (0.23.20 -> 0.24.1)
author Hans-G?nter Theisgen
date Wed Jun 15 17:22:15 2022 +0100 (2022-06-15)
parents d823d9a16027
children 73f36875e5a7
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="http://faculty.cse.tamu.edu/davis/suitesparse.html"
12 WGET_URL="http://faculty.cse.tamu.edu/davis/$SOURCE/$TARBALL"
14 DEPENDS="blas lapack"
15 BUILD_DEPENDS="blas lapack libgfortran"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/DrTimothyAldenDavis/SuiteSparse/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cat > dynlink.sh <<EOT
28 lib=\$1
29 shift
30 gcc -shared \$@ -lm -Wl,-soname -Wl,\$(basename \$lib) -o \$lib
31 EOT
32 for i in */Doc/ChangeLog ; do
33 VERSION=$(sed 's/.* version //;q' $i)
34 sed -i 's/\(.*cd Lib.*MAKE.\)\(.*\)/\1\2\n\1 -f Makefile.d\2/' \
35 ${i%%/*}/Makefile
36 i=${i%%/*}/Lib
37 sed -e "/RANLIB/d;s/\.a/.so.$VERSION/" \
38 -e 's/\.o/.oo/g;s/ -c / -fPIC&/' \
39 -e 's|CC.*/\([^/]*\)c$|& -o \1oo|' -e 's|\$<$|$< -o $@|' \
40 -e "s|\$(AR[A-Z]*)|sh $src/dynlink.sh|" \
41 < $i/Makefile > $i/Makefile.d
42 done
43 mkdir -p $DESTDIR/usr/lib $DESTDIR/usr/include
44 sed -i "s/lopenblas/lblas/;s|/usr/local|$DESTDIR/usr|" \
45 SuiteSparse_config/*.mk
46 sed -i 's|metis-4.0|& 2>/dev/null|' Makefile
47 make -j 1 && make install
48 for i in */Lib/*.so.* ; do
49 cp $i $DESTDIR/usr/lib
50 l=$(basename $i)
51 ln -s $l $DESTDIR/usr/lib/${l%.*.*}
52 ln -s $l $DESTDIR/usr/lib/${l%so*}so
53 done
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr/lib
60 cp -a $install/usr/lib/*.so* $fs/usr/lib
61 }