wok-current annotate glibc/receipt @ rev 3475

Fix CATEGORY for meta package (skipped by 'tazbb pkgs-tests')
author Christophe Lincoln <pankso@slitaz.org>
date Tue Jun 16 23:25:43 2009 +0200 (2009-06-16)
parents 0b10fe4a9b25
children fee531f1e85e
rev   line source
pankso@9 1 # SliTaz package receipt.
pankso@9 2
pankso@9 3 PACKAGE="glibc"
pankso@3152 4 VERSION="2.10.1"
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@3152 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@1485 35 make &&
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
pankso@2756 44 for i in base extra-samba locale dev
pankso@1153 45 do
pankso@1153 46 tazwok genpkg glibc-$i
pankso@1153 47 done
pankso@2701 48 echo ""
pankso@2756 49 echo "--> Install glibc-base, glibc-dev and cook busybox"
pankso@2701 50 echo ""
pankso@9 51 }