Skip to content

Commit

Permalink
add freetype
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Apr 12, 2024
1 parent cf1ff24 commit 0503e8b
Showing 1 changed file with 27 additions and 24 deletions.
51 changes: 27 additions & 24 deletions linux/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 ]
Expand Down

0 comments on commit 0503e8b

Please sign in to comment.