continuance of moving core video game libs to glibc default dir
[nyanlinux.git] / builders / fribidi-0 / builder.sh
blob7306235271d55ddba238323ffe80d30edbf8ba56
1 src_name=fribidi
2 version=1.0.2
3 archive_name=$src_name-$version.tar.bz2
4 url0=https://github.com/$src_name/$src_name/releases/download/v$version/$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 export 'CC=gcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc'
17 export 'CFLAGS=-O2 -pipe -fPIC'
18 $src_dir/configure \
19 --prefix=/nyan/fribidi/0 \
20 --disable-shared \
21 --enable-static \
22 --disable-debug \
23 --disable-deprecated \
24 --disable-docs \
25 --with-glib=no
26 unset CFLAGS
27 unset CC
29 make -j $threads_n
30 make install
32 # cleanup and tidying
33 rm -f /nyan/$src_name/0/lib/*.la
34 strip -s /nyan/$src_name/0/bin/$src_name
36 rm -Rf $build_dir $src_dir