wok-6.x view umfpack/receipt @ rev 22797

Add xsane-locales
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 27 10:28:49 2020 +0100 (2020-01-27)
parents c76d30df5ef0
children 922f061231c2
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 sed -i 's|metis-4.0|& 2>/dev/null|' Makefile
40 make -j 1 && make install
41 for i in */Lib/*.so.* ; do
42 cp $i $DESTDIR/usr/lib
43 l=$(basename $i)
44 ln -s $l $DESTDIR/usr/lib/${l%.*.*}
45 ln -s $l $DESTDIR/usr/lib/${l%so*}so
46 done
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/lib
53 cp -a $install/usr/lib/*.so* $fs/usr/lib
54 }