3 # WIP - this (the guile-gnome canvas) is broken ATM.
5 # guile-gnome.sh -- download, compile, install g-wrap, guile-gnome,
8 # LilyPond has an experimental gnome canvas output backend -- hackers
9 # only. This depends on rather new versions of guile-gnome, g-wrap
14 # Where user built stuff will be installed
16 ## when using GUILE CVS, make a slib/require like so:
17 ## cd ~/usr/pkg/guile/share/guile/1.7 && ln -s /usr/share/guile/1.6/slib .
18 ## cd && guile -c "(use-modules (ice-9 slib)) (require 'new-catalog)"
19 ## otherwise, this may fix it...
20 SLIB_PATH=`locate slib/require.scm | head -1 | sed -s 's/require.scm//g'`
22 # What extra modules to pull (eg: EXTRA="libgnomecanvas libwnck")
23 EXTRA=${EXTRA-libgnomecanvas}
26 export AUTOMAKE=automake-1.8
27 export ACLOCAL=aclocal-1.8
28 export AUTOCONF=$(which autoconf2.50)
29 export AUTOHEADER=$(which autoheader2.50)
31 export PKG_CONFIG_PATH
32 export LD_LIBRARY_PATH
33 export GUILE_LOAD_PATH
35 if [ -z "$AUTOCONF" ]; then
38 if [ -z "$AUTOHEADER" ]; then
43 # test: the name of our download and build directory
48 ## 1. install gnome-devel
49 ## - Debian/unstable: apt-get install gnome-devel
54 PKG_CONFIG_PATH=$OPT/pango/lib/pkgconfig:$PKG_CONFIG_PATH
55 LD_LIBRARY_PATH=$OPT/pango/lib:$LD_LIBRARY_PATH
58 if ! pkg-config --atleast-version=1.5.1 pango; then
60 if [ -n "$BLOEDIGE_RAND" ]; then
61 echo ":pserver:anonymous@anoncvs.gnome.org:/cvs/gnome" > CVS/Root
62 echo "." > CVS/Repository
63 cvs -z3 checkout -P pango
65 wget -N ftp://ftp.gtk.org/pub/gtk/v2.5/pango-1.5.2.tar.gz
66 tar -xzf pango-1.5.2.tar.gz
67 ln -s pango-1.5.2 pango
71 if [ ! -f configure ]; then
74 ./configure --prefix=$OPT/pango --enable-maintainer-mode --enable-gtk-doc
75 make XFT_LIBS="-L/usr/lib -lXft -L/usr/X11R6/lib -lfreetype -lz -lXrender -lX11 -lfontconfig" install
79 ## 3. Currently (2004-9-15) GUILE CVS works again
83 if [ -d $OPT/libffi/ ]; then
84 export LDFLAGS=-L$OPT/libffi/lib
85 export CPPFLAGS=-I$OPT/libffi/include
88 PKG_CONFIG_PATH=$OPT/g-wrap/lib/pkgconfig:$PKG_CONFIG_PATH
89 LD_LIBRARY_PATH=$OPT/g-wrap/lib:$LD_LIBRARY_PATH
90 GUILE_LOAD_PATH=$OPT/g-wrap/share/guile/site:$GUILE_LOAD_PATH:$SLIB_PATH
94 ## note that bleeding edge (2004-9-13) g-wrap breaks guile-gnome.
95 if ! pkg-config --exact-version=1.9.1 g-wrap-2.0-guile; then
96 if [ -n "$BLOEDIGE_RAND" ]; then
97 tla register-archive a.rottmann@gmx.at--2004-main \
98 http://people.debian.org/~rotty/arch/a.rottmann@gmx.at/2004-main || true
100 ## tla get a.rottmann@gmx.at--2004-main/g-wrap--tng g-wrap
101 ## tla get a.rottmann@gmx.at--2004-main/g-wrap--mainline--1.9.0 g-wrap
102 tla get a.rottmann@gmx.at--2004-main/g-wrap--dev--0 g-wrap
104 mkdir -p g-wrap/libffi
106 wget -N http://savannah.nongnu.org/download/g-wrap/g-wrap-1.9.1.tar.gz
107 tar zxf g-wrap-1.9.1.tar.gz
108 ln -s g-wrap-1.9.1 g-wrap
113 if [ ! -f configure ]; then
114 sh autogen.sh --noconfigure
118 ../configure --prefix=$OPT/g-wrap --enable-maintainer-mode
125 ## cp srfi-34.scm from CVS head ? --hwn
126 #(cd $OPT/g-wrap/share/guile/site
127 # mv srfi-34.scm srfi-34.scm-g-wrap
128 # cp $OPT/guile/share/guile-1.7/srfi/srfi-34.scm .)
130 PKG_CONFIG_PATH=$OPT/guile-gnome/lib/pkgconfig:$PKG_CONFIG_PATH
131 LD_LIBRARY_PATH=$OPT/guile-gnome/lib:$LD_LIBRARY_PATH
132 GUILE_LOAD_PATH=$OPT/guile-gnome/share/guile:$GUILE_LOAD_PATH
133 ## 5. get guile-gnome
134 if ! pkg-config --atleast-version=$GGVERSION guile-gnome-glib; then
135 if [ -n "$BLOEDIGE_RAND" ]; then
137 if false; then # rotty
138 tla register-archive guile-gnome-devel@gnu.org--2004 \
139 http://people.debian.org/~rotty/arch/guile-gnome-devel@gnu.org/2004/ || true
140 tla get guile-gnome-devel@gnu.org--2004/dists--dev guile-gnome
142 tla build-config -r configs/gnu.org/dev
145 # 5a. get extra modules (gnome canvas)
147 tla get guile-gnome-devel@gnu.org--2004/$i--dev $i
150 tla register-archive wingo@pobox.com--2004-main \
151 http://ambient.2y.net/wingo/arch/wingo@pobox.com--2004-main || true
153 tla get wingo@pobox.com--2004-main/guile-gnome-dists--release guile-gnome
155 tla build-config -r configs/gnu.org/guile-gnome-platform-$GGVERSION
157 EXTRA="pkg atk defs glib gstreamer gtk gtksourceview libgda libglade libgnome libgnomeui pango libgnomecanvas"
160 # 5a. get extra modules (gnome canvas)
162 tla get wingo@pobox.com--2004-main/guile-gnome-$i--release $i
169 if [ ! -f configure ]; then
170 sh autogen.sh --noconfigure
174 wget -N http://ambient.2y.net/wingo/tmp/guile-gnome-platform-$GGVERSION.tar.gz
175 tar xzf guile-gnome-platform-$GGVERSION.tar.gz
176 ln -s guile-gnome-platform-$GGVERSION guile-gnome
181 rm -rf $OPT/guile-gnome
185 # Using libtool < 1.6.0 together with gcc-3.4 may trigger this problem:
187 # If a tag has not been given, and we're using a compiler which is
188 # not one of the ones with which libtool was built, attempt to
189 # infer the compiler from the first word of the command line passed
192 if [ -z "$GCC34" ]; then
193 # Use libtool-1.5.6, gcc-3.{2,3} without -O2,
194 CFLAGS='-O -g' ../src/configure --prefix=$OPT/guile-gnome --enable-maintainer-mode
196 # or use gcc-3.4 with libtool-1.6.0
197 CC=$GCC34 ../src/configure --prefix=$OPT/guile-gnome --enable-maintainer-mode
199 make install G_WRAP_MODULE_DIR=$OPT/g-wrap/share/guile/site
202 # simple test -- fails atm
203 # guile -s ../src/libgnomecanvas/examples/canvas.scm