wok-current annotate umfpack/receipt @ rev 25709

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