Update /src/subversion/release.sh to fetch Subversion 1.6.3
[msysgit.git] / src / subversion / release.sh
blob8fda0cbf32e62a863d5999548afc5a44c9734872
1 #!/bin/sh
3 cd "$(dirname "$0")" && . ../common/update-lib.sh
5 package=Subversion
6 version=1.6.3
7 url=http://subversion.tigris.org/downloads
8 d=subversion-$version
9 tar=$d.tar.bz2
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."
17 exit 1
20 download &&
21 extract &&
22 (tar=$tar2 &&
23 d=$d/apr &&
24 download &&
25 extract) &&
26 perl -i.bak -pe 's/CYGWIN/MSYS/g;s/cygwin/msys/g' \
27 $(find $d -name config.guess) $(find $d -name config.sub) &&
28 apply_patches &&
29 (cd $d && ./autogen.sh && cd neon && ./autogen.sh) &&
30 setup &&
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" )
37 # update index
38 FILELIST=fileList.txt
40 pre_install
42 (cd $d && make install) || exit
44 (cd $d &&
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 &&
48 perl Makefile.PL &&
49 if test ! -f Makefile
50 then
51 mv ../libsvn_swig_perl/.libs/Makefile* ./
52 fi &&
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" &&
54 make install) || exit
56 post_install