Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 108 lines (97 sloc) 1.975 kb
5917e73 Pjotr Prins Adding 'configure' convenience wrapper
authored
1 #! /bin/bash
2 #
3 # This is a simple dropin for configure - so as to make life easier
4 # for newcomers to cmake.
5 #
6 # A number of switches gets translated use ./configure with:
7 #
8 # --with-perl : build biolib for Perl (default)
9 # --with-ruby : build biolib for Ruby
10 # --with-python : build biolib for Python
11 #
12 # In addition libraries can be specified
13
14 # --with-staden : see the BioLib docs
4ec419e Pjotr Prins Can build EMBOSS mapping from root
authored
15 # --with-emboss
5917e73 Pjotr Prins Adding 'configure' convenience wrapper
authored
16 # --with-affyio
17 # --with-rqtl
9738b6f Pjotr Prins Building libsequence
authored
18 # --with-libsequence
847bda6 Pjotr Prins Can make python example from configure
authored
19 # --with-example
5917e73 Pjotr Prins Adding 'configure' convenience wrapper
authored
20 #
21
22 if [ ! -d ./src ]; then
23 echo "FATAL: run from the root of the Biolib tree"
24 exit 1
25 fi
26
65e7617 Pjotr Prins Testing on cygwin
authored
27 if [ -d .git ]; then
0c0deb7 Pjotr Prins Introduce method to prevent updating git submodules automatically
authored
28 if [ ! -e .git/SKIP_SUBMODULE_UPDATE ]; then
29 echo "Checking for git submodules"
30 git submodule update --init
ea4a9b4 Pjotr Prins Installation instructions
authored
31 # Run these a few times to work around time outs
32 git submodule update
33 git submodule update
34 git submodule update
0c0deb7 Pjotr Prins Introduce method to prevent updating git submodules automatically
authored
35 fi
65e7617 Pjotr Prins Testing on cygwin
authored
36 fi
37
5917e73 Pjotr Prins Adding 'configure' convenience wrapper
authored
38 language=$1
b35599f Pjotr Prins Added Ruby mapping for R/QTL
authored
39 if [ -z $language ]; then
40 language='--with-perl'
41 fi
5917e73 Pjotr Prins Adding 'configure' convenience wrapper
authored
42
43 case $language in
44 '--help')
45 echo "See the ./INSTALL document for configuration options"
46 exit 1
47 ;;
48 '--with-perl')
49 plang="-DBUILD_PERL:BOOLEAN=TRUE"
50 shift
51 ;;
52 '--with-ruby')
53 plang="-DBUILD_RUBY:BOOLEAN=TRUE"
54 shift
55 ;;
5d10c83 Pjotr Prins Adding Python support
authored
56 '--with-python')
57 plang="-DBUILD_PYTHON:BOOLEAN=TRUE"
58 shift
59 ;;
5917e73 Pjotr Prins Adding 'configure' convenience wrapper
authored
60 *)
61 echo "BioLib defaulting to Perl build"
62 plang="-DBUILD_PERL:BOOLEAN=TRUE"
63 library=$language
64 esac
65
66 if [ -z $library ]; then
67 library=$1
68 shift
69 fi
70
71 case $library in
4ec419e Pjotr Prins Can build EMBOSS mapping from root
authored
72 '--with-emboss')
73 plib="-DEMBOSS_LIB:BOOLEAN=TRUE"
74 shift
75 ;;
5917e73 Pjotr Prins Adding 'configure' convenience wrapper
authored
76 '--with-staden')
77 plib="-DSTADEN_LIB:BOOLEAN=TRUE"
78 shift
79 ;;
80 '--with-affyio')
81 plib="-DAFFYIO_LIB:BOOLEAN=TRUE"
82 shift
83 ;;
9738b6f Pjotr Prins Building libsequence
authored
84 '--with-libsequence')
85 plib="-DLIBSEQUENCE_LIB:BOOLEAN=TRUE"
86 shift
87 ;;
5917e73 Pjotr Prins Adding 'configure' convenience wrapper
authored
88 '--with-rqtl')
89 plib="-DRQTL_LIB:BOOLEAN=TRUE"
90 shift
91 ;;
847bda6 Pjotr Prins Can make python example from configure
authored
92 '--with-example')
93 plib="-DEXAMPLE_LIB:BOOLEAN=TRUE"
94 shift
95 ;;
5917e73 Pjotr Prins Adding 'configure' convenience wrapper
authored
96 *)
97 echo "BioLib building all libraries"
98 plib=""
99 esac
100
101 echo $language: $plang
102 echo $library: $plib
103
fbfbe4e Pjotr Prins Added auto cleanup to configure wrapper
authored
104 sh scripts/cleanup.sh
105
5917e73 Pjotr Prins Adding 'configure' convenience wrapper
authored
106 echo cmake $plang $plib $* .
6efdc2f Pjotr Prins Renaming test support folder
authored
107 cmake $plang $plib $* .
Something went wrong with that request. Please try again.