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
|
slaxemulator@528
|
36 # Build and host. These options are for cross-compiling. If you specify
|
slaxemulator@528
|
37 # both options and BUILD_SYSTEM is different from HOST_SYSTEM, configure
|
slaxemulator@528
|
38 # will prepare to cross-compile from BUILD_SYSTEM to be used on HOST_SYSTEM.
|
slaxemulator@528
|
39 BUILD_SYSTEM="$(uname -m)-slitaz-linux"
|
slaxemulator@528
|
40 #BUILD_SYSTEM="$ARCH-slitaz-linux"
|
slaxemulator@528
|
41 HOST_SYSTEM="$ARCH-slitaz-linux"
|
slaxemulator@528
|
42
|
paul@165
|
43 # Default build host.
|
slaxemulator@528
|
44 BUILD_HOST="$HOST_SYSTEM"
|
gokhlayeh@186
|
45
|
gokhlayeh@186
|
46 # Default compilation flags.
|
gokhlayeh@186
|
47 # More details at :
|
gokhlayeh@186
|
48 # http://www.gentoo.org/doc/en/gcc-optimization.xml
|
gokhlayeh@186
|
49 # http://en.gentoo-wiki.com/wiki/Safe_Cflags
|
gokhlayeh@186
|
50 #
|
paul@429
|
51 # Note : -pipe will be automatically disabled if you have less than
|
gokhlayeh@186
|
52 # 512MB of free RAM to avoid gcc crashes.
|
gokhlayeh@186
|
53 #
|
gokhlayeh@186
|
54 # Default SliTaz flags - wide compatibility & optimized for i386 as it's the
|
gokhlayeh@186
|
55 # slowest CPU :
|
gokhlayeh@186
|
56 #CFLAGS="-mtune=$ARCH -O2 -pipe -fomit-frame-pointer"
|
gokhlayeh@186
|
57 # Where ARCH=i386
|
gokhlayeh@186
|
58 #
|
paul@429
|
59 # Cook compatible packages partially optimized for your own hardware :
|
gokhlayeh@186
|
60 #CFLAGS="-mtune=$ARCH -O2 -pipe -fomit-frame-pointer"
|
paul@429
|
61 # Where ARCH=your arch
|
gokhlayeh@186
|
62 #
|
paul@429
|
63 # Cook packages fully optimized for your hardware - Warning, compatible only
|
gokhlayeh@186
|
64 # with same hardware and newest of the same family :
|
gokhlayeh@186
|
65 #CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
|
slaxemulator@528
|
66 #CFLAGS="-mtune=$ARCH -O2 -pipe -fomit-frame-pointer"
|
slaxemulator@528
|
67 CFLAGS="-march=$ARCH -0s -pipe -fomit-frame-pointer"
|
gokhlayeh@186
|
68 CXXFLAGS="$CFLAGS"
|
pankso@132
|
69
|
paul@165
|
70 # Default tool prefix.
|
slaxemulator@528
|
71 TOOLPREFIX="${HOST_SYSTEM}-"
|
pankso@132
|
72
|
gokhlayeh@186
|
73 # CONFIGURE_ARGS is here only for backward compatibility.
|
slaxemulator@528
|
74 CONFIGURE_ARGS="--build=$BUILD_SYSTEM --host=$HOST_SYSTEM"
|
pankso@8
|
75
|
paul@165
|
76 # Translation files to be included in packages. Note that you can specify
|
paul@165
|
77 # several locales.
|
pankso@22
|
78 LOCALE="fr"
|
pankso@22
|
79
|
paul@165
|
80 # Mirrors URLs. To download sources near your location.
|
pankso@8
|
81 # GNU mirror :
|
pankso@8
|
82 GNU_MIRROR="ftp://sunsite.cnlab-switch.ch/mirror/gnu"
|
pankso@8
|
83 # SourceForge mirror :
|
pankso@8
|
84 SF_MIRROR="http://switch.dl.sourceforge.net/sourceforge"
|
pankso@8
|
85 # Xorg mirror :
|
slaxemulator@524
|
86 XORG_MIRROR="http://xorg.freedesktop.org/releases/individual"
|
slaxemulator@180
|
87 # Gnome mirror :
|
slaxemulator@180
|
88 GNOME_MIRROR="http://ftp.gnome.org/pub/GNOME/sources"
|
pankso@135
|
89
|
pankso@135
|
90 # Favorite console editor.
|
pankso@135
|
91 EDITOR="nano"
|
pankso@135
|
92
|
paul@165
|
93 # FSH standard directories with init. Package generation will abort if
|
pankso@135
|
94 # a file is installed in a non-specified path. Note /vz is for OpenVZ.
|
pankso@135
|
95 FSH="bin boot dev etc home init lib media mnt proc root sbin share sys \
|
slaxemulator@531
|
96 tmp usr run run/udev var vz usr/bin usr/games usr/include usr/lib usr/local usr/sbin \
|
pankso@135
|
97 usr/share usr/src"
|
pascal@150
|
98
|
paul@165
|
99 # tazpkg compression "gzip" or "lzma".
|
pascal@150
|
100 COMPRESSION="lzma"
|
pascal@150
|
101
|
gokhlayeh@186
|
102 # Slitaz Toolchain : the tools used to compile all other packages.
|
paul@429
|
103 # Toolchain packages don't need to be included as build_depends
|
gokhlayeh@186
|
104 # because they are in the chroot by default. The order in this
|
gokhlayeh@186
|
105 # variable is important : it's the compile order for the temporary
|
gokhlayeh@186
|
106 # toolchain which can be used to recook the base chroot, then all
|
paul@429
|
107 # the wok. Toolchain is compiled this way according to the LFS book :
|
gokhlayeh@186
|
108 # First - binutils, GCC; at this point they are linked to the host system.
|
gokhlayeh@186
|
109 # Second - the temp toolchain using the order defined in this variable.
|
paul@429
|
110 # The toolchain is cross-compiled against a self-depending glibc.
|
gokhlayeh@186
|
111 # Third - all the wok in normal order, including the toolchain packages.
|
gokhlayeh@186
|
112 # This cook order is used only if glibc/binutils/gcc/linux-api-headers
|
paul@429
|
113 # are updated to the next minor version or more (y.x.z -> y.x+1.z).
|
gokhlayeh@186
|
114 SLITAZ_TOOLCHAIN="linux-api-headers
|
gokhlayeh@186
|
115 glibc
|
gokhlayeh@186
|
116 binutils
|
gokhlayeh@186
|
117 gcc
|
gokhlayeh@186
|
118 busybox
|
gokhlayeh@186
|
119 ncurses
|
gokhlayeh@186
|
120 bash
|
gokhlayeh@186
|
121 bzip2
|
gokhlayeh@186
|
122 gawk
|
gokhlayeh@186
|
123 gettext
|
gokhlayeh@186
|
124 m4
|
gokhlayeh@186
|
125 make
|
gokhlayeh@186
|
126 patch
|
slaxemulator@206
|
127 db
|
slaxemulator@206
|
128 gdbm
|
slaxemulator@206
|
129 zlib
|
gokhlayeh@186
|
130 perl
|
gokhlayeh@186
|
131 texinfo
|
gokhlayeh@186
|
132 autoconf
|
gokhlayeh@186
|
133 automake
|
gokhlayeh@186
|
134 lzma"
|
gokhlayeh@186
|
135
|
paul@429
|
136 # Slitaz toolchain extra : packages which are needed to cook others
|
gokhlayeh@186
|
137 # but which are not in the core temporary toolchain.
|
gokhlayeh@186
|
138 # Note : order is not important here.
|
gokhlayeh@186
|
139 SLITAZ_TOOLCHAIN_EXTRA="tazpkg
|
gokhlayeh@334
|
140 tazwok
|
gokhlayeh@186
|
141 pkg-config
|
gokhlayeh@186
|
142 libtool
|
gokhlayeh@186
|
143 libpthread-stubs"
|
gokhlayeh@186
|
144
|
gokhlayeh@186
|
145 # Cook options :
|
gokhlayeh@186
|
146 # Repack sources in .tar.lzma format.
|
gokhlayeh@186
|
147 repack_src="yes"
|