-
Notifications
You must be signed in to change notification settings - Fork 61
/
symengine.package
58 lines (47 loc) · 1.5 KB
/
symengine.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
################################################################################
## SYMENGINE ##
################################################################################
# By default load the tarball.
# To load the git repository define a variable CANDI_SYMENGINE_LOAD_TARBALL=OFF.
if [ -z ${CANDI_SYMENGINE_LOAD_TARBALL} ]; then
CANDI_SYMENGINE_LOAD_TARBALL=ON
fi
if [ ${CANDI_SYMENGINE_LOAD_TARBALL} = ON ]; then
# download release tarball
VERSION=0.8.1
CHECKSUM=967b913b365eda9fb30ecb3f1ded46f2
# VERSION=0.7.0
# CHECKSUM=72b8f1442fd3084c96e59d9fe87eec1a
NAME=symengine-${VERSION}
SOURCE=https://github.com/symengine/symengine/releases/download/v${VERSION}/
EXTRACTSTO=${NAME}
PACKING=.tar.gz
else
# download git repository
VERSION=v0.8.1
# VERSION=v0.7.0
NAME=symengine.git
SOURCE=https://github.com/symengine/
EXTRACTSTO=symengine-${VERSION}
PACKING=git
fi
unset CANDI_SYMENGINE_LOAD_TARBALL
BUILDCHAIN=cmake
BUILDDIR=${BUILD_PATH}/symengine-${VERSION}
INSTALL_PATH=${INSTALL_PATH}/symengine-${VERSION}
CONFOPTS="\
-D BUILD_SHARED_LIBS:BOOL=ON \
-D BUILD_TESTS:BOOL=OFF \
-D BUILD_BENCHMARKS:BOOL=OFF \
-D WITH_SYMENGINE_THREAD_SAFE:BOOL=ON"
package_specific_register() {
export SYMENGINE_DIR=${INSTALL_PATH}
}
package_specific_conf() {
# Generate configuration file
CONFIG_FILE=${CONFIGURATION_PATH}/${NAME}
rm -f ${CONFIG_FILE}
echo "
export SYMENGINE_DIR=${INSTALL_PATH}
" >> $CONFIG_FILE
}