From c66943e3389f58ca1fd91d206b667b1706b9f3ab Mon Sep 17 00:00:00 2001 From: Derek Atkins Date: Sat, 26 Aug 2006 03:30:13 +0000 Subject: [PATCH] Add script code to build libgsf -- tested and works for me. Add script code to build goffice (not enabled, yet). git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14725 57a11ea4-9604-0410-9ed3-97b8803252fd --- packaging/win32/custom.sh | 7 ++++++ packaging/win32/install.sh | 51 ++++++++++++++++++++++++++++++++++++-- 2 files changed, 56 insertions(+), 2 deletions(-) diff --git a/packaging/win32/custom.sh b/packaging/win32/custom.sh index 1a139db808..c8a97abc31 100644 --- a/packaging/win32/custom.sh +++ b/packaging/win32/custom.sh @@ -79,6 +79,12 @@ AUTOMAKE_URL="http://ftp.gnu.org/gnu/automake/automake-1.9.6.tar.bz2" LIBTOOL_URL="http://ftp.gnu.org/gnu/libtool/libtool-1.5.22.tar.gz" AUTOTOOLS_DIR=$GLOBAL_DIR\\autotools +LIBGSF_URL="$GNOME_MIRROR/sources/libgsf/1.14/libgsf-1.14.1.tar.bz2" +LIBGSF_DIR=$GLOBAL_DIR\\libgsf + +GOFFICE_URL="$GNOME_MIRROR/sources/goffice/0.3/goffice-0.3.0.tar.bz2" +GOFFICE_DIR=$GLOBAL_DIR\\goffice + SVN_URL="http://subversion.tigris.org/files/documents/15/32856/svn-1.3.2-setup.exe" SVN_DIR=$GLOBAL_DIR\\svn @@ -94,6 +100,7 @@ add_step inst_guile add_step inst_glade add_step inst_gwrap add_step inst_gnome +add_step inst_libgsf add_step inst_autotools add_step inst_svn add_step svn_up diff --git a/packaging/win32/install.sh b/packaging/win32/install.sh index d48c370ada..9383920bf3 100644 --- a/packaging/win32/install.sh +++ b/packaging/win32/install.sh @@ -91,7 +91,6 @@ function prepare() { function smart_wget() { _FILE=`basename $1` _DLD=`unix_path $2` - _TMP=`unix_path $TMP_DIR` # If the file already exists in the download directory ($2) # then don't do anything. But if it does NOT exist then @@ -99,7 +98,7 @@ function smart_wget() { # move it to the dest dir. if [ ! -f $_DLD/$_FILE ] ; then wget -c $1 -P $TMP_DIR - mv $_TMP/$_FILE $_DLD + mv $TMP_UDIR/$_FILE $_DLD fi } @@ -501,6 +500,54 @@ function inst_autotools() { quiet libtool --help || die "autotools not installed correctly" } +function inst_libgsf() { + setup libGSF + _LIBGSF_UDIR=`unix_path $LIBGSF_DIR` + add_to_env $_LIBGSF_UDIR/bin PATH + add_to_env $_LIBGSF_UDIR/lib/pkgconfig PKG_CONFIG_PATH + set +e + quiet pkg-config --exists libgsf-1 libgsf-gnome-1 + if [ $? = 0 ] ; then + set -e + echo "libgsf already installed. skipping." + else + set -e + smart_wget $LIBGSF_URL $DOWNLOAD_DIR + tar -xjpf $DOWNLOAD_UDIR/libgsf-*.tar.bz2 -C $TMP_UDIR + qpushd $TMP_UDIR/libgsf-* + cp configure.in configure.in.bak + cat configure.in.bak | sed '/AC_PROG_INTLTOOL/s#$#([],[no-xml])#' > configure.in + autoconf + ./configure --prefix=$_LIBGSF_UDIR + make + make install + qpopd + fi + pkg-config --exists libgsf-1 libgsf-gnome-1 || die "libgsf not installed correctly" +} + +function inst_goffice() { + setup GOffice + _GOFFICE_UDIR=`unix_path $GOFFICE_DIR` + add_to_env $_GOFFICE_UDIR/lib/pkgconfig PKG_CONFIG_PATH + set +e + quiet pkg-config --exists libgoffice-1 + if [ $? = 0 ] ; then + set -e + echo "goffice already installed. skipping." + else + set -e + smart_wget $GOFFICE_URL $DOWNLOAD_DIR + tar -xjpf $DOWNLOAD_UDIR/goffice-*.tar.bz2 -C $TMP_UDIR + qpushd $TMP_UDIR/goffice-* + ./configure --prefix=$_GOFFICE_UDIR + make + make install + qpopd + fi + pkg-config --exists libgoffice-1 || die "goffice not installed correctly" +} + function inst_svn() { setup Subversion _SVN_UDIR=`unix_path $SVN_DIR`