2001-04-19 14:21:46 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2005-12-20 18:43:40 +01:00
|
|
|
# ***** W32 build script *******
|
|
|
|
# Used to cross-compile for Windows.
|
|
|
|
if test "$1" = "--build-w32"; then
|
|
|
|
tmp=`dirname $0`
|
|
|
|
tsdir=`cd "$tmp"; pwd`
|
|
|
|
shift
|
|
|
|
if [ ! -f $tsdir/config/config.guess ]; then
|
|
|
|
echo "$tsdir/config/config.guess not found" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
build=`$tsdir/config/config.guess`
|
|
|
|
|
|
|
|
[ -z "$w32root" ] && w32root="$HOME/w32root"
|
|
|
|
echo "Using $w32root as standard install directory" >&2
|
|
|
|
|
|
|
|
if i586-mingw32msvc-gcc --version >/dev/null 2>&1 ; then
|
|
|
|
host=i586-mingw32msvc
|
|
|
|
crossbindir=/usr/$host/bin
|
|
|
|
else
|
|
|
|
echo "Debian's mingw32 cross-compiler packet is required" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f "$tsdir/config.log" ]; then
|
|
|
|
if ! head $tsdir/config.log | grep "$host" >/dev/null; then
|
|
|
|
echo "Pease run a 'make distclean' first" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
./configure --enable-maintainer-mode --prefix=${w32root} \
|
|
|
|
--host=i586-mingw32msvc --build=${build} \
|
|
|
|
--with-lib-prefix=${w32root} \
|
|
|
|
--with-libiconv-prefix=${w32root} \
|
|
|
|
--with-gpg-error-prefix=${w32root} \
|
|
|
|
--with-gpgme-prefix=${w32root} \
|
|
|
|
--with-config-dir="Sylpheed-claws" \
|
|
|
|
--disable-openssl --disable-dillo-viewer-plugin \
|
|
|
|
--disable-nls --disable-libetpan --disable-aspell \
|
2005-12-23 08:36:23 +01:00
|
|
|
--disable-trayicon-plugin --disable-spamassassin-plugin \
|
2005-12-20 18:43:40 +01:00
|
|
|
PKG_CONFIG_LIBDIR="$w32root/lib/pkgconfig"
|
|
|
|
|
|
|
|
rc=$?
|
|
|
|
exit $rc
|
|
|
|
fi
|
|
|
|
# ***** end W32 build script *******
|
|
|
|
|
|
|
|
|
2005-02-10 13:06:07 +01:00
|
|
|
aclocal -I m4 \
|
2002-12-03 11:28:02 +01:00
|
|
|
&& libtoolize --force --copy \
|
2001-04-19 14:21:46 +02:00
|
|
|
&& autoheader \
|
|
|
|
&& automake --add-missing --foreign --copy \
|
2001-04-21 10:19:30 +02:00
|
|
|
&& autoconf \
|
|
|
|
&& ./configure --enable-maintainer-mode $@
|