first stage of new bootstrap
[nyanlinux.git] / builders / gettext-0 / builder.sh
blob2bc46880d6090084b2a42a485e5e83e42faa9650
1 src_name=gettext
2 version=0.19.8.1
3 archive_name=$src_name-$version.tar.xz
4 url0=http://ftpmirror.gnu.org/$src_name/$archive_name
6 src_dir=$src_dir_root/$src_name-$version
7 cd $src_dir_root
8 rm -Rf $src_name-$version
9 tar xf $archive_name
11 build_dir=$builds_dir_root/$pkg_name-$version
12 rm -Rf $build_dir
13 mkdir -p $build_dir
14 cd $build_dir
16 # it wants sh in path
17 OLD_PATH=$PATH
18 export PATH=$PATH:/bin
20 export 'CC=gcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc'
21 export 'CFLAGS=-O2 -pipe -fPIC'
22 $src_dir/configure \
23 --prefix=/nyan/gettext/0 \
24 --disable-java \
25 --disable-native-java \
26 --enable-threads=posix \
27 --disable-shared \
28 --enable-static \
29 --disable-nls \
30 --disable-c++ \
31 --disable-openmp \
32 --disable-acl \
33 --disable-curses \
34 --with-gnu-ld \
35 --with-included-gettext \
36 --with-included-glib \
37 --with-included-libcroco \
38 --with-included-libunistring \
39 --with-included-libxml \
40 --without-included-regex \
41 --without-emacs
42 unset CFLAGS
43 unset CC
45 make -j $threads_n
46 make install
48 # cleanup and tidying
49 rm -Rf /nyan/$src_name/0/share/doc
50 rm -Rf /nyan/$src_name/0/share/info
51 rm -Rf /nyan/$src_name/0/share/man
52 find /nyan/$src_name/0 -name '*.la' | xargs rm -f
53 find /nyan/$src_name/0 -type f | while read f; do if file $f | egrep 'ELF.+(shared|executable)' >/dev/null; then strip -s $f; fi; done
55 rm -Rf $build_dir $src_dir
56 export PATH=$OLD_PATH