Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 87 lines (77 sloc) 1.528 kB
5917e73 @pjotrp 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
15 # --with-affyio
16 # --with-rqtl
847bda6 @pjotrp Can make python example from configure
authored
17 # --with-example
5917e73 @pjotrp Adding 'configure' convenience wrapper
authored
18 #
19
20 if [ ! -d ./src ]; then
21 echo "FATAL: run from the root of the Biolib tree"
22 exit 1
23 fi
24
25 language=$1
b35599f @pjotrp Added Ruby mapping for R/QTL
authored
26 if [ -z $language ]; then
27 language='--with-perl'
28 fi
5917e73 @pjotrp Adding 'configure' convenience wrapper
authored
29
30 case $language in
31 '--help')
32 echo "See the ./INSTALL document for configuration options"
33 exit 1
34 ;;
35 '--with-perl')
36 plang="-DBUILD_PERL:BOOLEAN=TRUE"
37 shift
38 ;;
39 '--with-ruby')
40 plang="-DBUILD_RUBY:BOOLEAN=TRUE"
41 shift
42 ;;
5d10c83 @pjotrp Adding Python support
authored
43 '--with-python')
44 plang="-DBUILD_PYTHON:BOOLEAN=TRUE"
45 shift
46 ;;
5917e73 @pjotrp Adding 'configure' convenience wrapper
authored
47 *)
48 echo "BioLib defaulting to Perl build"
49 plang="-DBUILD_PERL:BOOLEAN=TRUE"
50 library=$language
51 esac
52
53 if [ -z $library ]; then
54 library=$1
55 shift
56 fi
57
58 case $library in
59 '--with-staden')
60 plib="-DSTADEN_LIB:BOOLEAN=TRUE"
61 shift
62 ;;
63 '--with-affyio')
64 plib="-DAFFYIO_LIB:BOOLEAN=TRUE"
65 shift
66 ;;
67 '--with-rqtl')
68 plib="-DRQTL_LIB:BOOLEAN=TRUE"
69 shift
70 ;;
847bda6 @pjotrp Can make python example from configure
authored
71 '--with-example')
72 plib="-DEXAMPLE_LIB:BOOLEAN=TRUE"
73 shift
74 ;;
5917e73 @pjotrp Adding 'configure' convenience wrapper
authored
75 *)
76 echo "BioLib building all libraries"
77 plib=""
78 esac
79
80 echo $language: $plang
81 echo $library: $plib
82
fbfbe4e @pjotrp Added auto cleanup to configure wrapper
authored
83 sh scripts/cleanup.sh
84
5917e73 @pjotrp Adding 'configure' convenience wrapper
authored
85 echo cmake $plang $plib $* .
6efdc2f @pjotrp Renaming test support folder
authored
86 cmake $plang $plib $* .
Something went wrong with that request. Please try again.