Ignore:
Timestamp:
2011-03-22T21:33:42+13:00 (13 years ago)
Author:
ak19
Message:

Added enable/disable-wvware flag to affected configure and Makefiles files in build-src, build-src/packages and top-level GS2, so we can turn off wvware compiling (such as for 64 bit Mac OS Snow Leopard Update 3 machines - MacOS 10.6.3 and over). By default wvware compilation is enabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/build-src/packages/configure

    r23588 r23800  
    2222ENVIRONMENT=""
    2323
     24# WVWARE compilation enabled by default, can switch it off with --disable-wvware
     25USE_WVWARE=true
    2426# GDBM compilation enabled by default, can switch it off with --disable-gdbm
    2527USE_GDBM=true
     
    5254        CACHE_FILE="--cache-file=$cache_file"
    5355        fi
     56        ;;
     57    --disable-wvware)
     58        USE_WVWARE=false
    5459        ;;
    5560    --disable-gdbm)
     
    135140echo ""
    136141
    137 cd "$PACKAGES/wv"
    138 gzip -dc wv-1.2.4-gs.tar.gz | tar -xf -
    139 # datadir is for default location of wvHtml.xml config file
    140 cd wv-gs && \
    141 ./configure $CACHE_FILE --prefix=$PACKAGES/wv --bindir="$bindir" --libdir="$libdir" --datadir="$prefix/etc/packages" $HOSTTARGETFLAGS
     142# datadir flag is for default location of wvHtml.xml config file
     143if test x$USE_WVWARE = xtrue ;
     144then
     145  cd "$PACKAGES/wv"
     146  gzip -dc wv-1.2.4-gs.tar.gz | tar -xf - 
     147  cd wv-gs && \
     148  ./configure $CACHE_FILE --prefix=$PACKAGES/wv --bindir="$bindir" --libdir="$libdir" --datadir="$prefix/etc/packages" $HOSTTARGETFLAGS
     149else
     150  echo "wvWare support disabled."
     151  echo "  add '--enable-wvware' to the configure command to include wvWare support."
     152  echo ""
     153fi
    142154
    143155# configure the pdftohtml converter
Note: See TracChangeset for help on using the changeset viewer.