2003-11-03 19:18:00 +03:00
|
|
|
#! /bin/sh
|
|
|
|
|
2003-12-21 23:52:13 +03:00
|
|
|
buildinputs="$openssl $db4 $httpd $swig $python $expat"
|
2003-11-03 19:18:00 +03:00
|
|
|
. $stdenv/setup || exit 1
|
|
|
|
|
|
|
|
if test $localServer; then
|
|
|
|
extraflags="--with-berkeley-db=$db4 $extraflags"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $sslSupport; then
|
|
|
|
extraflags="--with-ssl --with-libs=$openssl $extraflags"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $httpServer; then
|
|
|
|
extraflags="--with-apxs=$httpd/bin/apxs --with-apr=$httpd --with-apr-util=$httpd $extraflags"
|
|
|
|
extramakeflags="APACHE_LIBEXECDIR=$out/modules $extramakeflags"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $swigBindings; then
|
|
|
|
extraflags="--with-swig=$swig $extraflags"
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "extra flags: $extraflags"
|
|
|
|
|
|
|
|
tar xvfz $src || exit 1
|
|
|
|
cd subversion-* || exit 1
|
|
|
|
./configure --prefix=$out $extraflags \
|
|
|
|
--without-gdbm --disable-static || exit 1
|
|
|
|
make $extramakeflags || exit 1
|
|
|
|
make install $extramakeflags || exit 1
|
|
|
|
|
|
|
|
if test $swigBindings; then
|
|
|
|
make swig-py || exit 1
|
|
|
|
make install-swig-py || exit 1
|
|
|
|
fi
|