wok view umfpack/receipt @ rev 19188

Up tazpanel (593)
author Paul Issott <paul@slitaz.org>
date Sat Jun 04 18:44:40 2016 +0100 (2016-06-04)
parents 9e350f60bf7b
children d823d9a16027
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 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cat > dynlink.sh <<EOT
21 lib=\$1
22 shift
23 gcc -shared \$@ -lm -Wl,-soname -Wl,\$(basename \$lib) -o \$lib
24 EOT
25 for i in */Doc/ChangeLog ; do
26 VERSION=$(sed 's/.* version //;q' $i)
27 sed -i 's/\(.*cd Lib.*MAKE.\)\(.*\)/\1\2\n\1 -f Makefile.d\2/' \
28 ${i%%/*}/Makefile
29 i=${i%%/*}/Lib
30 sed -e "/RANLIB/d;s/\.a/.so.$VERSION/" \
31 -e 's/\.o/.oo/g;s/ -c / -fPIC&/' \
32 -e 's|CC.*/\([^/]*\)c$|& -o \1oo|' -e 's|\$<$|$< -o $@|' \
33 -e "s|\$(AR[A-Z]*)|sh $src/dynlink.sh|" \
34 < $i/Makefile > $i/Makefile.d
35 done
36 mkdir -p $DESTDIR/usr/lib $DESTDIR/usr/include
37 sed -i "s/lopenblas/lblas/;s|/usr/local|$DESTDIR/usr|" \
38 SuiteSparse_config/*.mk
39 make -j 1 && make install
40 for i in */Lib/*.so.* ; do
41 cp $i $DESTDIR/usr/lib
42 l=$(basename $i)
43 ln -s $l $DESTDIR/usr/lib/${l%.*.*}
44 ln -s $l $DESTDIR/usr/lib/${l%so*}so
45 done
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/lib
52 cp -a $install/usr/lib/*.so* $fs/usr/lib
53 }