tazwok annotate examples/config.site @ rev 426
Added support for bazaar VCS packages.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Mar 06 20:53:19 2011 +0000 (2011-03-06) |
parents | |
children | ff2492afbf1a |
rev | line source |
---|---|
gokhlayeh@186 | 1 # This file contains default option passed to ./configure at compile time. |
gokhlayeh@186 | 2 # Variables are setted this way : |
gokhlayeh@186 | 3 # { [ "$var" = NONE ] || [ ! "$var" ] ; } && var= |
gokhlayeh@186 | 4 # This is because config.site overwrite options passed directly in |
gokhlayeh@186 | 5 # configure, like ./configure --var= |
gokhlayeh@186 | 6 # |
gokhlayeh@186 | 7 # Here, we don't want overwrite default configuration : we want to |
gokhlayeh@186 | 8 # setup configure with default path only if nothing has been given |
gokhlayeh@186 | 9 # on the configure command-line. This allow contributors to overwrite |
gokhlayeh@186 | 10 # the defaults path filled here in the recipes. |
gokhlayeh@186 | 11 # |
gokhlayeh@186 | 12 # Path to the config.site is given to configure using the environnment |
gokhlayeh@186 | 13 # variable CONFIG_SITE |
gokhlayeh@186 | 14 # tazwok does that work before executing compile rules. |
gokhlayeh@186 | 15 # |
gokhlayeh@186 | 16 # If you want to use you're own config.site, you can use : |
gokhlayeh@186 | 17 # export CONFIG_SITE=path_to_my_config.site |
gokhlayeh@186 | 18 # in the compilation_rules of a receipt. |
gokhlayeh@186 | 19 # It can be usefull if you want to share default configuration between |
gokhlayeh@186 | 20 # some groups of packages like GNOME or KDE ones. |
gokhlayeh@186 | 21 # |
gokhlayeh@186 | 22 # To make tazwok configuration easier, we use variable from |
gokhlayeh@186 | 23 # /etc/tazwok.conf here. Note that only concerns configure options : |
gokhlayeh@186 | 24 # make flags (MAKEFLAGS, CFLAGS, CXXFLAGS and DESTDIR) are exported |
gokhlayeh@186 | 25 # to environment variables; options setted here are thoses we can't |
gokhlayeh@186 | 26 # export in environnment variables because it doesn't works. |
gokhlayeh@186 | 27 |
gokhlayeh@186 | 28 # Some variable are prefixed by "${prefix}" instead of "${datarootdir}". |
gokhlayeh@186 | 29 # For thoses case we use "${datadir}" because there's configure script |
gokhlayeh@186 | 30 # generally don't know about "${datarootdir}" (too olds). |
gokhlayeh@186 | 31 if echo "$localedir" | grep -q \${prefix}; then |
gokhlayeh@186 | 32 localedir=$( echo "$localedir" | sed 's/${prefix}/${datarootdir}/') |
gokhlayeh@186 | 33 fi |
gokhlayeh@186 | 34 if echo "$infodir" | grep -q \${prefix}; then |
gokhlayeh@186 | 35 infodir=$( echo "$infodir" | sed 's/${prefix}/${datarootdir}/') |
gokhlayeh@186 | 36 fi |
gokhlayeh@186 | 37 if echo "$mandir" | grep -q \${prefix}; then |
gokhlayeh@186 | 38 mandir=$( echo "$mandir" | sed 's/${prefix}/${datarootdir}/') |
gokhlayeh@186 | 39 fi |
gokhlayeh@186 | 40 |
gokhlayeh@186 | 41 # Use default values if one of theses configure variable is not set. |
gokhlayeh@186 | 42 { [ "$prefix" = NONE ] || [ ! "$prefix" ] ; } && prefix=$default_prefix |
gokhlayeh@186 | 43 { [ "$datarootdir" = NONE ] || [ ! "$datarootdir" ] ; } && datarootdir=$default_datarootdir |
gokhlayeh@186 | 44 { [ "$datadir" = NONE ] || [ ! "$datadir" ] ; } && datadir=$datarootdir |
gokhlayeh@186 | 45 { [ "$localedir" = NONE ] || [ ! "$localedir" ] ; } && localedir=$default_localedir |
gokhlayeh@186 | 46 { [ "$infodir" = NONE ] || [ ! "$infodir" ] ; } && infodir=$default_infodir |
gokhlayeh@186 | 47 { [ "$mandir" = NONE ] || [ ! "$mandir" ] ; } && mandir=$default_mandir |
gokhlayeh@186 | 48 { [ "$build" = NONE ] || [ ! "$build" ] ; } && build=$default_build |
gokhlayeh@186 | 49 { [ "$host" = NONE ] || [ ! "$host" ] ; } && host=$default_host |
gokhlayeh@186 | 50 |
gokhlayeh@186 | 51 # Print information about theses variables. |
gokhlayeh@186 | 52 echo "prefix = $prefix |
gokhlayeh@186 | 53 datarootdir = $datarootdir |
gokhlayeh@186 | 54 datadir = $datadir |
gokhlayeh@186 | 55 localedir= $localedir |
gokhlayeh@186 | 56 infodir = $infodir |
gokhlayeh@186 | 57 mandir = $mandir |
gokhlayeh@186 | 58 build = $build |
gokhlayeh@186 | 59 host = $host |
gokhlayeh@186 | 60 " |
gokhlayeh@186 | 61 |
gokhlayeh@186 | 62 # config.site is used by tazwok to check that config.site script has been used. |
gokhlayeh@186 | 63 touch /tmp/config.site |