3 cd "$(dirname "$0")" && . ..
/common
/update-lib.sh
7 url
=http
://subversion.tigris.org
/downloads
10 tar2
=subversion-deps-
$version.
tar.bz2
11 configure_options
="--prefix= --disable-static --enable-shared --build=i686-pc-mingw32"
13 # check for presence of libz (MSys), perl >= 5.8
14 perl
-e 'require 5.8.0' ||
exit
15 test -f /include
/zconf.h ||
{
16 echo "MSys version of libz required."
26 perl
-i.bak
-pe 's/CYGWIN/MSYS/g;s/cygwin/msys/g' \
27 $
(find $d -name config.guess
) $
(find $d -name config.sub
) &&
29 (cd $d && .
/autogen.sh
&& cd neon
&& .
/autogen.sh
) &&
31 perl
-i.bak
-pe 's/(deplibs_check_method=).*/\1pass_all/' \
32 $
(find $d -name libtool
) &&
33 perl
-i.bak
-pe 's/(old_library=")(libexpat.a")/\1.libs\/\2/' \
34 $d/apr-util
/xml
/expat
/lib
/libexpat.la
&&
35 (cd $d && make LDFLAGS
="-no-undefined -Wl,-enable-auto-import -L/lib" )
42 (cd $d && make install) ||
exit
45 make swig-pl-lib LDFLAGS
="-no-undefined -Wl,-enable-auto-import -L/lib" LIBS
="-L/lib/perl5/5.8.8/msys/CORE -lperl" &&
46 make install-swig-pl-lib
&&
47 cd subversion
/bindings
/swig
/perl
/native
&&
51 mv ..
/libsvn_swig_perl
/.libs
/Makefile
* .
/
53 make CCFLAGS
=-Dstrtoll=strtol LDLOADLIBS
="-L/lib -lsvn_ra_dav-1 -lsvn_ra_svn-1 -lsvn_ra_local-1 -lsvn_repos-1 -lsvn_fs-1 -lsvn_fs_fs-1 -lsvn_delta-1 -lsvn_subr-1 -laprutil-0 -lapr-0 -lneon -lexpat -lsvn_swig_perl-1 -lsvn_diff-1 -lsvn_client-1 -lsvn_ra-1 -lsvn_wc-1 -L/lib/perl5/5.8.8/msys/CORE/ -lperl -L/lib -lz" &&