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

64 lines
1.6 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
#
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 "-------------------------------"
2019-12-13 13:44:50 +00:00
export PYTHON_CFLAGS="$(python3-config --cflags) $PYTHON_CFLAGS"
2019-11-26 12:36:10 +00:00
echo $PYTHON_CFLAGS
echo "-------------------------------"
echo ""
echo ""
echo "PYTHON_LIBS:"
echo "-------------------------------"
2019-12-13 13:44:50 +00:00
export PYTHON_LIBS="$(python3-config --ldflags) $PYTHON_LIBS"
echo $PYTHON_LIBS
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
2019-11-21 16:03:35 +00:00
./bootstrap
./configure \
--prefix=$PDF2HTMLEX_PREFIX \
--enable-python-scripting=3 \
--disable-dependency-tracking \
--disable-silent-rules \
--disable-python-scripting \
--disable-python-extension \
--disable-shared \
--enable-static \
--with-pic \
--without-x
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]"
# patch -p 1 < $APATCHFILE
#done
2019-11-23 06:23:30 +00:00
2019-11-26 13:10:52 +00:00
make $MAKE_PARALLEL
2019-11-26 09:54:05 +00:00