wok-next view glibc/receipt @ rev 2917
Up: enlightenment wm, tools and lib to the last snapshot or svn
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 06 23:15:28 2009 +0200 (2009-05-06) |
parents | 4a057e1fc620 |
children | b30c937c2ca9 |
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 extra-samba locale dev
45 do
46 tazwok genpkg glibc-$i
47 done
48 echo ""
49 echo "--> Install glibc-base, glibc-dev and cook busybox"
50 echo ""
51 }