Changeset 32228
- Timestamp:
- 2018-06-29T21:59:19+12:00 (6 years ago)
- Location:
- gs2-extensions/xpdf-tools/trunk/src
- Files:
-
- 13 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/xpdf-tools/trunk/src/packages/CASCADE-MAKE.sh
r32227 r32228 3 3 source ../cascade-make/lib/cascade-lib.bash GEXT_XPDFTOOLS .. $* 4 4 5 #PACKAGES="CMAKE" 6 PACKAGES="CMAKE XPDFTOOLS" 5 PACKAGES="CMAKE LIBZ LIBPNG FREETYPE XPDFTOOLS" 7 6 8 7 for d in $PACKAGES ; do -
gs2-extensions/xpdf-tools/trunk/src/packages/CASCADE-MAKE/CMAKE.sh
r32227 r32228 32 32 33 33 # Only compile if necessary - we don't edit these source files. 34 if type -p cmake; then 35 echo "found cmake in PATH" 36 _CMAKE=cmake 37 elif [[ -x "$GEXTXPDFTOOLS_INSTALLED/linux/bin/cmake" ]]; then 38 ##if [[ -x "$GEXTXPDFTOOLS_INSTALLED/linux/bin/cmake" ]]; then 34 #if type -p cmake; then 35 # echo "found cmake in PATH" 36 # _CMAKE=cmake 37 #elif [[ -x "$GEXTXPDFTOOLS_INSTALLED/linux/bin/cmake" ]]; then 38 # NO. Rather, only compile up OUR cmake if we haven't already got OUR cmake 39 # But don't use any system cmake: xpdf-tools is dependent on cmake version (>= 2.8.8) 40 if [[ -x "$GEXTXPDFTOOLS_INSTALLED/linux/bin/cmake" ]]; then 39 41 echo "found cmake in $GEXTXPDFTOOLS_INSTALLED/linux/bin" 40 42 _CMAKE="$GEXTXPDFTOOLS_INSTALLED/linux/bin/cmake" -
gs2-extensions/xpdf-tools/trunk/src/packages/CASCADE-MAKE/XPDFTOOLS.sh
r32227 r32228 2 2 3 3 # only going to make xpdf-tools, not xpdf-reader. So not making all of xpdf 4 package= xpdf4 package=gs-xpdf 5 5 version=-4.00 6 6 … … 9 9 source ../cascade-make/lib/cascade-lib.bash GEXT_XPDFTOOLS ../.. $* 10 10 11 # GEXT XDFTOOLS INSTALLED location is this GEXT's GSDLOS subdir 11 12 prefix=$GEXTXPDFTOOLS_INSTALLED 12 13 13 #export CFLAGS="$CFLAGS -I$GEXTAUDIODB_INSTALLED/include" 14 #export CPPFLAGS="$CPPFLAGS -I$GEXTAUDIODB_INSTALLED/include" 15 #export CXXFLAGS="$CXXFLAGS -I$GEXTAUDIODB_INSTALLED/include" 16 #export LDFLAGS="$LDFLAGS -L$GEXTAUDIODB_INSTALLED/lib" 14 # Use C/CPP/CXX FLAGS and LDFLAGS for setting up 15 # libpng and libz for compiling xpdftools 16 export CFLAGS="$CFLAGS -I$GEXTXPDFTOOLS_INSTALLED/include -I$GEXTXPDFTOOLS_INSTALLED/include/libpng15" 17 export CPPFLAGS="$CPPFLAGS -I$GEXTXPDFTOOLS_INSTALLED/include -I$GEXTXPDFTOOLS_INSTALLED/include/libpng15" 18 export CXXFLAGS="$CXXFLAGS -I$GEXTXPDFTOOLS_INSTALLED/include -I$GEXTXPDFTOOLS_INSTALLED/include/libpng15" 19 export LDFLAGS="$LDFLAGS -L$GEXTXPDFTOOLS_INSTALLED/lib" 17 20 18 21 #echo GSDLOS = $GSDLOS … … 32 35 ##exit 0 33 36 34 ##if type -p pdftohtml; then 35 ## echo "found xpdf-tools in PATH" 36 ## _XPDFTOOLS=pdftohtml 37 ##elif [[ -x "$GEXTXPDFTOOLS_INSTALLED/linux/bin/pdftohtml" ]]; then 38 if [[ -x "$GEXTXPDFTOOLS_INSTALLED/bin/pdftohtml" ]]; then 39 echo "found pdftohtml in $GEXTXPDFTOOLS_INSTALLED/bin" 40 _XPDFTOOLS="$GEXTXPDFTOOLS_INSTALLED/bin" 41 fi 42 43 # IGNORE: See xpdf-tools src' INSTALL instructions: need to create a build dir 37 # IGNORE: See xpdf-tools src' INSTALL instructions: need to create a 'build' dir 44 38 # cd there and then run cmake from there, providing the xpdf-tools src dir 45 # Actually, doing the above breaks the way cascade-lib.bash does it. It wants 46 # a 'release' directory, so do it the cascade-make way. 39 # ACTUALLY: doing the above breaks the way cascade-lib.bash does it. It wants 40 # a 'release' directory, so do it the cascade-make way as that works. 41 # TO AVOID building xpdf(reader), turn off finding Qt libs with the cmake flags below 47 42 if [ $force_config = "1" ] ; then 48 43 echo "[pushd $package$version]" … … 59 54 cmake -DCMAKE_BUILD_TYPE=Release \ 60 55 -DCMAKE_INSTALL_PREFIX=$prefix \ 56 -DZLIB_LIBRARY=$prefix/lib/libz.a \ 57 -DPNG_LIBRARY=$prefix/lib/libpng15.a \ 58 -DFREETYPE_LIBRARY=$prefix/lib/libfreetype.a \ 61 59 -DCMAKE_DISABLE_FIND_PACKAGE_Qt4=1 \ 62 60 -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets=1 \ … … 64 62 -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ 65 63 -DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS" \ 64 -DPNG_LINK_FLAGS="-lpng15" \ 66 65 $GEXT_XPDFTOOLS/packages/$package$version 67 66 fi ; \ … … 81 80 fi 82 81 fi 82 83 ## The -DFREETYPE_DIR to be used in place of -DFREETYPE_LIBRARY above 84 ## this will help it find the "libfreetype.so" (no versioning at end) in our gs ext 85 ## But -DZLIB_DIR and -DPNG_DIR are ignored and unrecognised, whereas 86 ## -DZLIB_LIBRARY and -DPNG_LIBRARY are recognised & supposedly used when compiling 87 ## but weren't really used as seen when running ldd on the xpdf-tools binaries: 88 # -DZLIB_DIR=$prefix \ 89 # -DPNG_DIR=$prefix \ 90 # -DFREETYPE_DIR=$prefix \ 91 92 ## When specified this way, all 3 lines are recognised (freetype, zlib, png) 93 ## but weren't really used as seen when running ldd on the xpdf-tools binaries: 94 # -DZLIB_LIBRARY=$prefix/lib/libz.so.1.2.7 \ 95 # -DPNG_LIBRARY=$prefix/lib/libpng15.so.15.30.0 \ 96 # -DFREETYPE_LIBRARY=$prefix/lib/libfreetype.so.6.3.20 \ 97 98 99 # If compilation was successful, then we don't need cmake binaries anymore when 100 # packaging up xpdf-tools -
gs2-extensions/xpdf-tools/trunk/src/setup.bash
r32227 r32228 1 # GEXT PARALLELBUILDING1 # GEXT: XPDFTOOLS 2 2 3 3 extdesc="the Xpdf-Tools Extension" … … 58 58 export GSDLEXTS=$GSDLEXTS:$extdir 59 59 fi 60 61 echo "+Your environment is now setup for $extdesc in Greenstone" 60 if [ "x$1" != "xsilent" ] ; then 61 echo "+Your environment is now setup for $extdesc in Greenstone" 62 fi 62 63 else 63 echo "+Your environment is already setup for $extdesc in Greenstone" 64 if [ "x$1" != "xsilent" ] ; then 65 echo "+Your environment is already setup for $extdesc in Greenstone" 66 fi 64 67 fi 65 68 66 69 # From http://trac.greenstone.org/browser/other-projects/trunk/realistic-books/setup.bash 70 if [ -e devel.sh ] ; then 71 source devel.sh $* 72 fi
Note:
See TracChangeset
for help on using the changeset viewer.