wok annotate glibc/receipt @ rev 7345
Up: libxml2 to 2.7.8.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Nov 21 18:30:03 2010 +0000 (2010-11-21) |
parents | 8f591bab8b6f |
children | c906b3acf847 |
rev | line source |
---|---|
pankso@9 | 1 # SliTaz package receipt. |
pankso@9 | 2 |
pankso@9 | 3 PACKAGE="glibc" |
pankso@5620 | 4 VERSION="2.11.2" |
pankso@3475 | 5 CATEGORY="meta" |
pankso@9 | 6 SHORT_DESC="The GNU C libraries. This package is used to compile the libc." |
pankso@9 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@528 | 8 DEPENDS="glibc-base glibc-locale glibc-dev" |
pankso@1153 | 9 BUILD_DEPENDS="slitaz-toolchain gawk perl" |
pankso@9 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@9 | 11 WEB_SITE="http://www.gnu.org/software/libc/" |
pankso@9 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pankso@9 | 13 |
pankso@9 | 14 # Rules to configure and make the package. |
pankso@528 | 15 # |
pankso@528 | 16 # Build order: glibc, glibc-base, glibc-locale, glibc-dev. |
pankso@528 | 17 # |
pankso@9 | 18 compile_rules() |
pankso@9 | 19 { |
pankso@9 | 20 mkdir glibc-build |
pankso@9 | 21 cd glibc-build |
pascal@1485 | 22 # Install in the build tree and then move all files |
pascal@1485 | 23 # to the source tree to keep $src and $_pkg for genpkg. |
pascal@1560 | 24 mkdir -p ../$PACKAGE-$VERSION/_pkg/etc |
pascal@1560 | 25 touch ../$PACKAGE-$VERSION/_pkg/etc/ld.so.conf |
pankso@5333 | 26 #echo "CFLAGS += -march=i486 -mtune=native -O3 -pipe" > configparms |
pankso@1153 | 27 ../$PACKAGE-$VERSION/configure \ |
pankso@1153 | 28 --prefix=/usr \ |
pankso@1153 | 29 --infodir=/usr/share/info \ |
pankso@1153 | 30 --disable-profile \ |
pankso@1153 | 31 --enable-add-ons \ |
pankso@3358 | 32 --enable-kernel=2.6.18 \ |
pankso@1153 | 33 --libexecdir=/usr/lib/glibc \ |
pascal@1485 | 34 $CONFIGURE_ARGS && |
pascal@5784 | 35 make -j 4 && |
pascal@1485 | 36 make install_root=$(cd ../$PACKAGE-$VERSION ; pwd)/_pkg install |
pankso@9 | 37 } |
pankso@9 | 38 |
pankso@9 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@9 | 40 genpkg_rules() |
pankso@9 | 41 { |
pankso@2701 | 42 LOCALE="" |
pankso@9 | 43 mkdir -p $fs/var |
pascal@3612 | 44 for i in $(grep -l '^WANTED="glibc"' $WOK/*/receipt); do |
pascal@3611 | 45 tazwok genpkg $(basename $(dirname $i)) |
pankso@1153 | 46 done |
pankso@2701 | 47 echo "" |
pankso@2756 | 48 echo "--> Install glibc-base, glibc-dev and cook busybox" |
pankso@2701 | 49 echo "" |
pankso@9 | 50 } |