2019-11-21 18:43:26 +00:00
|
|
|
#!/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
|
|
|
|
2019-11-29 09:11:32 +00:00
|
|
|
echo ""
|
|
|
|
echo "-------------------------------------------------------------------"
|
2020-05-30 06:20:37 +00:00
|
|
|
echo "BUILDING FontForge (using CMake)"
|
2019-11-29 09:11:32 +00:00
|
|
|
echo "-------------------------------------------------------------------"
|
|
|
|
echo ""
|
|
|
|
|
2020-05-30 06:20:37 +00:00
|
|
|
cd fontforge
|
2019-11-26 10:49:39 +00:00
|
|
|
|
2020-05-30 06:20:37 +00:00
|
|
|
mkdir build
|
2019-11-26 11:19:49 +00:00
|
|
|
|
2020-05-30 06:20:37 +00:00
|
|
|
cd build
|
2019-12-10 05:37:56 +00:00
|
|
|
|
2020-05-30 06:20:37 +00:00
|
|
|
cmake \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DBUILD_SHARED_LIBS:BOOL=OFF \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=$PDF2HTMLEX_PREFIX \
|
|
|
|
-DENABLE_GUI:BOOL=OFF \
|
|
|
|
-DENABLE_X11:BOOL=OFF \
|
|
|
|
-DENABLE_PYTHON_SCRIPTING:BOOL=OFF \
|
|
|
|
-DENABLE_PYTHON_EXTENSION:AUTO=OFF \
|
|
|
|
..
|
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
|
|
|
|
#
|
2019-12-10 05:37:56 +00:00
|
|
|
#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
|
|
|
|