wok-next annotate umfpack/receipt @ rev 20511
Up alsa-tools, git, gmerlin.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 16 17:17:21 2018 +0200 (2018-03-16) |
parents | c76d30df5ef0 |
children | d5aab818505e |
rev | line source |
---|---|
al@20341 | 1 # SliTaz package receipt v2. |
pascal@17972 | 2 |
pascal@17972 | 3 PACKAGE="umfpack" |
pascal@17972 | 4 VERSION="4.4.4" |
pascal@17972 | 5 CATEGORY="development" |
al@20341 | 6 SHORT_DESC="Multifrontal LU factorization" |
pascal@17972 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17972 | 8 LICENSE="GPL2" |
pascal@17972 | 9 WEB_SITE="http://faculty.cse.tamu.edu/davis/suitesparse.html" |
pascal@17972 | 10 |
al@20341 | 11 TARBALL="SuiteSparse-$VERSION.tar.gz" |
al@20341 | 12 WGET_URL="http://faculty.cse.tamu.edu/davis/SuiteSparse/$TARBALL" |
al@20341 | 13 |
pascal@17972 | 14 BUILD_DEPENDS="blas lapack libgfortran" |
al@20341 | 15 SPLIT="umfpack-dev" |
pascal@17972 | 16 |
al@20341 | 17 compile_rules() { |
pascal@17978 | 18 cat > dynlink.sh <<EOT |
pascal@17978 | 19 lib=\$1 |
pascal@17978 | 20 shift |
pascal@17978 | 21 gcc -shared \$@ -lm -Wl,-soname -Wl,\$(basename \$lib) -o \$lib |
pascal@17978 | 22 EOT |
al@20341 | 23 for i in */Doc/ChangeLog; do |
pascal@17978 | 24 VERSION=$(sed 's/.* version //;q' $i) |
pascal@17978 | 25 sed -i 's/\(.*cd Lib.*MAKE.\)\(.*\)/\1\2\n\1 -f Makefile.d\2/' \ |
pascal@17978 | 26 ${i%%/*}/Makefile |
pascal@17978 | 27 i=${i%%/*}/Lib |
pascal@17978 | 28 sed -e "/RANLIB/d;s/\.a/.so.$VERSION/" \ |
pascal@17978 | 29 -e 's/\.o/.oo/g;s/ -c / -fPIC&/' \ |
pascal@17978 | 30 -e 's|CC.*/\([^/]*\)c$|& -o \1oo|' -e 's|\$<$|$< -o $@|' \ |
pascal@17978 | 31 -e "s|\$(AR[A-Z]*)|sh $src/dynlink.sh|" \ |
pascal@17978 | 32 < $i/Makefile > $i/Makefile.d |
pascal@17978 | 33 done |
pascal@17972 | 34 mkdir -p $DESTDIR/usr/lib $DESTDIR/usr/include |
pascal@17972 | 35 sed -i "s/lopenblas/lblas/;s|/usr/local|$DESTDIR/usr|" \ |
pascal@17972 | 36 SuiteSparse_config/*.mk |
al@20341 | 37 |
pascal@17972 | 38 make -j 1 && make install |
al@20341 | 39 |
al@20341 | 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 |
al@20341 | 48 genpkg_rules() { |
al@20341 | 49 case $PACKAGE in |
al@20341 | 50 umfpack) |
al@20341 | 51 copy @std |
al@20341 | 52 DEPENDS="blas lapack" |
al@20341 | 53 ;; |
al@20341 | 54 *-dev) |
al@20341 | 55 copy @dev |
al@20341 | 56 ;; |
al@20341 | 57 esac |
pascal@17972 | 58 } |