|
|
|
@ -33,11 +33,11 @@ VERSION=${VERSION:-1.5.4}
|
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2} |
|
|
|
|
WGET=${WGET:-http://subversion.tigris.org/downloads/$ARCHIVE} |
|
|
|
|
|
|
|
|
|
# Built package infos |
|
|
|
|
# Build infos |
|
|
|
|
NAMETGZ=${NAMETGZ:-subversion-bindings} |
|
|
|
|
BUILD=${BUILD:-1GGD} |
|
|
|
|
BUILD=${BUILD:-2GGD} |
|
|
|
|
ARCH=${ARCH:-i486} |
|
|
|
|
TARGET=${TARGET:-i486} |
|
|
|
|
JOBS=${JOBS:-1} |
|
|
|
|
|
|
|
|
|
# Directories |
|
|
|
|
TMP=${TMP:-/tmp} |
|
|
|
@ -62,6 +62,9 @@ case "$ARCH" in
|
|
|
|
|
i?86) |
|
|
|
|
CPUOPT="-O2 -march=$ARCH -mtune=i686" |
|
|
|
|
;; |
|
|
|
|
x86_64) |
|
|
|
|
CPUOPT="-O2 -fPIC" |
|
|
|
|
;; |
|
|
|
|
*) |
|
|
|
|
CPUOPT="-O2" |
|
|
|
|
;; |
|
|
|
@ -69,12 +72,14 @@ esac
|
|
|
|
|
|
|
|
|
|
# Get and verify the source archive |
|
|
|
|
if [ ! -r $ARCHIVE ]; then |
|
|
|
|
wget "$WGET" |
|
|
|
|
wget -c -O $ARCHIVE.part "$WGET" |
|
|
|
|
mv $ARCHIVE.part $ARCHIVE |
|
|
|
|
fi |
|
|
|
|
sha1sum -c $ARCHIVE.sha1 |
|
|
|
|
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1) |
|
|
|
|
|
|
|
|
|
# Compile Subversion itself |
|
|
|
|
# Compile Subversion itself (configure options come from |
|
|
|
|
# Slackware's subversion SlackBuild) |
|
|
|
|
cd $TMP |
|
|
|
|
echo "Building $ARCHIVE..." |
|
|
|
|
tar xf $CWD/$ARCHIVE |
|
|
|
@ -92,8 +97,9 @@ CFLAGS=$CPUOPT \
|
|
|
|
|
--with-neon=/usr \ |
|
|
|
|
--with-zlib=/usr \ |
|
|
|
|
--with-pic \ |
|
|
|
|
--with-ssl |
|
|
|
|
make -j 3 |
|
|
|
|
--with-ssl \ |
|
|
|
|
--build=$ARCH-slackware-linux |
|
|
|
|
make -j $JOBS |
|
|
|
|
|
|
|
|
|
# Install Python bindings |
|
|
|
|
make swig-py |
|
|
|
|