1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00
pdf2htmlEX/buildScripts/buildFontforge

47 lines
1.1 KiB
Plaintext
Raw Normal View History

#!/bin/bash
# This bash script build FontForge
2019-11-28 12:04:22 +00:00
source buildScripts/reSourceVersionEnvs
2019-11-26 12:55:53 +00:00
echo ""
echo "-------------------------------------------------------------------"
echo "BUILDING FontForge"
echo "-------------------------------------------------------------------"
echo ""
2019-11-26 12:55:53 +00:00
# This is a work-around to fix TravisCI's declaration of PYTHON_CFLAGS
# which is then honoured exactly as is by the fontforge bootstrap and
2019-11-26 13:10:52 +00:00
# configure steps.
#
# see: https://github.com/travis-ci/travis-ci/issues/5301 (unfixed)
2019-11-26 12:55:53 +00:00
#
if [ -n "$PYTHON_CFLAGS" ] ; then
export PYTHON_CFLAGS="$(pkg-config --cflags python) $PYTHON_CFLAGS"
fi
2019-11-26 10:49:39 +00:00
2019-11-26 12:36:10 +00:00
echo ""
2019-11-26 13:18:21 +00:00
echo "PYTHON_CFLAGS:"
2019-11-26 12:36:10 +00:00
echo "-------------------------------"
echo $PYTHON_CFLAGS
echo "-------------------------------"
echo ""
2019-11-26 11:19:49 +00:00
2019-11-26 13:10:52 +00:00
# Can use "configure --disable-silent-rules" to debug configuration/make
# problems
#
2019-11-21 16:03:35 +00:00
cd fontforge
./bootstrap
2019-11-26 13:10:52 +00:00
./configure
2019-11-26 12:13:27 +00:00
2019-11-23 06:23:30 +00:00
# Apply any patches required for fontforge raw sources before we make
#
for APATCHFILE in $(ls ../patches/fontforge-$FONTFORGE_VERSION-*)
do
echo "patching fontforge using [$APATCHFILE]"
2019-11-23 06:23:30 +00:00
patch -p 1 < $APATCHFILE
done
2019-11-26 13:10:52 +00:00
make $MAKE_PARALLEL
2019-11-26 09:54:05 +00:00