mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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
This commit is contained in:
parent
c9cb405d61
commit
c66943e338
@ -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"
|
LIBTOOL_URL="http://ftp.gnu.org/gnu/libtool/libtool-1.5.22.tar.gz"
|
||||||
AUTOTOOLS_DIR=$GLOBAL_DIR\\autotools
|
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_URL="http://subversion.tigris.org/files/documents/15/32856/svn-1.3.2-setup.exe"
|
||||||
SVN_DIR=$GLOBAL_DIR\\svn
|
SVN_DIR=$GLOBAL_DIR\\svn
|
||||||
|
|
||||||
@ -94,6 +100,7 @@ add_step inst_guile
|
|||||||
add_step inst_glade
|
add_step inst_glade
|
||||||
add_step inst_gwrap
|
add_step inst_gwrap
|
||||||
add_step inst_gnome
|
add_step inst_gnome
|
||||||
|
add_step inst_libgsf
|
||||||
add_step inst_autotools
|
add_step inst_autotools
|
||||||
add_step inst_svn
|
add_step inst_svn
|
||||||
add_step svn_up
|
add_step svn_up
|
||||||
|
@ -91,7 +91,6 @@ function prepare() {
|
|||||||
function smart_wget() {
|
function smart_wget() {
|
||||||
_FILE=`basename $1`
|
_FILE=`basename $1`
|
||||||
_DLD=`unix_path $2`
|
_DLD=`unix_path $2`
|
||||||
_TMP=`unix_path $TMP_DIR`
|
|
||||||
|
|
||||||
# If the file already exists in the download directory ($2)
|
# If the file already exists in the download directory ($2)
|
||||||
# then don't do anything. But if it does NOT exist then
|
# 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.
|
# move it to the dest dir.
|
||||||
if [ ! -f $_DLD/$_FILE ] ; then
|
if [ ! -f $_DLD/$_FILE ] ; then
|
||||||
wget -c $1 -P $TMP_DIR
|
wget -c $1 -P $TMP_DIR
|
||||||
mv $_TMP/$_FILE $_DLD
|
mv $TMP_UDIR/$_FILE $_DLD
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -501,6 +500,54 @@ function inst_autotools() {
|
|||||||
quiet libtool --help || die "autotools not installed correctly"
|
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() {
|
function inst_svn() {
|
||||||
setup Subversion
|
setup Subversion
|
||||||
_SVN_UDIR=`unix_path $SVN_DIR`
|
_SVN_UDIR=`unix_path $SVN_DIR`
|
||||||
|
Loading…
Reference in New Issue
Block a user