2006-02-23 16:26:10 +01:00
|
|
|
|
# Description: The C library used in the GNU system
|
|
|
|
|
# URL: http://www.gnu.org/software/libc/
|
|
|
|
|
# Maintainer: Per Lid<69>n <per@fukt.bth.se>
|
|
|
|
|
|
|
|
|
|
name=glibc
|
2006-02-23 18:31:48 +01:00
|
|
|
|
version=2.3.6
|
2006-03-16 18:56:22 +01:00
|
|
|
|
release=2
|
2006-02-23 16:26:10 +01:00
|
|
|
|
source=(http://mirrors.sunsite.dk/gnu/$name/$name-$version.tar.bz2 \
|
2006-03-16 18:56:22 +01:00
|
|
|
|
http://crux.nu/files/dist/kernel-headers-2.6.14-1.tar.bz2 \
|
|
|
|
|
hosts resolv.conf nsswitch.conf host.conf ld.so.conf)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
|
mkdir -p $PKG/usr/include
|
2006-03-16 18:56:22 +01:00
|
|
|
|
cp -r kernel-headers/{linux,asm-generic} $PKG/usr/include
|
|
|
|
|
cp -r kernel-headers/asm-i386 $PKG/usr/include/asm
|
|
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
|
mkdir build
|
|
|
|
|
cd build
|
|
|
|
|
../$name-$version/configure --prefix=/usr \
|
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
|
--with-headers=$PKG/usr/include \
|
|
|
|
|
--with-tls \
|
|
|
|
|
--enable-kernel=2.6.0 \
|
|
|
|
|
--enable-add-ons \
|
|
|
|
|
--disable-profile \
|
|
|
|
|
--without-gd
|
|
|
|
|
make
|
2006-02-23 18:31:48 +01:00
|
|
|
|
#make check
|
2006-02-23 16:26:10 +01:00
|
|
|
|
make install_root=$PKG install
|
|
|
|
|
make install_root=$PKG localedata/install-locales
|
|
|
|
|
cp ../{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc
|
|
|
|
|
ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
|
|
|
|
|
rm -rf $PKG/usr/share/locale
|
|
|
|
|
}
|