From: Angus Leeming Date: Mon, 13 Mar 2006 14:38:22 +0000 (+0000) Subject: Helper script to compile the Aspell library. X-Git-Tag: 1.6.10~13516 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4162ade19cf10c717892b64d4c95d756aaf8aeb2;p=features.git Helper script to compile the Aspell library. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13362 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/development/Win32/packaging/build_aspell.sh b/development/Win32/packaging/build_aspell.sh new file mode 100644 index 0000000000..6f6a7991e8 --- /dev/null +++ b/development/Win32/packaging/build_aspell.sh @@ -0,0 +1,55 @@ +#! /bin/sh + +grab_sources() { + +wget ftp://ftp.gnu.org/gnu/aspell/aspell-0.60.4.tar.gz + +} + +unpack() { + +gunzip aspell-0.60.4.tar.gz +tar xvf aspell-0.60.4.tar + +} + +build_it() { +( + cd aspell-0.60.4 + + # Add a missing #include. + grep '^# include "asc_ctype\.hpp"' common/file_util.cpp >/dev/null || { + sed '/^#ifdef WIN32 *$/,/^# *include *$/{ +//i\ +# include "asc_ctype.hpp" +}' common/file_util.cpp > tmp + + cmp -s common/file_util.cpp tmp || { + diff -u common/file_util.cpp tmp + mv -i tmp common/file_util.cpp + } + rm -f tmp + } + + ./configure \ + --enable-static \ + --disable-shared \ + --prefix=c:/Aspell || { + echo 'configure failed' >&2 + exit 1 + } + make +) +} + +install_it() { +( + cd aspell-0.60.4 + make install +) +} + +build_it +install_it + +# The end