3 export INSTALLDIR
=$HOME/geda
5 # Set these to point to GNU make
9 # Nothing below configurable
10 ########################################################################
12 # Check for bzip2 as some tarballs come as .tar.bz2 files
13 whichbzip2
=`which bzip2`
14 if [ "$whichbzip2" = "" ]
16 echo You must have
bzip2 installed
20 # Create a dummy lynx if it doesn't exist
21 whichlynx
=`which lynx`
22 if [ "$whichlynx" = "" ]
24 touch $INSTALLDIR/bin
/lynx
25 chmod 755 $INSTALLDIR/bin
/lynx
29 # Create a somewhat dumb docbook2pdf if it doesn't exist
30 whichdocbook2pdf
=`which docbook2pdf`
31 if [ "$whichdocbook2pdf" = "" ]
34 cat << EOF > $INSTALLDIR/bin/docbook2pdf
37 newfilename=\`echo \$1 | sed "s/sgml/pdf/"\`
41 chmod 755 $INSTALLDIR/bin
/docbook2pdf
46 export PKG_CONFIG_PATH
=$INSTALLDIR/lib
/pkgconfig
:$PKG_CONFIG_PATH
47 export PATH
=$INSTALLDIR/bin
:$PATH
48 export LD_LIBRARY_PATH
=$INSTALLDIR/lib
:$LD_LIBRARY_PATH
49 export CFLAGS
=-I$INSTALLDIR/include
50 export LDFLAGS
=-L$INSTALLDIR/lib
52 EXTRA_CONFIGURE_FLAGS
=
54 # $1 name of package and created subdirectory
55 configure_build_install
()
64 echo Could not
find $1.
tar.gz or
$1.
tar.bz2
73 echo Untarring
: $filename with
tar $tarflags
74 tar $tarflags $filename
78 echo $1: failed to untar
86 echo $1: failed to
cd into
$1
90 echo Configuring
: $1 $EXTRA_CONFIGURE_FLAGS
91 .
/configure
--prefix=$INSTALLDIR $EXTRA_CONFIGURE_FLAGS
95 echo $1: failed to configure
104 echo $1: failed to
$MAKE
113 echo $1: failed to
$MAKE install
120 ########################################################################
122 # Build the actual dependencies now
124 ########################################################################
126 configure_build_install pkgconfig-0.15
.0
128 export EXTRA_CONFIGURE_FLAGS
=--disable-csharp
129 configure_build_install gettext-0.14
.3
130 export EXTRA_CONFIGURE_FLAGS
=
132 configure_build_install freetype-2.1
.9
133 configure_build_install render-0.8
134 configure_build_install libXrender-0.8
.4
135 configure_build_install expat-1.95
.8
136 configure_build_install fontconfig-2.3
.1
137 configure_build_install libXft-2.1
.6
138 configure_build_install xextensions-1.0
.1
139 configure_build_install fixesext-2.0
.1
140 configure_build_install libXfixes-2.0
.1
141 configure_build_install libXcursor-1.1
.2
142 configure_build_install zlib-1.2
.2
143 configure_build_install libpng-1.2
.8-config
144 configure_build_install libiconv-1.9
.2
145 configure_build_install glib-2.6
.3
146 configure_build_install atk-1.9
.0
147 configure_build_install pango-1.8
.1
149 export EXTRA_CONFIGURE_FLAGS
=-"-without-libtiff --without-libjpeg"
150 configure_build_install gtk
+-2.6
.4
151 export EXTRA_CONFIGURE_FLAGS
=
153 configure_build_install guile-1.6
.7
154 configure_build_install libstroke-0.5
.1
155 configure_build_install libgdgeda-2.0
.15
157 ########################################################################
161 ########################################################################
165 ########################################################################
169 ########################################################################
170 if [ "$CREATEDLYNX" != "" ]
172 rm -f $INSTALLDIR/bin
/lynx
175 if [ "$CREATEDDOCBOOK2PDF" != "" ]
177 rm -f $INSTALLDIR/bin
/docbook2pdf