tazwok annotate examples/tazwok.conf @ rev 549

Compat: execute compile_rules() from directory when possible to match cookutils behavior
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sat Dec 10 01:21:18 2011 +0100 (2011-12-10)
parents b1584d8f70a7
children fcc1dc4dd1af 857659a86f24
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@312 9 TARBALL_WOK="http://hg.slitaz.org/wok/archive/tip.tar.bz2"
gokhlayeh@312 10 HG_WOK="http://hg.slitaz.org/wok"
pankso@8 11
gokhlayeh@186 12 # Default makeflags.
gokhlayeh@542 13 # This one make compilation use all cpu when possible, and have
gokhlayeh@542 14 # priority hover other processes.
gokhlayeh@542 15 # MAKEFLAGS="-j$((`grep processor /proc/cpuinfo | wc -l`+1))"
gokhlayeh@542 16 # This one makes use of all cpu but without priority, so if you
gokhlayeh@542 17 # run something else it can run smoothly even while compiling.
gokhlayeh@542 18 MAKEFLAGS="-j`grep processor /proc/cpuinfo | wc -l`"
paul@165 19
gokhlayeh@186 20 # Default architecture.
gokhlayeh@186 21 ARCH="i486"
pankso@8 22
slaxemulator@528 23 # Build and host. These options are for cross-compiling. If you specify
slaxemulator@528 24 # both options and BUILD_SYSTEM is different from HOST_SYSTEM, configure
slaxemulator@528 25 # will prepare to cross-compile from BUILD_SYSTEM to be used on HOST_SYSTEM.
gokhlayeh@542 26 BUILD_SYSTEM="$ARCH-pc-linux-gnu"
gokhlayeh@542 27 HOST_SYSTEM="$ARCH-pc-linux-gnu"
gokhlayeh@186 28
gokhlayeh@186 29 # Default compilation flags.
gokhlayeh@186 30 # More details at :
gokhlayeh@186 31 # http://www.gentoo.org/doc/en/gcc-optimization.xml
gokhlayeh@186 32 # http://en.gentoo-wiki.com/wiki/Safe_Cflags
gokhlayeh@186 33 #
paul@429 34 # Note : -pipe will be automatically disabled if you have less than
gokhlayeh@186 35 # 512MB of free RAM to avoid gcc crashes.
gokhlayeh@186 36 #
gokhlayeh@186 37 # Default SliTaz flags - wide compatibility & optimized for i386 as it's the
gokhlayeh@186 38 # slowest CPU :
gokhlayeh@186 39 #CFLAGS="-mtune=$ARCH -O2 -pipe -fomit-frame-pointer"
gokhlayeh@186 40 # Where ARCH=i386
gokhlayeh@186 41 #
paul@429 42 # Cook compatible packages partially optimized for your own hardware :
gokhlayeh@186 43 #CFLAGS="-mtune=$ARCH -O2 -pipe -fomit-frame-pointer"
paul@429 44 # Where ARCH=your arch
gokhlayeh@186 45 #
paul@429 46 # Cook packages fully optimized for your hardware - Warning, compatible only
gokhlayeh@186 47 # with same hardware and newest of the same family :
gokhlayeh@186 48 #CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
slaxemulator@528 49 #CFLAGS="-mtune=$ARCH -O2 -pipe -fomit-frame-pointer"
slaxemulator@535 50 CFLAGS="-march=$ARCH -Os -pipe -fomit-frame-pointer"
gokhlayeh@186 51 CXXFLAGS="$CFLAGS"
pankso@132 52
paul@165 53 # Default tool prefix.
slaxemulator@528 54 TOOLPREFIX="${HOST_SYSTEM}-"
pankso@132 55
pankso@8 56 # Default arguments for GNU configure.
gokhlayeh@186 57 default_prefix=/usr
gokhlayeh@186 58 default_datarootdir=$default_prefix/share
gokhlayeh@186 59 default_datadir=$default_datarootdir
gokhlayeh@186 60 default_localedir=$default_datarootdir/locale
gokhlayeh@186 61 default_infodir=$default_datarootdir/info
gokhlayeh@186 62 default_mandir=$default_datarootdir/man
slaxemulator@528 63 default_build="$BUILD_SYSTEM"
slaxemulator@528 64 default_host="$HOST_SYSTEM"
gokhlayeh@186 65 # CONFIGURE_ARGS is here only for backward compatibility.
slaxemulator@528 66 CONFIGURE_ARGS="--build=$BUILD_SYSTEM --host=$HOST_SYSTEM"
pankso@8 67
paul@165 68 # Translation files to be included in packages. Note that you can specify
paul@165 69 # several locales.
pankso@22 70 LOCALE="fr"
pankso@22 71
paul@165 72 # Mirrors URLs. To download sources near your location.
pankso@8 73 # GNU mirror :
pankso@8 74 GNU_MIRROR="ftp://sunsite.cnlab-switch.ch/mirror/gnu"
pankso@8 75 # SourceForge mirror :
pankso@8 76 SF_MIRROR="http://switch.dl.sourceforge.net/sourceforge"
pankso@8 77 # Xorg mirror :
slaxemulator@524 78 XORG_MIRROR="http://xorg.freedesktop.org/releases/individual"
slaxemulator@180 79 # Gnome mirror :
slaxemulator@180 80 GNOME_MIRROR="http://ftp.gnome.org/pub/GNOME/sources"
pankso@135 81
pankso@135 82 # Favorite console editor.
pankso@135 83 EDITOR="nano"
pankso@135 84
paul@165 85 # FSH standard directories with init. Package generation will abort if
pankso@135 86 # a file is installed in a non-specified path. Note /vz is for OpenVZ.
pankso@135 87 FSH="bin boot dev etc home init lib media mnt proc root sbin share sys \
slaxemulator@531 88 tmp usr run run/udev var vz usr/bin usr/games usr/include usr/lib usr/local usr/sbin \
pankso@135 89 usr/share usr/src"
pascal@150 90
paul@165 91 # tazpkg compression "gzip" or "lzma".
pascal@150 92 COMPRESSION="lzma"
pascal@150 93
gokhlayeh@186 94 # Slitaz Toolchain : the tools used to compile all other packages.
paul@429 95 # Toolchain packages don't need to be included as build_depends
gokhlayeh@186 96 # because they are in the chroot by default. The order in this
gokhlayeh@186 97 # variable is important : it's the compile order for the temporary
gokhlayeh@186 98 # toolchain which can be used to recook the base chroot, then all
paul@429 99 # the wok. Toolchain is compiled this way according to the LFS book :
gokhlayeh@186 100 # First - binutils, GCC; at this point they are linked to the host system.
gokhlayeh@186 101 # Second - the temp toolchain using the order defined in this variable.
paul@429 102 # The toolchain is cross-compiled against a self-depending glibc.
gokhlayeh@186 103 # Third - all the wok in normal order, including the toolchain packages.
gokhlayeh@186 104 # This cook order is used only if glibc/binutils/gcc/linux-api-headers
paul@429 105 # are updated to the next minor version or more (y.x.z -> y.x+1.z).
gokhlayeh@186 106 SLITAZ_TOOLCHAIN="linux-api-headers
gokhlayeh@186 107 glibc
gokhlayeh@186 108 binutils
gokhlayeh@186 109 gcc
gokhlayeh@186 110 busybox
gokhlayeh@186 111 ncurses
gokhlayeh@186 112 bash
gokhlayeh@186 113 bzip2
gokhlayeh@186 114 gawk
gokhlayeh@186 115 gettext
gokhlayeh@186 116 m4
gokhlayeh@186 117 make
gokhlayeh@186 118 patch
slaxemulator@206 119 db
slaxemulator@206 120 gdbm
slaxemulator@206 121 zlib
gokhlayeh@186 122 perl
gokhlayeh@186 123 texinfo
gokhlayeh@186 124 autoconf
gokhlayeh@186 125 automake
gokhlayeh@186 126 lzma"
gokhlayeh@186 127
paul@429 128 # Slitaz toolchain extra : packages which are needed to cook others
gokhlayeh@186 129 # but which are not in the core temporary toolchain.
gokhlayeh@186 130 # Note : order is not important here.
gokhlayeh@186 131 SLITAZ_TOOLCHAIN_EXTRA="tazpkg
gokhlayeh@334 132 tazwok
gokhlayeh@186 133 pkg-config
gokhlayeh@186 134 libtool
gokhlayeh@186 135 libpthread-stubs"
gokhlayeh@186 136
gokhlayeh@186 137 # Cook options :
gokhlayeh@186 138 # Repack sources in .tar.lzma format.
gokhlayeh@186 139 repack_src="yes"