2 # guile-gnome.sh -- download, compile, install g-wrap, guile-gnome TLA and
5 # LilyPond has an experimental gnome canvas output backend -- hackers
6 # only. This depends on unreleased version of guile-gnome, which
7 # depends on an unreleased, forked version of g-wrap. We also need
8 # pango CVS > 2004-06-12
10 # Note: this install information is volatile, you'll probably want to
11 # pull all from from guile-gnome-devel@gnu.org--2004 soon.
15 # Where user built stuff will be installed
18 if [ -x /usr/bin/gcc34 ] ;then
22 if [ -x /usr/bin/gcc-3.4 ] ;then
26 export AUTOMAKE=automake-1.8
27 export AUTOCONF=$(which autoconf2.50)
29 if [ -z "$AUTOCONF" ]; then
34 # test: the name of our download and build directory
39 ## 1. install gnome-devel
40 ## - Debian/unstable: apt-get install gnome-devel
47 echo ":pserver:anonymous@anoncvs.gnome.org:/cvs/gnome" > CVS/Root
48 echo "." > CVS/Repository
49 cvs -z3 checkout -P pango
53 ./configure --prefix=$OPT/pango --enable-maintainer-mode --enable-gtk-doc
54 make XFT_LIBS="-L/usr/lib -lXft -L/usr/X11R6/lib -lfreetype -lz -lXrender -lX11 -lfontconfig" install
58 export PKG_CONFIG_PATH=$OPT/pango/lib/pkgconfig:$PKG_CONFIG_PATH
61 ## 3. *** NOTE: use guile-1.6 for g-wrap and guile-gnome ***
62 ## using GUILE CVS g-wrap/guile-gnome is experimental (read: segfaults)
63 ## Assuming that system has guile-1.6 installed in /usr/bin
66 if [ -d $OPT/libffi/ ]; then
67 export LDFLAGS=-L$OPT/libffi/lib
68 export CPPFLAGS=-I$OPT/libffi/include
72 tla register-archive a.rottmann@gmx.at--2004-main \
73 http://people.debian.org/~rotty/arch/a.rottmann@gmx.at/2004-main || true
77 ## pull latest g-wrap from janneke -- this step is probably no longer
78 ## necessary when you read this
79 tla register-archive janneke@gnu.org--2004-gnome \
80 http://lilypond.org/~janneke/{arch}/2004-gnome || true
81 tla get janneke@gnu.org--2004-gnome/g-wrap--janneke g-wrap
83 ## tla get a.rottmann@gmx.at--2004-main/g-wrap--tng g-wrap
84 tla get a.rottmann@gmx.at--2004-main/g-wrap--mainline--1.9.0 g-wrap
89 sh autogen.sh --noconfigure
92 ../configure --prefix=$OPT/g-wrap
96 ## cp srfi-34.scm from CVS head ? --hwn
97 #(cd $OPT/g-wrap/share/guile/site
98 # mv srfi-34.scm srfi-34.scm-g-wrap
99 # cp $OPT/guile/share/guile-1.7/srfi/srfi-34.scm .)
103 ## 5. get guile-gnome
104 tla register-archive guile-gnome-devel@gnu.org--2004 \
105 http://people.debian.org/~rotty/arch/guile-gnome-devel@gnu.org/2004/ || true
107 tla get guile-gnome-devel@gnu.org--2004/dists--dev guile-gnome
109 tla build-config -r configs/gnu.org/dev
112 ## 6. get the gnome canvas module
113 tla get guile-gnome-devel@gnu.org--2004/libgnomecanvas--dev libgnomecanvas
115 rm -rf $OPT/guile-gnome
116 sh autogen.sh --noconfigure
120 export GUILE_LOAD_PATH=$OPT/g-wrap/share/guile/site:$GUILE_LOAD_PATH
121 export LD_LIBRARY_PATH=$OPT/g-wrap/lib:$LD_LIBRARY_PATH
122 PKG_CONFIG_PATH=$OPT/g-wrap/lib/pkgconfig:$PKG_CONFIG_PATH
124 ../src/configure --prefix=$OPT/guile-gnome
125 make install CC=$GCC G_WRAP_MODULE_DIR=$OPT/g-wrap/share/guile/site
127 GUILE_LOAD_PATH=$OPT/guile-gnome/share/guile:$GUILE_LOAD_PATH
128 LD_LIBRARY_PATH=$OPT/guile-gnome/lib:$LD_LIBRARY_PATH
131 guile -s ../src/libgnomecanvas/examples/canvas.scm