2022-03-30 03:04:49 +00:00
|
|
|
#!/bin/bash -eux
|
|
|
|
|
|
|
|
source common.sh
|
|
|
|
|
2022-04-01 02:33:27 +00:00
|
|
|
if [ ! -d sources/freetype ]; then
|
2022-03-30 03:04:49 +00:00
|
|
|
pushd sources
|
|
|
|
git clone https://gitlab.freedesktop.org/freetype/freetype.git freetype
|
|
|
|
popd
|
|
|
|
fi
|
|
|
|
|
2022-04-10 04:23:22 +00:00
|
|
|
pushd "$BUILD_DIR"
|
2022-03-30 03:04:49 +00:00
|
|
|
rm -rf freetype
|
|
|
|
mkdir freetype
|
|
|
|
|
|
|
|
pushd freetype
|
|
|
|
|
|
|
|
emcmake cmake \
|
|
|
|
-DCMAKE_INSTALL_PREFIX="$INSTALL_DIR" \
|
|
|
|
-DZLIB_LIBRARY="$INSTALL_DIR/lib/libz.a" \
|
|
|
|
-DZLIB_INCLUDE_DIR="$INSTALL_DIR/include" \
|
|
|
|
-DPNG_LIBRARY="$INSTALL_DIR/lib/libpng.a" \
|
|
|
|
-DPNG_PNG_INCLUDE_DIR="$INSTALL_DIR/include" \
|
|
|
|
"$SRC_DIR/freetype"
|
|
|
|
emmake make
|
|
|
|
emmake make install
|
|
|
|
|
|
|
|
echo "freetype OK"
|