wok-stable annotate slitaz-toolchain/receipt @ rev 12436

imagemagick: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 21 10:37:49 2014 +0200 (2014-08-21)
parents 65cfbc1490ea
children
rev   line source
pankso@16 1 # SliTaz package receipt.
pankso@16 2
pankso@16 3 PACKAGE="slitaz-toolchain"
pankso@9717 4 VERSION="4.0"
pankso@211 5 CATEGORY="meta"
pankso@9717 6 SHORT_DESC="SliTaz meta package to rebuild or install current toolchain."
pankso@16 7 MAINTAINER="pankso@slitaz.org"
pankso@9717 8 WEB_SITE="http://www.slitaz.org/"
pankso@9717 9
pascal@9485 10 DEPENDS="binutils linux-api-headers glibc-dev gcc make elfkickers"
pankso@9717 11
pankso@9717 12 # The goal here is to build and install SliTaz toolchain. We build the toolchain
pankso@9717 13 # from SliTaz packages, on SliTaz and for SliTaz so in case of new and important
pankso@9717 14 # toolchain upgrade we must build Binutils a first time, then GCC so it use the
pankso@9717 15 # new Binutils. After we cook Glibc and then rebuild Binutils + GCC a second
pankso@9717 16 # time so they are linked with the new main GNU libc. We usually also due a
pankso@9717 17 # bootstrap by recooking slitaz-toolchain a second time so we are sure it can
pankso@9717 18 # rebuild itself.
pankso@9717 19 #
pankso@9717 20 # SliTaz does one big toolchain by year just after the stable release, any change
pankso@9717 21 # here or in the toolchain packages version must be discuss on the mailing list.
pankso@9717 22
pankso@9717 23 # Rules to configure and make the package.
pankso@9717 24 compile_rules()
pankso@9717 25 {
gokhlayeh@11391 26 [ -x /usr/bin/cook ] || return 0
pankso@9717 27 tmplog=$LOGS/$PACKAGE.tmplog
pankso@9717 28 echo "Cook: $PACKAGE $VERSION" > $tmplog
pankso@9717 29 separator >> $tmplog
pankso@10035 30 cat >> $tmplog << EOT
pankso@10097 31 Cook toolchain : started $(date "+%Y-%m-%d %H:%M")
pankso@10097 32 Architecture : $ARCH
pankso@10097 33 Build system : $BUILD_SYSTEM
pankso@10097 34 Host system : $HOST_SYSTEM
pankso@10035 35 EOT
pankso@9717 36
pankso@9717 37 # 1. binutils (first pass)
pankso@9717 38 echo "cook: binutils first pass: $(date '+%Y-%m-%d %H:%M')" >> $tmplog
pankso@9717 39 cook binutils --install
pankso@9717 40
pankso@9717 41 # 2. gcc (first pass)
pankso@9717 42 echo "cook: GCC first pass: $(date '+%Y-%m-%d %H:%M')" >> $tmplog
pankso@9717 43 cook gcc --install --first-pass
pankso@9783 44 cook gcc-lib-base --install
pankso@9717 45
pankso@9717 46 # 3. linux-api-headers
pankso@9717 47 echo "cook: linux API headers: $(date '+%Y-%m-%d %H:%M')" >> $tmplog
pankso@9717 48 cook linux-api-headers --install
pankso@9717 49
pankso@9717 50 # 4. glibc
pankso@9717 51 for i in glibc glibc-base glibc-extra-samba glibc-locale glibc-dev
pankso@9717 52 do
pankso@9717 53 echo "cook: $i: $(date '+%Y-%m-%d %H:%M')" >> $tmplog
pankso@9717 54 cook $i --install
pankso@9717 55 done
pankso@9717 56
pankso@9717 57 # 5. binutils (final)
pankso@9717 58 echo "cook: binutils final: $(date '+%Y-%m-%d %H:%M')" >> $tmplog
pankso@9717 59 cook binutils --install
pankso@9717 60
pankso@9717 61 # 6. gcc (final)
pankso@9717 62 echo "cook: GCC final: $(date '+%Y-%m-%d %H:%M')" >> $tmplog
pankso@10271 63 for i in gcc gcc-lib-base libobjc libgomp
pankso@10036 64 do
pankso@10036 65 echo "cook: $i: $(date '+%Y-%m-%d %H:%M')" >> $tmplog
pankso@10036 66 cook $i --install
pankso@10036 67 done
pankso@10036 68 cook libgfortran
pankso@10036 69 cook gfortran
pankso@10097 70 separator >> $tmplog
pankso@10097 71
pankso@10097 72 # GCC info in toolchain.log
pankso@10097 73 echo -e "\nGCC compiler information" >> $tmplog
pankso@10097 74 separator >> $tmplog
pankso@10116 75 gcc -v 2>> $tmplog
pankso@9717 76
pankso@9717 77 # All packages cooked got ther own log so we dont keep them.
pankso@9717 78 separator >> $tmplog && echo "" >> $tmplog
pankso@9717 79 mv -f $tmplog $LOGS/$PACKAGE.log
pankso@9717 80 }
pankso@16 81
pankso@16 82 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16 83 genpkg_rules()
pankso@16 84 {
pankso@9717 85 binutils=$(grep ^VERSION $WOK/binutils/receipt | cut -d '"' -f 2)
pankso@9717 86 linux=$(grep ^VERSION $WOK/linux/receipt | cut -d '"' -f 2)
pankso@10097 87 gcc=$(grep ^VERSION $WOK/gcc/receipt | cut -d '"' -f 2)
pankso@10097 88 glibc=$(grep ^VERSION $WOK/glibc/receipt | cut -d '"' -f 2)
pankso@9717 89
pankso@9718 90 mkdir -p $fs/usr/share/doc/slitaz
pankso@9718 91 cat > $fs/usr/share/doc/slitaz/toolchain.txt << EOT
pankso@9717 92 SliTaz GNU/Linux toolchain
pankso@9717 93 ================================================================================
pankso@10036 94
pankso@10035 95 Build date : $(date "+%Y-%m-%d")
pankso@10097 96 Architecture : $ARCH
pankso@10035 97 Build system : $BUILD_SYSTEM
pankso@10035 98 Host system : $HOST_SYSTEM
pankso@10035 99
pankso@9717 100 Packages:
pankso@9717 101
pankso@9717 102 * Binutils $binutils
pankso@9717 103 * Linux API headers $linux
pankso@9717 104 * GCC $gcc
pankso@9717 105 * Glibc $glibc
pankso@9717 106
pankso@10097 107 Toolchain documentation: http://doc.slitaz.org/en:cookbook:toolchain
pankso@10036 108
pankso@9717 109 ================================================================================
pankso@9717 110
pankso@9717 111 EOT
pankso@16 112 }