Gfx Stack Update
[nyanlinux.git] / builders / charfbuzz-0 / builder.sh
blob8b1d950dacbc8092596b83aa0f0eb12e7a9cddf5
1 src_name=charfbuzz
2 git_commit=d42521e6a7d4d65561704947994baa8ba2ba373d
3 git_url0=git://github.com/sylware/$src_name
5 pkg_dir=$pkgs_dir_root/$pkg_name
6 src_dir=$src_dir_root/$src_name
7 rm -Rf $pkg_dir
8 mkdir -p $pkgs_dir_root
9 cp -r $src_dir $pkg_dir
11 cd $pkg_dir
13 git checkout --force $git_commit
14 git reset --hard
16 build_dir=$builds_dir_root/$pkg_name
17 rm -Rf $build_dir
18 mkdir -p $build_dir
19 cd $build_dir
21 export "PKG_CONFIG_PATH=\
22 /nyan/libpng/current/lib/pkgconfig:\
23 /nyan/zlib/current/lib/pkgconfig:\
24 /nyan/freetype/current/lib/pkgconfig"
26 $pkg_dir/make \
27 --disable-glib \
28 --prefix=/nyan/charfbuzz/0 \
29 '--slib-cc=gcc -static-libgcc -O2 -pipe -fPIC -c' \
30 '--slib-ccld=gcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc -shared -Wl,-soname=libharfbuzz.so.0'
32 unset PKG_CONFIG_PATH
34 mkdir -p /nyan/charfbuzz/0
35 cp -r $build_dir/fake_root/* /
37 # cleanup and tidying
38 # remove the shared lib
39 rm -f /nyan/charfbuzz/0/lib/*.so*
41 rm -Rf $build_dir $pkg_dir