diff --git a/linux/build.sh b/linux/build.sh index 8331063..ca0cff2 100755 --- a/linux/build.sh +++ b/linux/build.sh @@ -305,7 +305,6 @@ then --host=$SDK_TARGET \ --target=$SDK_TARGET \ --prefix="" \ - --includedir=$dist/include \ --with-sysroot=$dist \ --with-zlib-prefix=$dist \ $SDK_LIBPNG_ARGS @@ -315,29 +314,33 @@ then popd fi -# # build freetype -# if [ ! -f $home/freetype/stamp ] -# then -# pushd $ext/freetype -# NOCONFIGURE=1 ./autogen.sh -# popd -# -# mkdir -p $home/freetype -# pushd $home/freetype -# PKG_CONFIG_PATH=$dist/share/pkgconfig:$dist/lib/pkgconfig \ -# PKG_CONFIG_SYSROOT_DIR=$dist \ -# $ext/freetype/configure \ -# CFLAGS="-O0" \ -# --host=$SDK_TARGET \ -# --target=$SDK_TARGET \ -# --prefix="" \ -# --with-sysroot=$dist \ -# $SDK_FREETYPE_ARGS -# make -# make DESTDIR=$dist install -# touch stamp -# popd -# fi +# build freetype +if [ ! -f $home/freetype/stamp ] +then + pushd $ext/freetype + NOCONFIGURE=1 ./autogen.sh + popd + + mkdir -p $home/freetype + pushd $home/freetype + PKG_CONFIG_PATH=$dist/share/pkgconfig:$dist/lib/pkgconfig \ + PKG_CONFIG_SYSROOT_DIR=$dist \ + CFLAGS="--sysroot=$dist -I$dist/include" \ + CPPFLAGS="--sysroot=$dist -I$dist/include" \ + LDFLAGS="--sysroot=$dist -L$dist/lib" \ + $ext/freetype/configure \ + CFLAGS="-O0" \ + --host=$SDK_TARGET \ + --target=$SDK_TARGET \ + --prefix="" \ + --with-sysroot=$dist \ + --with-brotli=no \ + $SDK_FREETYPE_ARGS + make + make DESTDIR=$dist install + touch stamp + popd +fi # # build libexpat # if [ ! -f $home/libexpat/stamp ]