From 0658d40c4b7773542aafcb0acab35b14667644ed Mon Sep 17 00:00:00 2001 From: Sylvain BERTRAND Date: Sun, 23 Oct 2022 14:11:34 +0000 Subject: [PATCH] freetype: update --- builders/freetype-2.12.1/builder.sh | 75 +++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 builders/freetype-2.12.1/builder.sh diff --git a/builders/freetype-2.12.1/builder.sh b/builders/freetype-2.12.1/builder.sh new file mode 100644 index 0000000..2a45c86 --- /dev/null +++ b/builders/freetype-2.12.1/builder.sh @@ -0,0 +1,75 @@ +src_name=freetype +version=${pkg_name##*-} +slot=$version +archive_name=$src_name-$version.tar.xz +url0=http://download.savannah.gnu.org/releases/$src_name/$archive_name + +pkg_dir=$pkgs_dir_root/$src_name-$version +rm -Rf $pkg_dir +mkdir -p $pkgs_dir_root +cp -f $src_dir_root/$archive_name $pkgs_dir_root +cd $pkgs_dir_root +tar xf $archive_name + +# enable lcd subpixel filtering +sed -r "s:.*(#.*SUBPIXEL_RENDERING) .*:\1:" \ + -i $pkg_dir/include/freetype/config/ftoption.h + +build_dir=$builds_dir_root/$src_name-$version +rm -Rf $build_dir +mkdir -p $build_dir +cd $build_dir + +PATH_SAVED=$PATH +export PATH="\ +/nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin:\ +/nyan/make/current/bin:\ +/nyan/pkgconf/current/bin:\ +$PATH\ +" +target_gnu_triple=$(basename "$(ls -d /nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin/*-gcc)") +target_gnu_triple=${target_gnu_triple%-gcc} + +export "PKG_CONFIG_LIBDIR=\ +/nyan/zlib/current/lib/pkgconfig:\ +/nyan/libpng/current/lib/pkgconfig" +export PKG_CONFIG=pkgconf +export "CPPFLAGS=\ + -isystem /nyan/glibc/current/include \ + -isystem /nyan/linux-headers/current/include \ + -I/nyan/bzip2/current/include" +export 'CFLAGS=-O2 -pipe -fPIC -static-libgcc' +export "LDFLAGS=\ + -L/nyan/bzip2/current/lib \ + -B/nyan/glibc/current/lib \ + -L/nyan/glibc/current/lib \ + -Wl,-rpath-link,/nyan/glibc/current/lib \ + -Wl,-s \ + -static-libgcc" +# must add the full blow CC for tools +export "CC=$target_gnu_triple-gcc \ + $CPPFLAGS \ + $LDFLAGS" +$pkg_dir/configure \ + --prefix=/nyan/$src_name/$slot \ + --disable-static \ + --enable-shared \ + --enable-mmap \ + --without-harfbuzz +unset PKG_CONFIG +unset CPPFLAGS +unset CFLAGS +unset LDFLAGS +unset CC + +make -j $threads_n +make install + +rm -Rf /nyan/$src_name/$slot/share/man +rm -f /nyan/$src_name/$slot/lib/*.la + +export PATH=$PATH_SAVED +unset PATH_SAVED +unset target_gnu_triple +rm -f $pkgs_dir_root/$archive_name +rm -Rf $build_dir $pkg_dir -- 2.11.4.GIT