- Timestamp:
- 2018-07-10T21:02:50+12:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/xpdf-tools/trunk/src/packages/CASCADE-MAKE/LIBJPEG.sh
r32251 r32253 2 2 3 3 package=jpeg 4 version=-6b 4 #version=-6b 5 # version 9c is from 2018, see www.ijg.org. Version 6b is from 2008 6 version=-9c 7 8 # renamed the downloaded jpegsrc.v9c.tar.gz to jpeg$version.tar.gz 9 # similarly for the earlier 6b version. 5 10 6 11 progname=$0 … … 28 33 # Error encountered running *make * stage of ./CASCADE-MAKE/LIBJPEG.sh 29 34 # The solution is taken from https://sourceforge.net/p/libjpeg/bugs/12/ 30 if [[ -d "$package$version" && -f "gs-libjpeg-config.sub" ]]; then31 echo "*******************************************************************"32 echo "Using our custom gs-libjpeg-config.sub instead of the one included in $package$version"33 echo "Copying across gs-libjpeg-config.sub as $package$version/config.sub"34 echo "*******************************************************************"35 echo `pwd`36 cp "gs-libjpeg-config.sub" "$package$version/config.sub"37 fi35 ##if [[ -d "$package$version" && -f "gs-libjpeg-config.sub" ]]; then 36 ## echo "*******************************************************************" 37 ## echo "Using our custom gs-libjpeg-config.sub instead of the one included in $package$version" 38 ## echo "Copying across gs-libjpeg-config.sub as $package$version/config.sub" 39 ## echo "*******************************************************************" 40 ## echo `pwd` 41 ## cp "gs-libjpeg-config.sub" "$package$version/config.sub" 42 ##fi 38 43 39 44 # This also seems to make only the static libjpeg.a … … 42 47 # http://www.linuxfromscratch.org/blfs/view/6.3/general/libjpeg.html 43 48 # only the libjpeg.a is produced with this command 44 opt_run_configure $force_config $auto_config $package $version "$prefix" 49 opt_run_configure $force_config $auto_config $package $version "$prefix" --disable-shared 45 50 #opt_run_configure $force_config $auto_config $package $version "$prefix" \ 46 51 # --enable-static --enable-shared … … 51 56 52 57 opt_run_make $compile $package $version 53 opt_run_make $install $package $version "install-lib" 58 #opt_run_make $install $package $version "install-lib" 59 # Contrary to the install.txt in version jpeg version 9c, install-lib is an unrecognised make command 60 # I found there was an install-libLTLIBRARIES target in the Makefile, however. And that seems to at least copy over libjpeg.a 61 opt_run_make $install $package $version "install-libLTLIBRARIES" 54 62 opt_run_make $clean $package $version "clean" 55 63 opt_run_make $distclean $package $version "distclean" … … 57 65 opt_run_tarclean $tarclean $package $version 58 66 67 # according to jpeg version 9c's install.txt, these 4 header files need to be copied into the include folder (besides installing libjpeg.a) 68 # if building something against the libjpeg library, as we do with xpdf-tools 69 cp $package$version/jpeglib.h $package$version/jerror.h $package$version/jconfig.h $package$version/jmorecfg.h $GEXTXPDFTOOLS_INSTALLED/include/. 70
Note:
See TracChangeset
for help on using the changeset viewer.