Compiler/SuperLU

- support for version 5
This commit is contained in:
2016-12-16 17:12:39 +01:00
parent 340447e574
commit efe4a7e17b
2 changed files with 16 additions and 2 deletions

View File

@@ -0,0 +1 @@
SuperLU/5.2.1 unstable gcc/4.8.5 b:OpenBLAS/0.2.19 b:cmake/3.6.3

View File

@@ -1,5 +1,8 @@
#!/usr/bin/env modbuild
SOURCE_URL="http://crd-legacy.lbl.gov/~xiaoye/SuperLU/superlu_$V.tar.gz"
if (( V_MAJOR < 5 )); then
pbuild::configure() {
cat <<EOF > "${MODULE_SRCDIR}/make.inc"
PLAT =
@@ -25,10 +28,20 @@ LOADOPTS = -fopenmp
CDEFS = -DAdd_
EOF
}
else
pbuild::configure() {
cmake "${MODULE_SRCDIR}" \
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
|| exit 1
}
fi
pbuild::build() {
cd "${MODULE_SRCDIR}"
mkdir -p "${PREFIX}/lib"
if (( V_MAJOR < 5 )); then
cd "${MODULE_SRCDIR}"
mkdir -p "${PREFIX}/lib"
fi
make
}