source: trunk/gsdl/packages/configure@ 1998

Last change on this file since 1998 was 1998, checked in by dg5, 23 years ago

Hopefully, now configure script is fixed so that wv builds properly

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1#! /bin/sh
2
3PACKAGES=`pwd`
4cd ..
5GSDLHOME=`pwd`
6cd $PACKAGES
7GSDLOS=`uname | tr A-Z a-z`
8
9# parse any arguments given from toplevel configure
10while test $# -ne 0; do
11 case "$1" in
12 --cache-file=*)
13 cache_filename=`echo $1 | sed s/--cache-file=//`
14 # turn relative path into an absolute path
15 cache_dir=`echo $cache_filename | sed 's@/[^/]*$@@'`
16 cache_dir=`cd $cache_dir 2>/dev/null && pwd`
17
18 cache_basefile=`echo $cache_filename | sed 's@.*/@@'`
19 cache_file="$cache_dir/$cache_basefile"
20 if test ! -f "$cache_file"; then
21 CACHE_FILE=""
22 else
23 CACHE_FILE="--cache-file=$cache_file"
24 fi
25 ;;
26 --enable-z3950)
27 USE_Z3950=true
28 ;;
29 *)
30 # ignore all other options for now
31 ;;
32 esac
33 shift
34done
35
36
37
38# configure the wvWare Word document converter
39echo ""
40echo "Configuring wvWare"
41echo ""
42
43cd "$PACKAGES/wv"
44tar -xzf wv-0.6.3-gs.tar.gz
45cd wv-gs
46./configure $CACHE_FILE --prefix=$PACKAGES/wv
47
48# configure the pdftohtml converter
49echo ""
50echo "Configuring pdftohtml"
51echo ""
52
53cd "$PACKAGES/pdftohtml"
54if test ! -d "./bin"; then
55 mkdir "./bin"
56fi
57tar -xzf pdftohtml_0_22_gs.tar.gz
58cd pdftohtml_0_22
59
60# YAZ Z39.50 toolkit
61if test x"$USE_Z3950" = "xtrue";
62then
63 echo ""
64 echo "Configuring YAZ"
65 echo ""
66 cd "$PACKAGES/yaz"
67 ./configure $CACHE_FILE
68else
69 echo ""
70 echo "Z39.50 support disabled - YAZ library not required"
71 echo ""
72fi
73
74# configure wget
75echo ""
76echo "Configuring wget"
77echo ""
78cd $PACKAGES/wget
79tar -xzf wget.tar.gz
80cd $PACKAGES/wget/wget-1.5.3
81./configure $CACHE_FILE --prefix=$PACKAGES/wget --bindir=$GSDLHOME/bin/$GSDLOS
Note: See TracBrowser for help on using the repository browser.