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-cygwin"
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 for config_sub
in $
(find $d -name config.sub
)
28 if ! grep -i cygwin
$config_sub >/dev
/null
2>&1
30 cp $d/build
/config.sub
$config_sub
34 (cd $d && .
/autogen.sh
&& cd neon
&& .
/autogen.sh
) &&
36 perl
-i.bak
-pe 's/(deplibs_check_method=).*/\1pass_all/' \
37 $
(find $d -name libtool
) &&
38 perl
-i.bak
-pe 's/(old_library=")(libexpat.a")/\1.libs\/\2/' \
39 $d/apr-util
/xml
/expat
/lib
/libexpat.la
&&
40 (cd $d && make LDFLAGS
="-no-undefined -Wl,-enable-auto-import -L/lib" )
47 (cd $d && make install) ||
exit
50 make swig-pl-lib LDFLAGS
="-no-undefined -Wl,-enable-auto-import -L/lib" LIBS
="-L/lib/perl5/5.8.8/msys/CORE -lperl" &&
51 make install-swig-pl-lib
&&
52 cd subversion
/bindings
/swig
/perl
/native
&&
56 mv ..
/libsvn_swig_perl
/.libs
/Makefile
* .
/
58 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" &&