ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/freemol/trunk/src/pdb2pqr/configure
(Generate patch)
# Line 2 | Line 2
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
# Line 10 | Line 15
15   echo "Will install into " $FREEMOL
16   export PDB2PQR_VERSION=pdb2pqr-1.3.0
17  
18 < echo "PDB2PQR_SRC=src/$PDB2PQR_VERSION" > Makefile
14 < cat Makefile.in >>Makefile
18 > (cd src; tar zxf ${PDB2PQR_VERSION}-src.tar.gz)
19  
20 < cd src
21 < tar zxf ${PDB2PQR_VERSION}-src.tar.gz
20 > case "$OSTYPE" in
21 > linux*)
22 >        #echo "linux"
23 >        INSTALL="install -D"
24 >        ;;
25 > darwin*)
26 >        #echo "darwin"
27 >        INSTALL="install"
28 >        ;;
29 > mingw*)
30 >        #echo "mingw"
31 >        INSTALL="install -D"
32 >        ;;
33 > msys*)
34 >        #echo "msys"
35 >        INSTALL="install -D"
36 >        cp src/Makefile.in.mingw $PDB2PQR_VERSION/Makefile.in
37 >        cp src/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 >        INSTALL="install -D"
45 >        ;;
46 > esac
47  
48 < cd $PDB2PQR_VERSION
49 < ./configure --prefix=${FREEMOL}/share/pdb2pqr --disable-propka --disable-pdb2pka
48 > echo "PDB2PQR_SRC=src/$PDB2PQR_VERSION" > Makefile
49 > echo "INSTALL=$INSTALL" >> Makefile
50 > cat Makefile.in >>Makefile
51  
52 + cd src/$PDB2PQR_VERSION
53 + ./configure --prefix=${FREEMOL}/share/pdb2pqr --disable-propka --disable-pdb2pka $pythonpath

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines