initial checkin of new hdw-linux development cvs repository
[hdw-linux/hdw-linux.git] / packages / base / glibc / glibc
1 # hdw - linux glibc package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] cvs
6 # [S] 2-3
7 ## [D] glibc-2.3.2.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
8 # [D] glibc.tar.bz2 cvs:anoncvs:sources.redhat.com:cvs/glibc:libc
9
10 srcdir=libc
11 extraver="-${ver}"
12 [ "$ver" = "cvs" ] && extraver=""
13
14 confopt="$confopt --enable-add-ons=nptl --disable-profile --with-tls"
15 confopt="$confopt --libexecdir=$root/tmp/pt_chown --without-cvs"
16 confopt="$confopt --with-headers=/${s1_prefix}/glibc-kernheaders"
17
18 pre_install()   {
19         echo "creating some files needed for build ..."
20         mkdir -p $prefix/etc
21         [ ! -f $root/etc/ld.so.conf ] && touch $root/etc/ld.so.conf
22         [ ! -c /dev/null ] && mknod -m 0666 /dev/null c 1 3
23         echo "done (file creating)"
24                 }
25
26 build_main()    {
27         # create and change to seperated build directory
28         mkdir -p ../glibc-build &&
29         cd ../glibc-build
30
31         # configure and prepare Makefile
32         ../${srcdir}${extraver}/configure $confopt
33
34         # build and install
35         make && make install && make localedata/install-locales
36                 }