Bug #118391: This patch add isocodes support for Windows build.

It automatically download,
build, install and packaging the isocodes.

Currently, the patch will not make Windows build show the locale long
currencies name. But it make the isocode available on Windows. Since the long
currencies names are already shown on Linux, I think it should not far to make
it happen on Windows too, especially the isocode will be available after this
patch.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19369 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2010-07-14 20:22:18 +00:00
parent 0276f793bc
commit 591bf8b9a7
5 changed files with 33 additions and 0 deletions

View File

@ -372,6 +372,9 @@ set_default DOCS_URL "http://svn.gnucash.org/repo/gnucash-docs/trunk"
set_default DOCS_DIR $GLOBAL_DIR\\gnucash-docs
set_default XSLTPROCFLAGS ""
set_default ISOCODES_URL "ftp://pkg-isocodes.alioth.debian.org/pub/pkg-isocodes/iso-codes-3.18.tar.bz2"
set_default ISOCODES_DIR $GLOBAL_DIR\\isocodes
### Local Variables: ***
### sh-basic-offset: 4 ***
### indent-tabs-mode: nil ***

View File

@ -44,6 +44,7 @@ Please set AQBANKING_WITH_QT to yes and rerun install.sh first."
_INSTALL_UDIR=`unix_path $INSTALL_DIR`
_INNO_UDIR=`unix_path $INNO_DIR`
_WEBKIT_UDIR=`unix_path $WEBKIT_DIR`
_ISOCODES_UDIR=`unix_path $ISOCODES_DIR`
add_to_env $_UNZIP_UDIR/bin PATH # unzip
add_to_env $_GNOME_UDIR/bin PATH # gconftool-2
add_to_env $_EXETYPE_UDIR/bin PATH # exetype
@ -128,6 +129,12 @@ function dist_gnome() {
rm -rf $DIST_UDIR/lib/locale
}
function dist_isocodes() {
setup isocodes
mkdir -p $DIST_UDIR/share
cp -a $_ISOCODES_UDIR/share/{locale,xml} $DIST_UDIR/share
}
function dist_pcre() {
setup pcre
mkdir -p $DIST_UDIR/bin

View File

@ -20,6 +20,7 @@ add_step dist_regex
add_step dist_autotools
add_step dist_guile
add_step dist_gnome
add_step dist_isocodes
add_step dist_pcre
add_step dist_libbonoboui
add_step dist_libgsf

View File

@ -648,6 +648,27 @@ EOF
[ ! -d $_GNOME_UDIR/share/aclocal ] || add_to_env "-I $_GNOME_UDIR/share/aclocal" ACLOCAL_FLAGS
}
function inst_isocodes() {
setup isocodes
_ISOCODES_UDIR=`unix_path ${ISOCODES_DIR}`
add_to_env $_ISOCODES_UDIR/share/pkgconfig PKG_CONFIG_PATH
if [ -f ${_ISOCODES_UDIR}/share/pkgconfig/iso-codes.pc ]
then
echo "isocodes already installed. skipping."
else
wget_unpacked $ISOCODES_URL $DOWNLOAD_DIR $TMP_DIR
assert_one_dir $TMP_UDIR/iso-codes-*
qpushd $TMP_UDIR/iso-codes-*
./configure ${HOST_XCOMPILE} \
--prefix=${_ISOCODES_UDIR}
make
make install
qpopd
quiet [ -f ${_ISOCODES_UDIR}/share/pkgconfig/iso-codes.pc ] || die "isocodes not installed correctly"
rm -rf ${TMP_UDIR}/iso-codes-*
fi
}
function inst_swig() {
setup Swig
_SWIG_UDIR=`unix_path $SWIG_DIR`

View File

@ -87,6 +87,7 @@ add_step inst_gnome
if [ "$AQBANKING3" = "yes" ]; then
add_step inst_gnutls
fi
add_step inst_isocodes
add_step inst_swig
add_step inst_pcre
add_step inst_libbonoboui