wok-current diff umfpack/receipt @ rev 21075
jabberd2: modification of log.c removed
author | Hans-G?nter Theisgen |
---|---|
date | Thu Mar 14 17:35:32 2019 +0100 (2019-03-14) |
parents | 9e350f60bf7b |
children | d823d9a16027 |
line diff
1.1 --- a/umfpack/receipt Fri Apr 17 23:54:39 2015 +0200 1.2 +++ b/umfpack/receipt Thu Mar 14 17:35:32 2019 +0100 1.3 @@ -17,14 +17,37 @@ 1.4 # Rules to configure and make the package. 1.5 compile_rules() 1.6 { 1.7 + cat > dynlink.sh <<EOT 1.8 +lib=\$1 1.9 +shift 1.10 +gcc -shared \$@ -lm -Wl,-soname -Wl,\$(basename \$lib) -o \$lib 1.11 +EOT 1.12 + for i in */Doc/ChangeLog ; do 1.13 + VERSION=$(sed 's/.* version //;q' $i) 1.14 + sed -i 's/\(.*cd Lib.*MAKE.\)\(.*\)/\1\2\n\1 -f Makefile.d\2/' \ 1.15 + ${i%%/*}/Makefile 1.16 + i=${i%%/*}/Lib 1.17 + sed -e "/RANLIB/d;s/\.a/.so.$VERSION/" \ 1.18 + -e 's/\.o/.oo/g;s/ -c / -fPIC&/' \ 1.19 + -e 's|CC.*/\([^/]*\)c$|& -o \1oo|' -e 's|\$<$|$< -o $@|' \ 1.20 + -e "s|\$(AR[A-Z]*)|sh $src/dynlink.sh|" \ 1.21 + < $i/Makefile > $i/Makefile.d 1.22 + done 1.23 mkdir -p $DESTDIR/usr/lib $DESTDIR/usr/include 1.24 sed -i "s/lopenblas/lblas/;s|/usr/local|$DESTDIR/usr|" \ 1.25 SuiteSparse_config/*.mk 1.26 make -j 1 && make install 1.27 + for i in */Lib/*.so.* ; do 1.28 + cp $i $DESTDIR/usr/lib 1.29 + l=$(basename $i) 1.30 + ln -s $l $DESTDIR/usr/lib/${l%.*.*} 1.31 + ln -s $l $DESTDIR/usr/lib/${l%so*}so 1.32 + done 1.33 } 1.34 1.35 # Rules to gen a SliTaz package suitable for Tazpkg. 1.36 genpkg_rules() 1.37 { 1.38 - cp -a $install/usr $fs/ 1.39 + mkdir -p $fs/usr/lib 1.40 + cp -a $install/usr/lib/*.so* $fs/usr/lib 1.41 }