wok-current rev 17978
Add umfpack-dev
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 18 16:50:04 2015 +0200 (2015-04-18) |
parents | a0145b1e3f4b |
children | f6642d800b04 |
files | umfpack-dev/receipt umfpack/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/umfpack-dev/receipt Sat Apr 18 16:50:04 2015 +0200 1.3 @@ -0,0 +1,20 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="umfpack-dev" 1.7 +VERSION="4.4.4" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="Multifrontal LU factorization." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +LICENSE="GPL2" 1.12 +WEB_SITE="http://faculty.cse.tamu.edu/davis/suitesparse.html" 1.13 +WANTED="umfpack" 1.14 + 1.15 +DEPENDS="umfpack" 1.16 + 1.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.18 +genpkg_rules() 1.19 +{ 1.20 + mkdir -p $fs/usr/lib 1.21 + cp -a $install/usr/lib/*a $fs/usr/lib 1.22 + cp -a $install/usr/include $fs/usr 1.23 +}
2.1 --- a/umfpack/receipt Sat Apr 18 16:32:01 2015 +0300 2.2 +++ b/umfpack/receipt Sat Apr 18 16:50:04 2015 +0200 2.3 @@ -17,14 +17,37 @@ 2.4 # Rules to configure and make the package. 2.5 compile_rules() 2.6 { 2.7 + cat > dynlink.sh <<EOT 2.8 +lib=\$1 2.9 +shift 2.10 +gcc -shared \$@ -lm -Wl,-soname -Wl,\$(basename \$lib) -o \$lib 2.11 +EOT 2.12 + for i in */Doc/ChangeLog ; do 2.13 + VERSION=$(sed 's/.* version //;q' $i) 2.14 + sed -i 's/\(.*cd Lib.*MAKE.\)\(.*\)/\1\2\n\1 -f Makefile.d\2/' \ 2.15 + ${i%%/*}/Makefile 2.16 + i=${i%%/*}/Lib 2.17 + sed -e "/RANLIB/d;s/\.a/.so.$VERSION/" \ 2.18 + -e 's/\.o/.oo/g;s/ -c / -fPIC&/' \ 2.19 + -e 's|CC.*/\([^/]*\)c$|& -o \1oo|' -e 's|\$<$|$< -o $@|' \ 2.20 + -e "s|\$(AR[A-Z]*)|sh $src/dynlink.sh|" \ 2.21 + < $i/Makefile > $i/Makefile.d 2.22 + done 2.23 mkdir -p $DESTDIR/usr/lib $DESTDIR/usr/include 2.24 sed -i "s/lopenblas/lblas/;s|/usr/local|$DESTDIR/usr|" \ 2.25 SuiteSparse_config/*.mk 2.26 make -j 1 && make install 2.27 + for i in */Lib/*.so.* ; do 2.28 + cp $i $DESTDIR/usr/lib 2.29 + l=$(basename $i) 2.30 + ln -s $l $DESTDIR/usr/lib/${l%.*.*} 2.31 + ln -s $l $DESTDIR/usr/lib/${l%so*}so 2.32 + done 2.33 } 2.34 2.35 # Rules to gen a SliTaz package suitable for Tazpkg. 2.36 genpkg_rules() 2.37 { 2.38 - cp -a $install/usr $fs/ 2.39 + mkdir -p $fs/usr/lib 2.40 + cp -a $install/usr/lib/*.so* $fs/usr/lib 2.41 }