wok-current view glibc/receipt @ rev 1260
Up: udev (126)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Aug 13 19:20:53 2008 +0200 (2008-08-13) |
parents | c066c4f6872f |
children | b1b0dea92d3d |
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 echo "CFLAGS += -march=i486" > configparms
24 ../$PACKAGE-$VERSION/configure \
25 --prefix=/usr \
26 --infodir=/usr/share/info \
27 --disable-profile \
28 --enable-add-ons \
29 --enable-kernel=2.6.0 \
30 --libexecdir=/usr/lib/glibc \
31 $CONFIGURE_ARGS
32 make
33 # Install in the build tree and then move all files
34 # to the source tree to keep $src and $_pkg for genpkg.
35 mkdir -p _pkg/etc
36 touch _pkg/etc/ld.so.conf
37 make install_root=$PWD/_pkg install
38 mv _pkg ../$PACKAGE-$VERSION
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 #
43 # Just a dir for the meta-package.
44 #
45 genpkg_rules()
46 {
47 mkdir -p $fs/var
48 for i in base locale dev
49 do
50 tazwok genpkg glibc-$i
51 done
52 }