Ignore:
Timestamp:
2018-07-10T21:02:50+12:00 (6 years ago)
Author:
ak19
Message:
  1. Adding in the files required for xpdf-tools' licence in new folder redistribute. This is copied into the distribution tarball. 2. toplevel CASCADE-MAKE.sh' makedist commands creates includes customised content into the distribution tarball: just the pdf bins and the xpdf-tools licensing files (including, as specified in the licence, the xpdf man pages generated during building). 3. Found a newer version of libjpeg src: version 9c from 2018, versus the older version 6b from 2008. This builds without requiring the old patch for 64 bit machines. However, LIBJPEG.sh needed further modification: instead of the install-lib make target, the install-lib equivalent now has a longer target name. Version 9c is able to produce both libjpeg.a and libjpeg.so/.dylib. We specifically want only the former to be generated, so we now have to tell configure to disable-shared (which was the only mode for the older libjpeg version 6b). We're now also copying certain header files across to the installed area's include subfolder, as speficied in the install.txt for the new and older versions of libjpeg.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/xpdf-tools/trunk/src/packages/CASCADE-MAKE/LIBJPEG.sh

    r32251 r32253  
    22
    33package=jpeg
    4 version=-6b
     4#version=-6b
     5# version 9c is from 2018, see www.ijg.org. Version 6b is from 2008
     6version=-9c
     7
     8# renamed the downloaded jpegsrc.v9c.tar.gz to jpeg$version.tar.gz
     9# similarly for the earlier 6b version.
    510
    611progname=$0
     
    2833#        Error encountered running *make * stage of ./CASCADE-MAKE/LIBJPEG.sh
    2934# The solution is taken from https://sourceforge.net/p/libjpeg/bugs/12/
    30 if [[ -d "$package$version" && -f "gs-libjpeg-config.sub" ]]; then
    31     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 fi
     35##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
    3843
    3944# This also seems to make only the static libjpeg.a
     
    4247# http://www.linuxfromscratch.org/blfs/view/6.3/general/libjpeg.html
    4348# only the libjpeg.a is produced with this command
    44 opt_run_configure $force_config $auto_config $package $version "$prefix"
     49opt_run_configure $force_config $auto_config $package $version "$prefix" --disable-shared
    4550#opt_run_configure $force_config $auto_config $package $version "$prefix" \
    4651#    --enable-static --enable-shared
     
    5156
    5257opt_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
     61opt_run_make $install   $package $version "install-libLTLIBRARIES"
    5462opt_run_make $clean     $package $version "clean"
    5563opt_run_make $distclean $package $version "distclean"
     
    5765opt_run_tarclean $tarclean $package $version
    5866
     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
     69cp $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.