mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
initial changes to suit linuxBrew
This commit is contained in:
parent
3fcd0a6674
commit
9a13676801
@ -10,8 +10,8 @@ export MAKE_PARALLEL="-j $(nproc)"
|
||||
|
||||
# choose one of the following...
|
||||
#
|
||||
export PDF2HTMLEX_BRANCH=update-poppler
|
||||
# export PDF2HTMLEX_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
||||
# export PDF2HTMLEX_BRANCH="<<YourTagHereWithNoSpaces>>"
|
||||
export PDF2HTMLEX_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
||||
|
||||
# The following environment variable determines where the poppler,
|
||||
# poppler-data, fontforge and pdf2htmlEX packages are installed.
|
||||
|
@ -10,14 +10,22 @@ export MAKE_PARALLEL="-j $(nproc)"
|
||||
|
||||
# choose one of the following...
|
||||
#
|
||||
export PDF2HTMLEX_BRANCH=update-poppler
|
||||
# export PDF2HTMLEX_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
||||
# export PDF2HTMLEX_BRANCH="<<YourTagHereWithNoSpaces>>"
|
||||
export PDF2HTMLEX_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
||||
|
||||
export PDF2HTMLEX_PREFIX=toBeDetermined
|
||||
# The following environment variable determines where the poppler,
|
||||
# poppler-data, fontforge and pdf2htmlEX packages are installed.
|
||||
# CHANGE IT TO SUIT YOUR NEEDS:
|
||||
#
|
||||
export PDF2HTMLEX_PREFIX=/home/linuxbrew/.linuxbrew
|
||||
|
||||
################
|
||||
# do the build
|
||||
|
||||
# The following is used by the pdf2htmlEX CMakeLists.txt file
|
||||
#
|
||||
export USING_BREW=1
|
||||
|
||||
./buildScripts/versionEnvs || { echo 'versionEnvs FAILED' ; exit 1 ; }
|
||||
|
||||
./buildScripts/reportEnvs || { echo 'reportEnvs FAILED' ; exit 1 ; }
|
||||
@ -30,14 +38,10 @@ export PDF2HTMLEX_PREFIX=toBeDetermined
|
||||
|
||||
./buildScripts/buildPoppler || { echo 'buildPoppler FAILED' ; exit 1 ; }
|
||||
|
||||
./buildScripts/installPoppler || { echo 'installPoppler FAILED' ; exit 1 ; }
|
||||
|
||||
./buildScripts/getFontforge || { echo 'getFontforge FAILED' ; exit 1 ; }
|
||||
|
||||
./buildScripts/buildFontforge || { echo 'buildFontforge FAILED' ; exit 1 ; }
|
||||
|
||||
./buildScripts/installFontforge || { echo 'installFontforge FAILED' ; exit 1 ; }
|
||||
|
||||
./buildScripts/buildPdf2htmlEX || { echo 'buildPdf2htmlEX FAILED' ; exit 1 ; }
|
||||
|
||||
./buildScripts/installPdf2htmlEX || { echo 'installPdf2htmlEX FAILED' ; exit 1 ; }
|
||||
|
@ -9,16 +9,16 @@ echo "-------------------------------------------------------------------"
|
||||
echo ""
|
||||
|
||||
brew update
|
||||
brew install \
|
||||
git \
|
||||
pkg-config \
|
||||
ruby \
|
||||
autoconf \
|
||||
libtool \
|
||||
cmake \
|
||||
make \
|
||||
gcc \
|
||||
gettext \
|
||||
openjdk \
|
||||
jq \
|
||||
brew install \
|
||||
git \
|
||||
pkg-config \
|
||||
ruby \
|
||||
autoconf \
|
||||
libtool \
|
||||
cmake \
|
||||
make \
|
||||
gcc \
|
||||
gettext \
|
||||
openjdk \
|
||||
jq \
|
||||
tree
|
||||
|
@ -10,12 +10,13 @@ echo "-------------------------------------------------------------------"
|
||||
echo ""
|
||||
|
||||
brew update
|
||||
brew install \
|
||||
cairo \
|
||||
libspiro \
|
||||
libpng \
|
||||
jpeg \
|
||||
pango \
|
||||
little-cms2 \
|
||||
libxml2 \
|
||||
libuninameslist \
|
||||
brew install \
|
||||
cairo \
|
||||
libpng \
|
||||
jpeg \
|
||||
libxml2 \
|
||||
|
||||
# libspiro \
|
||||
# pango \
|
||||
# little-cms2 \
|
||||
# libuninameslist \
|
||||
|
@ -39,6 +39,7 @@ set(POPPLER_LIBRARIES ${POPPLER_LIBRARIES}
|
||||
${CMAKE_SOURCE_DIR}/../poppler/build/libpoppler.a
|
||||
)
|
||||
|
||||
|
||||
if(ENABLE_SVG)
|
||||
pkg_check_modules(CAIRO REQUIRED cairo>=1.10.0)
|
||||
message("-- Trying to locate cairo-svg...")
|
||||
@ -46,8 +47,10 @@ if(ENABLE_SVG)
|
||||
if(CAIRO_SVG_INCLUDE_PATH)
|
||||
message("-- found cairo-svg...")
|
||||
include_directories(${CAIRO_INCLUDE_DIRS})
|
||||
link_directories(${CAIRO_LIBRARY_DIRS})
|
||||
set(PDF2HTMLEX_LIBS ${PDF2HTMLEX_LIBS} ${CAIRO_LIBRARIES})
|
||||
if(NOT DEFINED ENV{USING_BREW})
|
||||
link_directories(${CAIRO_LIBRARY_DIRS})
|
||||
set(PDF2HTMLEX_LIBS ${PDF2HTMLEX_LIBS} ${CAIRO_LIBRARIES})
|
||||
endif()
|
||||
set(ENABLE_SVG 1)
|
||||
else()
|
||||
message(FATAL_ERROR "Error: no SVG support found in Cairo")
|
||||
@ -56,7 +59,7 @@ if(ENABLE_SVG)
|
||||
find_package(Freetype REQUIRED)
|
||||
include_directories(${FREETYPE_INCLUDE_DIRS})
|
||||
link_directories(${FREETYPE_LIBRARY_DIRS})
|
||||
set(PDF2HTMLEX_LIBS ${PDF2HTMLEX_LIBS} ${FREETYPE_LIBRARIES})
|
||||
# set(PDF2HTMLEX_LIBS ${PDF2HTMLEX_LIBS} ${FREETYPE_LIBRARIES})
|
||||
endif()
|
||||
|
||||
# SINCE we have a very intimate relationship with a particular version of
|
||||
@ -79,16 +82,17 @@ set(FONTFORGE_LIBRARIES ${FONTFORGE_LIBRARIES}
|
||||
set(PDF2HTMLEX_LIBS ${PDF2HTMLEX_LIBS}
|
||||
${POPPLER_LIBRARIES}
|
||||
${FONTFORGE_LIBRARIES}
|
||||
-lfreetype
|
||||
-lfontconfig
|
||||
${CAIRO_LIBRARIES}
|
||||
-ljpeg
|
||||
-lpng
|
||||
-lz
|
||||
-pthread
|
||||
-lm
|
||||
-lfontconfig
|
||||
-lfreetype
|
||||
-lxml2
|
||||
-lglib-2.0
|
||||
-lgio-2.0
|
||||
-pthread
|
||||
-lz
|
||||
-lm
|
||||
)
|
||||
|
||||
# -llcms2
|
||||
|
Loading…
Reference in New Issue
Block a user