mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
41 lines
936 B
Bash
Executable File
41 lines
936 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This bash script build FontForge
|
|
|
|
source buildScripts/reSourceVersionEnvs
|
|
|
|
# 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
|
|
# configure steps.
|
|
#
|
|
# see: https://github.com/travis-ci/travis-ci/issues/5301 (unfixed)
|
|
#
|
|
if [ -n "$PYTHON_CFLAGS" ] ; then
|
|
export PYTHON_CFLAGS="$(pkg-config --cflags python) $PYTHON_CFLAGS"
|
|
fi
|
|
|
|
echo ""
|
|
echo "PYTHON_CFLAGS:"
|
|
echo "-------------------------------"
|
|
echo $PYTHON_CFLAGS
|
|
echo "-------------------------------"
|
|
echo ""
|
|
|
|
# Can use "configure --disable-silent-rules" to debug configuration/make
|
|
# problems
|
|
#
|
|
cd fontforge
|
|
./bootstrap
|
|
./configure
|
|
|
|
# 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]"
|
|
patch -p 1 < $APATCHFILE
|
|
done
|
|
|
|
make $MAKE_PARALLEL
|
|
|