cookutils rev 3

Added: cook.site
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 03 22:31:04 2011 +0200 (2011-05-03)
parents c8f38891a28d
children eb9aa705b8ed
files cook.site
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/cook.site	Tue May 03 22:31:04 2011 +0200
     1.3 @@ -0,0 +1,29 @@
     1.4 +# /etc/slitaz/cook.site: Default options passed to ./configure in SliTaz
     1.5 +#
     1.6 +# This file is used since we can't export these variables, but configure
     1.7 +# handle CONFIG_SITE and will source this file automaticaly if set.
     1.8 +#
     1.9 +# If you want to use your own cook.site, you can use:
    1.10 +# export CONFIG_SITE=config.site in compile_rules of a receipt.
    1.11 +#
    1.12 +
    1.13 +# Some old configure use "${prefix}" instead of "${datarootdir}".
    1.14 +if echo "$localedir" | grep -q \${prefix}; then
    1.15 +	localedir=$( echo "$localedir" | sed 's/${prefix}/${datarootdir}/')
    1.16 +fi
    1.17 +if echo "$infodir" | grep -q \${prefix}; then
    1.18 +	infodir=$( echo "$infodir" | sed 's/${prefix}/${datarootdir}/')
    1.19 +fi
    1.20 +if echo "$mandir" | grep -q \${prefix}; then
    1.21 +	mandir=$( echo "$mandir" | sed 's/${prefix}/${datarootdir}/')
    1.22 +fi
    1.23 +
    1.24 +# Default options (BUILD_HOST is set in cook.conf)
    1.25 +prefix=/usr
    1.26 +datarootdir=$prefix/share
    1.27 +datadir=$datarootdir
    1.28 +localedir=$datarootdir/locale
    1.29 +infodir=$datarootdir/info
    1.30 +mandir=$datarootdir/man
    1.31 +build="$BUILD_HOST"
    1.32 +host="$BUILD_HOST"