wok-6.x annotate umfpack/receipt @ rev 23902
Add SECRET_FILES variable
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 01 16:19:51 2020 +0000 (2020-08-01) |
parents | c76d30df5ef0 |
children | 922f061231c2 |
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@22351 | 39 sed -i 's|metis-4.0|& 2>/dev/null|' Makefile |
pascal@17972 | 40 make -j 1 && make install |
pascal@17978 | 41 for i in */Lib/*.so.* ; do |
pascal@17978 | 42 cp $i $DESTDIR/usr/lib |
pascal@17978 | 43 l=$(basename $i) |
pascal@17978 | 44 ln -s $l $DESTDIR/usr/lib/${l%.*.*} |
pascal@17978 | 45 ln -s $l $DESTDIR/usr/lib/${l%so*}so |
pascal@17978 | 46 done |
pascal@17972 | 47 } |
pascal@17972 | 48 |
pascal@17972 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17972 | 50 genpkg_rules() |
pascal@17972 | 51 { |
pascal@17978 | 52 mkdir -p $fs/usr/lib |
pascal@17978 | 53 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@17972 | 54 } |