wok view glibc/receipt @ rev 1654

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