source: trunk/gsdl3/packages/configure@ 8191

Last change on this file since 8191 was 8191, checked in by kjdon, 20 years ago

added in vishnu package

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 4.5 KB
Line 
1#! /bin/sh
2
3PACKAGES=`pwd`
4cd ..
5GSDL3HOME=`pwd`
6cd $PACKAGES
7
8GSDLOS=`uname -s |tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
9# check for running bash under cygwin
10if test "`echo $GSDLOS | sed 's/cygwin//'`" != "$GSDLOS" ;
11then
12 GSDLOS=windows
13fi
14
15prefix=""
16bindir=""
17HOSTTARGETFLAGS=""
18
19# parse any arguments given from toplevel configure
20while test $# -ne 0; do
21 case "$1" in
22 --cache-file=*)
23 cache_filename=`echo $1 | sed s/--cache-file=//`
24 # turn relative path into an absolute path
25 cache_dir=`echo $cache_filename | sed 's@/[^/]*$@@'`
26 cache_dir=`cd $cache_dir 2>/dev/null && pwd`
27
28 cache_basefile=`echo $cache_filename | sed 's@.*/@@'`
29 cache_file="$cache_dir/$cache_basefile"
30 if test ! -f "$cache_file"; then
31 CACHE_FILE=""
32 else
33 CACHE_FILE="--cache-file=$cache_file"
34 fi
35 ;;
36 --prefix=*)
37 prefix=`echo $1 | sed s/--prefix=//`
38 ;;
39 --bindir=*)
40 # where to install binaries to
41 bindir=`echo $1 | sed s/--bindir=//`
42 # turn relative path into an absolute path
43 if test -d "$bindir" ; then
44 bindir=`cd "$bindir" ; pwd `
45 cd "$PACKAGES"
46 elif test -z `echo $bindir | sed '/^\// p;D'` ; then
47 rel_bindir="`echo $bindir | sed s@/.*@@`"
48 cd "$rel_bindir"
49 bindir="`pwd`/`echo $bindir | sed s@^[^/]*/@@`"
50 cd "$PACKAGES"
51 else
52 # bindir doesn't exist, and isn't relative
53 true
54 fi
55 ;;
56 --host=* | --target=*)
57 HOSTTARGETFLAGS="$HOSTTARGETFLAGS $1"
58 ;;
59 *)
60 # ignore all other options for now
61 ;;
62 esac
63 shift
64done
65
66# note! Our GSDL package currently always installs into it's source
67# directory, ignoring any --prefix given to configure.
68# When this is fixed, uncomment the relevant lines below...
69
70##if test -z "$prefix" ; then
71prefix="${GSDL3HOME}"
72##fi
73
74##if test -z "$bindir" ; then
75bindir="${prefix}/bin/$GSDLOS"
76##fi
77
78# This loads the top configure's cache file, with variables already set.
79if test -f "$cache_file" ; then
80 . $cache_file
81fi
82
83# we assume that gzip and tar are on the search path.
84# non-GNU versions of tar don't take the -z option.
85
86#configure mg
87echo ""
88echo "Configuring MG"
89echo ""
90
91# what does HOSTTARGETFLAGS do??
92cd "$PACKAGES/mg"
93./configure $CACHE_FILE --prefix="$prefix" $HOSTTARGETFLAGS
94cd "$PACKAGES"
95
96#configure mgpp
97echo ""
98echo "Configuring MGPP"
99echo ""
100cd "$PACKAGES/mgpp"
101./configure $CACHE_FILE --prefix="$prefix" $HOSTTARGETFLAGS
102cd "$PACKAGES"
103
104#configure vishnu
105echo ""
106echo "Configuring vishnu"
107echo ""
108cd "$PACKAGES/vishnu"
109./configure $CACHE_FILE --prefix="$prefix" $HOSTTARGETFLAGS
110cd "$PACKAGES"
111
112# configure mysql
113#echo ""
114#echo "Configuring MySQL"
115#echo ""
116
117#cd "$PACKAGES/mysql"
118#if test ! -e mysql-4.0.16; then
119# gzip -dc mysql-4.0.16.tar.gz | tar -xf -
120#fi
121#cd mysql-4.0.16
122#./configure $CACHE_FILE --prefix="$PACKAGES/mysql" --libexec="$PACKAGES/mysql/libexec"
123#cd "$PACKAGES"
124#if test ! -e libexec; then
125# mkdir libexec
126#fi
127
128# configure the wvWare Word document converter
129
130if test -e "$PACKAGES/wv"; then
131 echo ""
132 echo "Configuring wvWare"
133 echo ""
134
135 cd "$PACKAGES/wv"
136 gzip -dc wv-0.7.1-gs.tar.gz | tar -xf -
137 cd wv-gs
138 # datadir is for default location of wvHtml.xml config file
139 ./configure $CACHE_FILE --prefix=$PACKAGES/wv --bindir="$bindir" --datadir="$prefix/etc/packages" $HOSTTARGETFLAGS
140fi
141
142# configure the pdftohtml converter
143if test -e "$PACKAGES/pdftohtml"; then
144 echo ""
145 echo "Configuring pdftohtml"
146 echo ""
147
148 cd "$PACKAGES/pdftohtml"
149 gzip -dc pdftohtml_0_34.tar.gz | tar -xf -
150 cd pdftohtml_0_34
151 ./configure $CACHE_FILE --prefix="$prefix" --bindir="$bindir" $HOSTTARGETFLAGS
152fi
153
154# rtftohtml converter
155if test -e "$PACKAGES/rtftohtml"; then
156 echo ""
157 echo "Configuring rtftohtml"http://kanuka.cs.waikato.ac.nz:8070/gsdl3
158 echo ""
159
160 cd "$PACKAGES/rtftohtml"
161 gzip -dc rtftohtml-gs.tar.gz | tar -xf -
162 cd rtftohtml_src
163 ./configure $CACHE_FILE --prefix="$prefix" --bindir="$bindir" $HOSTTARGETFLAGS
164fi
165
166# configure wget
167if test -e "$PACKAGES/wget"; then
168 echo ""
169 echo "Configuring wget"
170 echo ""
171 cd "$PACKAGES/wget"
172 gzip -dc wget.tar.gz | tar -xf -
173 cd "$PACKAGES/wget/wget-1.5.3"
174 ./configure $CACHE_FILE --prefix=$PACKAGES/wget --bindir="$bindir" $HOSTTARGETFLAGS
175fi
176
177# configure powerpoint converter
178if test -e "$PACKAGES/xlhtml"; then
179 echo ""
180 echo "Configuring xlhtml (powerpoint & excel converter)"
181 echo ""
182 cd "$PACKAGES/xlhtml"
183 gzip -dc xlhtml-0.4.9.0-gs.tar.gz | tar -xf -
184 cd xlhtml-0.4.9.0
185 ./configure $CACHE_FILE --prefix="$prefix" --bindir="$bindir" $HOSTTARGETFLAGS
186fi
Note: See TracBrowser for help on using the repository browser.