wok-stable annotate glibc/receipt @ rev 2004
Up: sakura (2.3.2)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Jan 08 20:25:10 2009 +0100 (2009-01-08) |
parents | b1b0dea92d3d |
children | 4a057e1fc620 |
rev | line source |
---|---|
pankso@9 | 1 # SliTaz package receipt. |
pankso@9 | 2 |
pankso@9 | 3 PACKAGE="glibc" |
pankso@528 | 4 VERSION="2.7" |
pankso@211 | 5 CATEGORY="development" |
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@528 | 13 LOCALE="" |
pankso@9 | 14 |
pankso@9 | 15 # Rules to configure and make the package. |
pankso@528 | 16 # |
pankso@528 | 17 # Build order: glibc, glibc-base, glibc-locale, glibc-dev. |
pankso@528 | 18 # |
pankso@9 | 19 compile_rules() |
pankso@9 | 20 { |
pankso@9 | 21 mkdir glibc-build |
pankso@9 | 22 cd glibc-build |
pascal@1485 | 23 # Install in the build tree and then move all files |
pascal@1485 | 24 # to the source tree to keep $src and $_pkg for genpkg. |
pascal@1560 | 25 mkdir -p ../$PACKAGE-$VERSION/_pkg/etc |
pascal@1560 | 26 touch ../$PACKAGE-$VERSION/_pkg/etc/ld.so.conf |
pankso@528 | 27 echo "CFLAGS += -march=i486" > configparms |
pankso@1153 | 28 ../$PACKAGE-$VERSION/configure \ |
pankso@1153 | 29 --prefix=/usr \ |
pankso@1153 | 30 --infodir=/usr/share/info \ |
pankso@1153 | 31 --disable-profile \ |
pankso@1153 | 32 --enable-add-ons \ |
pankso@1153 | 33 --enable-kernel=2.6.0 \ |
pankso@1153 | 34 --libexecdir=/usr/lib/glibc \ |
pascal@1485 | 35 $CONFIGURE_ARGS && |
pascal@1485 | 36 make && |
pascal@1485 | 37 make install_root=$(cd ../$PACKAGE-$VERSION ; pwd)/_pkg install |
pankso@9 | 38 } |
pankso@9 | 39 |
pankso@9 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@9 | 41 # |
pankso@9 | 42 # Just a dir for the meta-package. |
pankso@9 | 43 # |
pankso@9 | 44 genpkg_rules() |
pankso@9 | 45 { |
pankso@9 | 46 mkdir -p $fs/var |
pankso@1153 | 47 for i in base locale dev |
pankso@1153 | 48 do |
pankso@1153 | 49 tazwok genpkg glibc-$i |
pankso@1153 | 50 done |
pankso@9 | 51 } |