wok-current view glibc/receipt @ rev 3456

Update: freetype1
author Matthew Sheets <rcx@zoominternet.net>
date Mon Jun 15 14:58:20 2009 +0000 (2009-06-15)
parents b30c937c2ca9
children 4c43897383ee
line source
1 # SliTaz package receipt.
3 PACKAGE="glibc"
4 VERSION="2.10.1"
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 -O3 -pipe" > 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.18 \
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 }