2 |
|
|
3 |
|
# would do any platform-specific configuration here... |
4 |
|
|
5 |
+ |
if [ -z "$OSTYPE" ]; then |
6 |
+ |
OSTYPE=`uname -s` |
7 |
+ |
fi |
8 |
+ |
|
9 |
+ |
|
10 |
|
if ! [ $FREEMOL ]; then |
11 |
|
echo "FREEMOL variable must be defined" |
12 |
|
exit |
21 |
|
cd src |
22 |
|
tar zxf ${PDB2PQR_VERSION}-src.tar.gz |
23 |
|
|
24 |
< |
cd $PDB2PQR_VERSION |
25 |
< |
./configure --prefix=${FREEMOL}/share/pdb2pqr --disable-propka --disable-pdb2pka |
24 |
> |
case "$OSTYPE" in |
25 |
> |
linux*) |
26 |
> |
#echo "linux" |
27 |
> |
;; |
28 |
> |
darwin*) |
29 |
> |
#echo "darwin" |
30 |
> |
;; |
31 |
> |
mingw*) |
32 |
> |
#echo "mingw" |
33 |
> |
;; |
34 |
> |
msys*) |
35 |
> |
#echo "msys" |
36 |
> |
cp Makefile.in.mingw $PDB2PQR_VERSION/Makefile.in |
37 |
> |
cp configure.mingw $PDB2PQR_VERSION/configure |
38 |
> |
if [ -e c:/python25/python.exe ] ; then |
39 |
> |
pythonpath=--with-python="/c/python25/python" |
40 |
> |
fi |
41 |
> |
;; |
42 |
> |
cygwin*) |
43 |
> |
#echo "cygwin" |
44 |
> |
;; |
45 |
> |
esac |
46 |
|
|
47 |
+ |
cd $PDB2PQR_VERSION |
48 |
+ |
echo ./configure --prefix=${FREEMOL}/share/pdb2pqr --disable-propka --disable-pdb2pka $pythonpath |
49 |
+ |
./configure --prefix=${FREEMOL}/share/pdb2pqr --disable-propka --disable-pdb2pka $pythonpath |