ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/freemol/trunk/src/pdb2pqr/configure
Revision: 57
Committed: Tue Sep 30 00:49:05 2008 UTC (12 years, 1 month ago) by tjod
File size: 1106 byte(s)
Log Message:
Line User Rev File contents
1 wdelano 51 #!/bin/sh
2    
3     # would do any platform-specific configuration here...
4    
5 tjod 54 if [ -z "$OSTYPE" ]; then
6     OSTYPE=`uname -s`
7     fi
8    
9    
10 wdelano 51 if ! [ $FREEMOL ]; then
11     echo "FREEMOL variable must be defined"
12     exit
13     fi
14    
15     echo "Will install into " $FREEMOL
16     export PDB2PQR_VERSION=pdb2pqr-1.3.0
17    
18 tjod 56 (cd src; tar zxf ${PDB2PQR_VERSION}-src.tar.gz)
19 wdelano 51
20 tjod 57 echo "OS=$OSTYPE"
21 tjod 54 case "$OSTYPE" in
22 tjod 57 *inux*)
23 tjod 54 #echo "linux"
24 tjod 56 INSTALL="install -D"
25 tjod 54 ;;
26     darwin*)
27     #echo "darwin"
28 tjod 56 INSTALL="install"
29 tjod 54 ;;
30     mingw*)
31     #echo "mingw"
32 tjod 56 INSTALL="install -D"
33 tjod 54 ;;
34     msys*)
35     #echo "msys"
36 tjod 56 INSTALL="install -D"
37 tjod 57 cp src/Makefile.in.mingw src/$PDB2PQR_VERSION/Makefile.in
38     cp src/configure.mingw src/$PDB2PQR_VERSION/configure
39 tjod 54 if [ -e c:/python25/python.exe ] ; then
40     pythonpath=--with-python="/c/python25/python"
41     fi
42     ;;
43     cygwin*)
44     #echo "cygwin"
45 tjod 56 INSTALL="install -D"
46 tjod 54 ;;
47     esac
48    
49 tjod 57 echo "INSTALL=$INSTALL"
50 tjod 56 echo "PDB2PQR_SRC=src/$PDB2PQR_VERSION" > Makefile
51     echo "INSTALL=$INSTALL" >> Makefile
52     cat Makefile.in >>Makefile
53    
54     cd src/$PDB2PQR_VERSION
55 tjod 54 ./configure --prefix=${FREEMOL}/share/pdb2pqr --disable-propka --disable-pdb2pka $pythonpath

Properties

Name Value
svn:executable *