pdf2htmlEX/buildScripts/buildFontforge

60 lines
1.1 KiB
Plaintext
Raw Normal View History

#!/bin/bash
# This bash script build FontForge
source buildScripts/versionEnvs
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
# configure steps
#
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 ""
echo "-------------------------------"
2019-11-26 11:19:49 +00:00
pkg-config --cflags python
2019-11-26 11:33:53 +00:00
pkg-config --cflags python-2.7
2019-11-26 12:36:10 +00:00
echo $PYTHON_CFLAGS
echo $PYTHON_LIBS
echo "-------------------------------"
echo ""
2019-11-26 11:19:49 +00:00
2019-11-21 16:03:35 +00:00
cd fontforge
./bootstrap
2019-11-26 10:18:08 +00:00
./configure --disable-silent-rules
2019-11-23 06:23:30 +00:00
2019-11-26 11:45:58 +00:00
echo ""
echo "-------------------------------"
cat config.log
echo "-------------------------------"
echo ""
2019-11-26 12:13:27 +00:00
echo ""
echo "-------------------------------"
cat fontforge/Makefile
echo "-------------------------------"
echo ""
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 09:45:56 +00:00
tree /usr/include/python2.7
2019-11-26 10:18:08 +00:00
#cd fontforge
#make -n
#cd ..
2019-11-26 10:13:40 +00:00
2019-11-26 09:54:05 +00:00
make
#make $MAKE_PARALLEL