blas: really fix installation on FreeBSD

This commit is contained in:
Ludovic Courtès 2012-10-18 17:34:49 +02:00
parent 18c4b2180f
commit bf08f68ccb

View file

@ -35,7 +35,9 @@ stdenv.mkDerivation {
installPhase =
# FreeBSD's stdenv doesn't use Coreutils.
let dashD = if stdenv.isFreeBSD then "-d" else "-D"; in ''
let dashD = if stdenv.isFreeBSD then "" else "-D"; in
(stdenv.lib.optionalString stdenv.isFreeBSD "mkdir -p $out/lib ;")
+ ''
install ${dashD} -m755 libblas.a "$out/lib/libblas.a"
install ${dashD} -m755 libblas.so.3.0.3 "$out/lib/libblas.so.3.0.3"
ln -s libblas.so.3.0.3 "$out/lib/libblas.so.3"