From 87ecadd58969d93dc1ed205db067d2069d4ee248 Mon Sep 17 00:00:00 2001 From: Stephen Gaito Date: Thu, 21 Nov 2019 13:31:28 +0000 Subject: [PATCH] added buildScripts --- .gitignore | 1 + buildScripts/buildFontforge | 4 +++ .../{dobuildPdf2htmlEX => buildPdf2htmlEX} | 0 ...ldPdf2htmlEXClang => buildPdf2htmlEXClang} | 0 buildScripts/buildPoppler | 10 ++++++ .../{docleanPdf2htmlEX => cleanPdf2htmlEX} | 0 buildScripts/getFontforge | 8 +++++ buildScripts/getPoppler | 15 +++++++++ buildScripts/installFontforge | 26 +++++++++++++++ ...{doinstallPdf2htmlEX => installPdf2htmlEX} | 0 buildScripts/installPoppler | 32 +++++++++++++++++++ buildScripts/versionEnvs | 9 ++++++ 12 files changed, 105 insertions(+) create mode 100755 buildScripts/buildFontforge rename buildScripts/{dobuildPdf2htmlEX => buildPdf2htmlEX} (100%) rename buildScripts/{dobuildPdf2htmlEXClang => buildPdf2htmlEXClang} (100%) create mode 100755 buildScripts/buildPoppler rename buildScripts/{docleanPdf2htmlEX => cleanPdf2htmlEX} (100%) create mode 100755 buildScripts/getFontforge create mode 100755 buildScripts/getPoppler create mode 100755 buildScripts/installFontforge rename buildScripts/{doinstallPdf2htmlEX => installPdf2htmlEX} (100%) create mode 100755 buildScripts/installPoppler create mode 100644 buildScripts/versionEnvs diff --git a/.gitignore b/.gitignore index c49977f..fb14b58 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +poppler* build compile_commands.json CMakeCache.txt diff --git a/buildScripts/buildFontforge b/buildScripts/buildFontforge new file mode 100755 index 0000000..2177738 --- /dev/null +++ b/buildScripts/buildFontforge @@ -0,0 +1,4 @@ +cd fontforge; +./bootstrap; +./configure; +make; diff --git a/buildScripts/dobuildPdf2htmlEX b/buildScripts/buildPdf2htmlEX similarity index 100% rename from buildScripts/dobuildPdf2htmlEX rename to buildScripts/buildPdf2htmlEX diff --git a/buildScripts/dobuildPdf2htmlEXClang b/buildScripts/buildPdf2htmlEXClang similarity index 100% rename from buildScripts/dobuildPdf2htmlEXClang rename to buildScripts/buildPdf2htmlEXClang diff --git a/buildScripts/buildPoppler b/buildScripts/buildPoppler new file mode 100755 index 0000000..2cda28c --- /dev/null +++ b/buildScripts/buildPoppler @@ -0,0 +1,10 @@ +#!/bin/bash + +# This bash script builds the latest poppler + +cd poppler +mkdir build +cd build +cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \ + -DENABLE_LIBOPENJPEG=none .. +make diff --git a/buildScripts/docleanPdf2htmlEX b/buildScripts/cleanPdf2htmlEX similarity index 100% rename from buildScripts/docleanPdf2htmlEX rename to buildScripts/cleanPdf2htmlEX diff --git a/buildScripts/getFontforge b/buildScripts/getFontforge new file mode 100755 index 0000000..d1094f7 --- /dev/null +++ b/buildScripts/getFontforge @@ -0,0 +1,8 @@ +#!/bin/bash + +# This bash script gets and unpacks the latest fontforge AppImage + +sudo add-apt-repository ppa:fontforge/fontforge +sudo apt-get update +sudo apt-get install libfontforge-dev + diff --git a/buildScripts/getPoppler b/buildScripts/getPoppler new file mode 100755 index 0000000..1fce35d --- /dev/null +++ b/buildScripts/getPoppler @@ -0,0 +1,15 @@ +#!/bin/bash + +# This bash script gets and unpacks the latest Poppler source code + +source buildScripts/versionEnvs + +echo "Getting poppler version: $POPPLER_VERSION" + +rm -rf $POPPLER_VERSION.tar.xz + +wget https://poppler.freedesktop.org/$POPPLER_VERSION.tar.xz + +tar xvf $POPPLER_VERSION.tar.xz + +mv $POPPLER_VERSION poppler diff --git a/buildScripts/installFontforge b/buildScripts/installFontforge new file mode 100755 index 0000000..7c57186 --- /dev/null +++ b/buildScripts/installFontforge @@ -0,0 +1,26 @@ +#!/bin/bash + +echo "This installation assumes you have 'sudo' privileges" +echo "Type ctrl-c now if DO NOT want to continue" +read -p "Type anything else to continue: " + +cd poppler +sudo make install +sudo ldconfig; + +#cd +# +#sudo mkdir -p /usr/include/poppler +#sudo cp poppler/poppler/*.h /usr/include/poppler +# +#sudo mkdir -p /usr/include/poppler/goo +#sudo cp poppler/goo/*.h /usr/include/poppler/goo +# +#sudo mkdir -p /usr/include/poppler/fofi +#sudo cp poppler/fofi/*.h /usr/include/poppler/fofi +# +#sudo mkdir -p /usr/include/poppler/splash +#sudo cp poppler/splash/*.h /usr/include/poppler/splash +# +#sudo cp poppler/build/poppler/poppler-config.h \ +# /usr/include/poppler diff --git a/buildScripts/doinstallPdf2htmlEX b/buildScripts/installPdf2htmlEX similarity index 100% rename from buildScripts/doinstallPdf2htmlEX rename to buildScripts/installPdf2htmlEX diff --git a/buildScripts/installPoppler b/buildScripts/installPoppler new file mode 100755 index 0000000..605e0b3 --- /dev/null +++ b/buildScripts/installPoppler @@ -0,0 +1,32 @@ +#!/bin/bash + +# This bash script installs Poppler into the local system + +echo "WARNING: this will over-write any existing" +echo "Poppler version you have installed on your system." +echo "This may break other packages/applications." +echo "" +echo "This installation assumes you have 'sudo' privileges." +echo "" +echo "Type ctrl-c now if DO NOT want to continue" +read -p "Type anything else to continue: " + +cd poppler/build +sudo make install + +cd + +sudo mkdir -p /usr/include/poppler +sudo cp poppler/poppler/*.h /usr/include/poppler + +sudo mkdir -p /usr/include/poppler/goo +sudo cp poppler/goo/*.h /usr/include/poppler/goo + +sudo mkdir -p /usr/include/poppler/fofi +sudo cp poppler/fofi/*.h /usr/include/poppler/fofi + +sudo mkdir -p /usr/include/poppler/splash +sudo cp poppler/splash/*.h /usr/include/poppler/splash + +sudo cp poppler/build/poppler/poppler-config.h \ + /usr/include/poppler diff --git a/buildScripts/versionEnvs b/buildScripts/versionEnvs new file mode 100644 index 0000000..4a97bb0 --- /dev/null +++ b/buildScripts/versionEnvs @@ -0,0 +1,9 @@ +#!/bin/bash + +# This bash script exports environment variables for the latest software +# versions + +export POPPLER_VERSION=poppler-0.82.0 +export FONTFORGE_VERSION=20190801 + +export FONTFORGE_APPIMAGE=https://github.com/fontforge/fontforge/releases/download/20190801/FontForge-2019-08-01-ac635b8-x86_64.AppImage