tazwok annotate examples/tazwok.conf @ rev 449

Fix safe wok generation & change config according this; plus few tiny hacks
author Antoine Bodin <gokhlayeh@slitaz.org>
date Tue Mar 15 03:52:02 2011 +0100 (2011-03-15)
parents 556a89fc8607
children cdab17eb0dc9
rev   line source
pankso@8 1 # tazwok.conf: Tazwok configuration file.
pankso@8 2 #
pankso@8 3
paul@429 4 # WOK_UPDATE_METHOD can be "tarball" or "hg"
gokhlayeh@312 5 # tarball: download the full tarball and copy it into build-wok.
paul@429 6 # hg: download only the new changes, needs mercurial installed.
gokhlayeh@312 7 WOK_UPDATE_METHOD="hg"
pankso@8 8
gokhlayeh@402 9 TARBALL_WOK="$MIRROR/wok.tar.lzma"
gokhlayeh@312 10 HG_WOK="http://hg.slitaz.org/wok"
pankso@8 11
gokhlayeh@449 12 # save_wok: Save receipts known to compile well.
gokhlayeh@449 13 # It will generate the saved woks into packages and packages-incoming,
gokhlayeh@449 14 # containing cooking stuff used to compile packages on theses repositories.
gokhlayeh@449 15 # To disable it, comment the variable definition.
gokhlayeh@449 16 # If save_wok="tarball", a wok.taz.lzma will be generated each time you
gokhlayeh@449 17 # succefully check-incoming.
gokhlayeh@449 18 save_wok=yes
gokhlayeh@402 19
gokhlayeh@402 20 # Use an online repository to get packages instead of one
gokhlayeh@402 21 # you builded yourself / you rsyncked.
gokhlayeh@449 22 #
gokhlayeh@449 23 # Note: you should enable this on a repo per repo basis,
gokhlayeh@449 24 # you probably don't want to set this globally.
gokhlayeh@449 25 # You can put particular configuration into LOCAL_REPOSITORY/tazwok.conf
gokhlayeh@449 26 # You don't need to copy the whole config: the variable definition alone
gokhlayeh@449 27 # is enough as all other datas will be get from global config.
gokhlayeh@402 28 # USE_ONLINE_PKG="$MIRROR"
gokhlayeh@402 29
gokhlayeh@186 30 # Default makeflags.
gokhlayeh@186 31 MAKEFLAGS="-j$((`grep processor /proc/cpuinfo | wc -l`+1))"
paul@165 32
gokhlayeh@186 33 # Default architecture.
gokhlayeh@186 34 ARCH="i486"
pankso@8 35
paul@165 36 # Default build host.
gokhlayeh@186 37 BUILD_HOST="$ARCH-pc-linux-gnu"
gokhlayeh@186 38
gokhlayeh@186 39 # Default compilation flags.
gokhlayeh@186 40 # More details at :
gokhlayeh@186 41 # http://www.gentoo.org/doc/en/gcc-optimization.xml
gokhlayeh@186 42 # http://en.gentoo-wiki.com/wiki/Safe_Cflags
gokhlayeh@186 43 #
paul@429 44 # Note : -pipe will be automatically disabled if you have less than
gokhlayeh@186 45 # 512MB of free RAM to avoid gcc crashes.
gokhlayeh@186 46 #
gokhlayeh@186 47 # Default SliTaz flags - wide compatibility & optimized for i386 as it's the
gokhlayeh@186 48 # slowest CPU :
gokhlayeh@186 49 #CFLAGS="-mtune=$ARCH -O2 -pipe -fomit-frame-pointer"
gokhlayeh@186 50 # Where ARCH=i386
gokhlayeh@186 51 #
paul@429 52 # Cook compatible packages partially optimized for your own hardware :
gokhlayeh@186 53 #CFLAGS="-mtune=$ARCH -O2 -pipe -fomit-frame-pointer"
paul@429 54 # Where ARCH=your arch
gokhlayeh@186 55 #
paul@429 56 # Cook packages fully optimized for your hardware - Warning, compatible only
gokhlayeh@186 57 # with same hardware and newest of the same family :
gokhlayeh@186 58 #CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
gokhlayeh@186 59 CFLAGS="-mtune=$ARCH -O2 -pipe -fomit-frame-pointer"
gokhlayeh@186 60 CXXFLAGS="$CFLAGS"
pankso@132 61
paul@165 62 # Default tool prefix.
pankso@132 63 TOOLPREFIX="${BUILD_HOST}-"
pankso@132 64
pankso@8 65 # Default arguments for GNU configure.
gokhlayeh@186 66 default_prefix=/usr
gokhlayeh@186 67 default_datarootdir=$default_prefix/share
gokhlayeh@186 68 default_datadir=$default_datarootdir
gokhlayeh@186 69 default_localedir=$default_datarootdir/locale
gokhlayeh@186 70 default_infodir=$default_datarootdir/info
gokhlayeh@186 71 default_mandir=$default_datarootdir/man
gokhlayeh@186 72 default_build="$BUILD_HOST"
gokhlayeh@186 73 default_host="$BUILD_HOST"
gokhlayeh@186 74 # CONFIGURE_ARGS is here only for backward compatibility.
pankso@132 75 CONFIGURE_ARGS="--build=$BUILD_HOST --host=$BUILD_HOST"
pankso@8 76
paul@165 77 # Translation files to be included in packages. Note that you can specify
paul@165 78 # several locales.
pankso@22 79 LOCALE="fr"
pankso@22 80
paul@165 81 # Mirrors URLs. To download sources near your location.
pankso@8 82 # GNU mirror :
pankso@8 83 GNU_MIRROR="ftp://sunsite.cnlab-switch.ch/mirror/gnu"
pankso@8 84 # SourceForge mirror :
pankso@8 85 SF_MIRROR="http://switch.dl.sourceforge.net/sourceforge"
pankso@8 86 # Xorg mirror :
pankso@49 87 XORG_MIRROR="ftp://ftp.solnet.ch/mirror/x.org/pub/individual"
slaxemulator@180 88 # Gnome mirror :
slaxemulator@180 89 GNOME_MIRROR="http://ftp.gnome.org/pub/GNOME/sources"
pankso@135 90
pankso@135 91 # Favorite console editor.
pankso@135 92 EDITOR="nano"
pankso@135 93
paul@165 94 # FSH standard directories with init. Package generation will abort if
pankso@135 95 # a file is installed in a non-specified path. Note /vz is for OpenVZ.
pankso@135 96 FSH="bin boot dev etc home init lib media mnt proc root sbin share sys \
pankso@135 97 tmp usr var vz usr/bin usr/games usr/include usr/lib usr/local usr/sbin \
pankso@135 98 usr/share usr/src"
pascal@150 99
paul@165 100 # tazpkg compression "gzip" or "lzma".
pascal@150 101 COMPRESSION="lzma"
pascal@150 102
gokhlayeh@186 103 # Slitaz Toolchain : the tools used to compile all other packages.
paul@429 104 # Toolchain packages don't need to be included as build_depends
gokhlayeh@186 105 # because they are in the chroot by default. The order in this
gokhlayeh@186 106 # variable is important : it's the compile order for the temporary
gokhlayeh@186 107 # toolchain which can be used to recook the base chroot, then all
paul@429 108 # the wok. Toolchain is compiled this way according to the LFS book :
gokhlayeh@186 109 # First - binutils, GCC; at this point they are linked to the host system.
gokhlayeh@186 110 # Second - the temp toolchain using the order defined in this variable.
paul@429 111 # The toolchain is cross-compiled against a self-depending glibc.
gokhlayeh@186 112 # Third - all the wok in normal order, including the toolchain packages.
gokhlayeh@186 113 # This cook order is used only if glibc/binutils/gcc/linux-api-headers
paul@429 114 # are updated to the next minor version or more (y.x.z -> y.x+1.z).
gokhlayeh@186 115 SLITAZ_TOOLCHAIN="linux-api-headers
gokhlayeh@186 116 glibc
gokhlayeh@186 117 binutils
gokhlayeh@186 118 gcc
gokhlayeh@186 119 busybox
gokhlayeh@186 120 ncurses
gokhlayeh@186 121 bash
gokhlayeh@186 122 bzip2
gokhlayeh@186 123 gawk
gokhlayeh@186 124 gettext
gokhlayeh@186 125 m4
gokhlayeh@186 126 make
gokhlayeh@186 127 patch
slaxemulator@206 128 db
slaxemulator@206 129 gdbm
slaxemulator@206 130 zlib
gokhlayeh@186 131 perl
gokhlayeh@186 132 texinfo
gokhlayeh@186 133 autoconf
gokhlayeh@186 134 automake
gokhlayeh@186 135 lzma"
gokhlayeh@186 136
paul@429 137 # Slitaz toolchain extra : packages which are needed to cook others
gokhlayeh@186 138 # but which are not in the core temporary toolchain.
gokhlayeh@186 139 # Note : order is not important here.
gokhlayeh@186 140 SLITAZ_TOOLCHAIN_EXTRA="tazpkg
gokhlayeh@334 141 tazwok
gokhlayeh@186 142 pkg-config
gokhlayeh@186 143 libtool
gokhlayeh@186 144 libpthread-stubs"
gokhlayeh@186 145
gokhlayeh@186 146 # Cook options :
gokhlayeh@186 147 # Repack sources in .tar.lzma format.
gokhlayeh@186 148 repack_src="yes"