refactor variable names according to changes in Pmodules/0.99.15 in build-scripts of group 'Compiler'

This commit is contained in:
2018-07-11 10:49:03 +02:00
parent f62924c8f3
commit b53aaf92a5
17 changed files with 39 additions and 39 deletions
+4 -4
View File
@@ -4,7 +4,7 @@ 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"
cat <<EOF > "${SRC_DIR}/make.inc"
PLAT =
SuperLUroot = \${PREFIX}
SUPERLULIB = \$(SuperLUroot)/lib/libsuperlu.a
@@ -30,7 +30,7 @@ EOF
}
else
pbuild::configure() {
cmake "${MODULE_SRCDIR}" \
cmake "${SRC_DIR}" \
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
|| exit 1
@@ -39,7 +39,7 @@ fi
pbuild::build() {
if (( V_MAJOR < 5 )); then
cd "${MODULE_SRCDIR}"
cd "${SRC_DIR}"
mkdir -p "${PREFIX}/lib"
fi
make
@@ -48,7 +48,7 @@ pbuild::build() {
pbuild::install() {
make install
mkdir -p "${PREFIX}/include"
install -m 0444 "${MODULE_SRCDIR}"/SRC/*.h "${PREFIX}/include"
install -m 0444 "${SRC_DIR}"/SRC/*.h "${PREFIX}/include"
}
pbuild::add_to_group 'Compiler'