subversion: tell configure that we're a Cygwin system
[msysgit.git] / src / subversion / release.sh
blobdffed7daa86b3ada89f5cd550260f40ffcac063b
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-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."
17 exit 1
20 download &&
21 extract &&
22 (tar=$tar2 &&
23 d=$d/apr &&
24 download &&
25 extract) &&
26 for config_sub in $(find $d -name config.sub)
28 if ! grep -i cygwin $config_sub >/dev/null 2>&1
29 then
30 cp $d/build/config.sub $config_sub
31 fi || break
32 done &&
33 apply_patches &&
34 (cd $d && ./autogen.sh && cd neon && ./autogen.sh) &&
35 setup &&
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" )
42 # update index
43 FILELIST=fileList.txt
45 pre_install
47 (cd $d && make install) || exit
49 (cd $d &&
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 &&
53 perl Makefile.PL &&
54 if test ! -f Makefile
55 then
56 mv ../libsvn_swig_perl/.libs/Makefile* ./
57 fi &&
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" &&
59 make install) || exit
61 post_install