wok-next view glibc/receipt @ rev 2701

Up: glibc (2.9)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 22 18:22:46 2009 +0200 (2009-04-22)
parents a3065cacbb70
children ab6f0fde903d
line source
1 # SliTaz package receipt.
3 PACKAGE="glibc"
4 VERSION="2.9"
5 CATEGORY="development"
6 SHORT_DESC="The GNU C libraries. This package is used to compile the libc."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="glibc-base glibc-locale glibc-dev"
9 BUILD_DEPENDS="slitaz-toolchain gawk perl"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.gnu.org/software/libc/"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 #
16 # Build order: glibc, glibc-base, glibc-locale, glibc-dev.
17 #
18 compile_rules()
19 {
20 mkdir glibc-build
21 cd glibc-build
22 # Install in the build tree and then move all files
23 # to the source tree to keep $src and $_pkg for genpkg.
24 mkdir -p ../$PACKAGE-$VERSION/_pkg/etc
25 touch ../$PACKAGE-$VERSION/_pkg/etc/ld.so.conf
26 echo "CFLAGS += -march=i486 -mtune=native" > configparms
27 ../$PACKAGE-$VERSION/configure \
28 --prefix=/usr \
29 --infodir=/usr/share/info \
30 --disable-profile \
31 --enable-add-ons \
32 --enable-kernel=2.6.0 \
33 --libexecdir=/usr/lib/glibc \
34 $CONFIGURE_ARGS &&
35 make &&
36 make install_root=$(cd ../$PACKAGE-$VERSION ; pwd)/_pkg install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 LOCALE=""
43 mkdir -p $fs/var
44 for i in base locale dev
45 do
46 tazwok genpkg glibc-$i
47 done
48 echo ""
49 echo "--> Install glibc-base and cook busybox"
50 echo ""
51 }