ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/freemol/trunk/src/pdb2pqr/configure
Revision: 56
Committed: Tue Sep 30 00:40:05 2008 UTC (12 years, 1 month ago) by tjod
File size: 1056 byte(s)
Log Message:
osx doesn't like install -D, but mingw and linux need -D (for licenses/ file)

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 54 case "$OSTYPE" in
21     linux*)
22     #echo "linux"
23 tjod 56 INSTALL="install -D"
24 tjod 54 ;;
25     darwin*)
26     #echo "darwin"
27 tjod 56 INSTALL="install"
28 tjod 54 ;;
29     mingw*)
30     #echo "mingw"
31 tjod 56 INSTALL="install -D"
32 tjod 54 ;;
33     msys*)
34     #echo "msys"
35 tjod 56 INSTALL="install -D"
36     cp src/Makefile.in.mingw $PDB2PQR_VERSION/Makefile.in
37     cp src/configure.mingw $PDB2PQR_VERSION/configure
38 tjod 54 if [ -e c:/python25/python.exe ] ; then
39     pythonpath=--with-python="/c/python25/python"
40     fi
41     ;;
42     cygwin*)
43     #echo "cygwin"
44 tjod 56 INSTALL="install -D"
45 tjod 54 ;;
46     esac
47    
48 tjod 56 echo "PDB2PQR_SRC=src/$PDB2PQR_VERSION" > Makefile
49     echo "INSTALL=$INSTALL" >> Makefile
50     cat Makefile.in >>Makefile
51    
52     cd src/$PDB2PQR_VERSION
53 tjod 54 ./configure --prefix=${FREEMOL}/share/pdb2pqr --disable-propka --disable-pdb2pka $pythonpath

Properties

Name Value
svn:executable *