wok annotate umfpack/receipt @ rev 21820
syslinux/kbd: check kbd malloc pointer
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 25 11:41:26 2019 +0200 (2019-08-25) |
parents | 9e350f60bf7b |
children | d823d9a16027 |
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@17972 | 11 WEB_SITE="http://faculty.cse.tamu.edu/davis/suitesparse.html" |
pascal@17972 | 12 WGET_URL="http://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@17972 | 17 # Rules to configure and make the package. |
pascal@17972 | 18 compile_rules() |
pascal@17972 | 19 { |
pascal@17978 | 20 cat > dynlink.sh <<EOT |
pascal@17978 | 21 lib=\$1 |
pascal@17978 | 22 shift |
pascal@17978 | 23 gcc -shared \$@ -lm -Wl,-soname -Wl,\$(basename \$lib) -o \$lib |
pascal@17978 | 24 EOT |
pascal@17978 | 25 for i in */Doc/ChangeLog ; do |
pascal@17978 | 26 VERSION=$(sed 's/.* version //;q' $i) |
pascal@17978 | 27 sed -i 's/\(.*cd Lib.*MAKE.\)\(.*\)/\1\2\n\1 -f Makefile.d\2/' \ |
pascal@17978 | 28 ${i%%/*}/Makefile |
pascal@17978 | 29 i=${i%%/*}/Lib |
pascal@17978 | 30 sed -e "/RANLIB/d;s/\.a/.so.$VERSION/" \ |
pascal@17978 | 31 -e 's/\.o/.oo/g;s/ -c / -fPIC&/' \ |
pascal@17978 | 32 -e 's|CC.*/\([^/]*\)c$|& -o \1oo|' -e 's|\$<$|$< -o $@|' \ |
pascal@17978 | 33 -e "s|\$(AR[A-Z]*)|sh $src/dynlink.sh|" \ |
pascal@17978 | 34 < $i/Makefile > $i/Makefile.d |
pascal@17978 | 35 done |
pascal@17972 | 36 mkdir -p $DESTDIR/usr/lib $DESTDIR/usr/include |
pascal@17972 | 37 sed -i "s/lopenblas/lblas/;s|/usr/local|$DESTDIR/usr|" \ |
pascal@17972 | 38 SuiteSparse_config/*.mk |
pascal@17972 | 39 make -j 1 && make install |
pascal@17978 | 40 for i in */Lib/*.so.* ; do |
pascal@17978 | 41 cp $i $DESTDIR/usr/lib |
pascal@17978 | 42 l=$(basename $i) |
pascal@17978 | 43 ln -s $l $DESTDIR/usr/lib/${l%.*.*} |
pascal@17978 | 44 ln -s $l $DESTDIR/usr/lib/${l%so*}so |
pascal@17978 | 45 done |
pascal@17972 | 46 } |
pascal@17972 | 47 |
pascal@17972 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17972 | 49 genpkg_rules() |
pascal@17972 | 50 { |
pascal@17978 | 51 mkdir -p $fs/usr/lib |
pascal@17978 | 52 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@17972 | 53 } |