Permalink
Browse files

Adding 'configure' convenience wrapper

  • Loading branch information...
pjotrp committed Mar 6, 2009
1 parent 7b90630 commit 5917e7392d8a170933b2e0f7e101b2c3bdb5612f
Showing with 89 additions and 1 deletion.
  1. +18 −1 INSTALL
  2. +71 −0 configure
View
19 INSTALL
@@ -1,11 +1,29 @@
* QUICK INSTRUCTIONS:
+The configure script is a convenience wrapper. For a Perl build of biolib:
+
+ ./configure
+ make
+ make test
+ make install
+
+For a Ruby build:
+
+ ./configure --with-ruby
+ make
+ make test
+ make install
+
+** Using CMake directly
+
The following makes the default libraries:
cmake .
make
make test
+** Using Rake (with Ruby)
+
To install BioLib with Ruby support one can simply execute rake:
rake build
@@ -14,7 +32,6 @@ To install BioLib with Ruby support one can simply execute rake:
For installations specific to Perl, Python etc. see below.
-
* INSTALL biolib
Install or build the following tools on your system
View
@@ -0,0 +1,71 @@
+#! /bin/bash
+#
+# This is a simple dropin for configure - so as to make life easier
+# for newcomers to cmake.
+#
+# A number of switches gets translated use ./configure with:
+#
+# --with-perl : build biolib for Perl (default)
+# --with-ruby : build biolib for Ruby
+# --with-python : build biolib for Python
+#
+# In addition libraries can be specified
+
+# --with-staden : see the BioLib docs
+# --with-affyio
+# --with-rqtl
+#
+
+if [ ! -d ./src ]; then
+ echo "FATAL: run from the root of the Biolib tree"
+ exit 1
+fi
+
+language=$1
+
+case $language in
+ '--help')
+ echo "See the ./INSTALL document for configuration options"
+ exit 1
+ ;;
+ '--with-perl')
+ plang="-DBUILD_PERL:BOOLEAN=TRUE"
+ shift
+ ;;
+ '--with-ruby')
+ plang="-DBUILD_RUBY:BOOLEAN=TRUE"
+ shift
+ ;;
+ *)
+ echo "BioLib defaulting to Perl build"
+ plang="-DBUILD_PERL:BOOLEAN=TRUE"
+ library=$language
+esac
+
+if [ -z $library ]; then
+ library=$1
+ shift
+fi
+
+case $library in
+ '--with-staden')
+ plib="-DSTADEN_LIB:BOOLEAN=TRUE"
+ shift
+ ;;
+ '--with-affyio')
+ plib="-DAFFYIO_LIB:BOOLEAN=TRUE"
+ shift
+ ;;
+ '--with-rqtl')
+ plib="-DRQTL_LIB:BOOLEAN=TRUE"
+ shift
+ ;;
+ *)
+ echo "BioLib building all libraries"
+ plib=""
+esac
+
+echo $language: $plang
+echo $library: $plib
+
+echo cmake $plang $plib $* .

0 comments on commit 5917e73

Please sign in to comment.