-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgo.openbabel.fx100.sh
41 lines (34 loc) · 1003 Bytes
/
go.openbabel.fx100.sh
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
CMAKEVERSION=2.8.12.1
OPENBABELVERSION=2.3.2
EIGENVERSION=6b38706d90a9
if [ x"$qctopdir" = x"" ]; then
echo "Do 'source pubchemqcfx100.sh'"
exit
fi
#export PATH=/usr/local/GCC_4.6.1/bin:$PATH
rm -rf cmake-$CMAKEVERSION/
tar xvfz ../archives/cmake-$CMAKEVERSION.tar.gz
cd cmake-$CMAKEVERSION
./bootstrap --prefix=$qctopdir/pkg
make
make install
cd ..
rm -rf eigen-eigen-$EIGENVERSION
tar xvfz ../archives/eigen-eigen-$EIGENVERSION.tar.gz
mkdir eigen-eigen-$EIGENVERSION-build
cd eigen-eigen-$EIGENVERSION-build
cmake -DCMAKE_INSTALL_PREFIX=$qctopdir/pkg ../eigen-eigen-$EIGENVERSION
make -j2
make install
cd ..
rm -rf openbabel-$OPENBABELVERSION
tar xvfz ../archives/openbabel-$OPENBABELVERSION.tar.gz
rm -rf openbabel-$OPENBABELVERSION-build
cd openbabel-$OPENBABELVERSION
patch -p0 < ../../archives/patch-openbabel
cd ..
mkdir openbabel-$OPENBABELVERSION-build
cd openbabel-$OPENBABELVERSION-build
cmake -DCMAKE_INSTALL_PREFIX=$qctopdir/pkg ../openbabel-$OPENBABELVERSION
make -j2
make install