forked from dealii/candi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsuperlu_dist.package
38 lines (32 loc) · 1.02 KB
/
superlu_dist.package
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
VERSION=5.1.2
NAME=superlu_dist_${VERSION}
EXTRACTSTO=SuperLU_DIST_${VERSION}
SOURCE=http://crd-legacy.lbl.gov/~xiaoye/SuperLU/
PACKING=.tar.gz
CHECKSUM=0a99bbb5f6c26a9c1d7ab17ea35d4e6f
BUILDCHAIN=cmake
INSTALL_PATH=${INSTALL_PATH}/${NAME}
CONFOPTS=" \
$CONFOPTS \
-D TPL_PARMETIS_INCLUDE_DIRS:PATH=${PARMETIS_DIR}/include \
-D TPL_PARMETIS_LIBRARIES:FILEPATH=${PARMETIS_DIR}/lib/libparmetis.${LDSUFFIX} \
-D CMAKE_C_FLAGS:STRING=\"-std=c99 -fPIC\" \
-D BUILD_SHARED_LIBS:BOOL=ON"
package_specific_register () {
export SUPERLU_DIR=${INSTALL_PATH}
if [ ${PLATFORM_OSTYPE} == macos ]; then
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:${INSTALL_PATH}/lib
fi
}
package_specific_conf () {
# Generate configuration file
CONFIG_FILE=${CONFIGURATION_PATH}/${NAME}
rm -f $CONFIG_FILE
echo "
export SUPERLU_DIR=${INSTALL_PATH}
" >> $CONFIG_FILE
if [ ${PLATFORM_OSTYPE} == macos ]; then
echo "export DYLD_LIBRARY_PATH=\$DYLD_LIBRARY_PATH:${INSTALL_PATH}/lib
" >> $CONFIG_FILE
fi
}