Get goffice building properly.

- make sure it will build dynamically
- remove unknown symbols
- fix the intltool-merge problem by replacing intltool-merge


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14731 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2006-08-26 21:22:58 +00:00
parent 9f1d69b417
commit 80146b4f58
3 changed files with 23 additions and 6 deletions

View File

@ -103,6 +103,7 @@ add_step inst_gwrap
add_step inst_gnome
add_step inst_autotools
add_step inst_libgsf
add_step inst_goffice
add_step inst_svn
add_step svn_up
add_step inst_gnucash

View File

@ -539,20 +539,27 @@ function inst_goffice() {
set -e
smart_wget $GOFFICE_URL $DOWNLOAD_DIR
tar -xjpf $DOWNLOAD_UDIR/goffice-*.tar.bz2 -C $TMP_UDIR
mydir=`pwd`
qpushd $TMP_UDIR/goffice-*
cp configure.in configure.in.bak
cat configure.in.bak | sed '/AC_PROG_INTLTOOL/s#)$#,[no-xml])#' > configure.in
[ -n "$GOFFICE_PATCH" -a -f "$GOFFICE_PATCH" ] && \
patch -p1 < $GOFFICE_PATCH
cp goffice/Makefile.am goffice/Makefile.am.bak
cat goffice/Makefile.am.bak \
| sed '/LIBADD/s#-lurlmon##;s#-lhtmlhelp##' \
> goffice/Makefile.am
cp goffice/goffice.def goffice/goffice.def.bak
cat goffice/goffice.def.bak \
| sed '/^go_doc_mark_not_modified$/d;/^go_plugin_init$/d;/^go_plugin_shutdown$/d' \
> goffice/goffice.def
automake
autoconf
./configure --prefix=$_GOFFICE_UDIR
for f in `find . -name Makefile.am` ; do
if [ `grep -c INTLTOOL_XML_RULE $f` != 0 ] ; then
cp $f $f.bak
cat $f.bak | sed -e '/INTLTOOL_XML_RULE/d' > $f
fi
done
[ -f dumpdef.pl ] || cp -p ../libgsf-*/dumpdef.pl .
[ -f $mydir/intltool-merge ] && \
( mv intltool-merge intltool-merge.bak ; \
cp -p $mydir/intltool-merge . )
make
make install
qpopd

View File

@ -0,0 +1,9 @@
#!/bin/sh
#
# Fake intltool-merge
if [ "$1" != "-x" -a "$2" != "-u" ] ; then
exit 0
fi
cat "$6" | sed 's/<_/</g;s#</_#</#g;s#</ _#</ #g' > "$7"