wok-current annotate glibc/receipt @ rev 1153

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