2 version
=${pkg_name##*-}
4 archive_name
=$src_name-$version.
tar.xz
5 url0
=http
://download.savannah.gnu.org
/releases
/$src_name/$archive_name
7 pkg_dir
=$pkgs_dir_root/$src_name-$version
9 mkdir
-p $pkgs_dir_root
10 cp -f $src_dir_root/$archive_name $pkgs_dir_root
14 # enable lcd subpixel filtering
15 sed -r "s:.*(#.*SUBPIXEL_RENDERING) .*:\1:" \
16 -i $pkg_dir/include
/freetype
/config
/ftoption.h
18 build_dir
=$builds_dir_root/$src_name-$version
25 /nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin:\
26 /nyan/make/current/bin:\
27 /nyan/pkgconf/current/bin:\
30 target_gnu_triple
=$
(basename "$(ls -d /nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin/*-gcc)")
31 target_gnu_triple
=${target_gnu_triple%-gcc}
33 export "PKG_CONFIG_LIBDIR=\
34 /nyan/zlib/current/lib/pkgconfig:\
35 /nyan/libpng/current/lib/pkgconfig"
36 export PKG_CONFIG
=pkgconf
38 -isystem /nyan/glibc/current/include \
39 -isystem /nyan/linux-headers/current/include \
40 -I/nyan/bzip2/current/include"
41 export 'CFLAGS=-O2 -pipe -fPIC -static-libgcc'
43 -L/nyan/bzip2/current/lib \
44 -B/nyan/glibc/current/lib \
45 -L/nyan/glibc/current/lib \
46 -Wl,-rpath-link,/nyan/glibc/current/lib \
49 # must add the full blow CC for tools
50 export "CC=$target_gnu_triple-gcc \
54 --prefix=/nyan
/$src_name/$slot \
68 rm -Rf /nyan
/$src_name/$slot/share
/man
69 rm -f /nyan
/$src_name/$slot/lib
/*.la
71 export PATH
=$PATH_SAVED
73 unset target_gnu_triple
74 rm -f $pkgs_dir_root/$archive_name
75 rm -Rf $build_dir $pkg_dir