fixes + develpment updates
[hdw-linux/hdw-linux.git] / packages / base / glibc / glibc
1 # hdw - linux glibc package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] 2.3.5
6 # [S] 2-3
7 # [D] glibc-2.3.5.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
8 # [D] glibc-linuxthreads-2.3.5.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
9
10 kernver=`grep '^#\ \[V\]' $confdir/../linux/linux | awk '{ print $3 }'`
11 kernver=`echo $kernver \7f| awk -F. '{ print $1 "." $2 }'`
12 extraver="-${ver}"
13 [ "$ver" = "cvs" ] && extraver=""
14
15 confopt="$confopt --enable-add-ons --disable-profile"
16 confopt="$confopt --libexecdir=$prefix/lib/glibc --without-cvs"
17 confopt="$confopt --enable-kernel=$kernver"
18
19 pre_install()   {
20         echo "creating some files needed for build ..."
21         mkdir -p $prefix/etc
22         [ ! -f $root/etc/ld.so.conf ] && touch $root/etc/ld.so.conf
23         [ ! -c $root/dev/null ] && mknod -m 0666 $root/dev/null c 1 3
24         echo "done (file creating)"
25                 }
26
27 build_main()    {
28         # create and change to seperated build directory
29         mkdir -p ../glibc-build &&
30         cd ../glibc-build
31
32         # configure and prepare Makefile
33         ../glibc${extraver}/configure $confopt
34
35         # build and install
36         make && make install && make localedata/install-locales
37                 }