Skip to content

Instantly share code, notes, and snippets.

@wbond
Last active September 21, 2022 22:39
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wbond/6067892 to your computer and use it in GitHub Desktop.
Save wbond/6067892 to your computer and use it in GitHub Desktop.
Subversion windows compile
# Install mingw with msys and all options from http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/
# Install python 2.7 to C:\Python27 and add to Path environmental variable
cd ~/src
cd openssl
./Configure mingw shared --prefix=/usr/local
make depend
make
make install
cd ../apr
sh buildconf
./configure --enable-shared=yes --disable-static --prefix=/usr/local
sed -i "s,LDFLAGS=,LDFLAGS=-no-undefined ," "build/apr_rules.mk"
make
make install
cd ../apr-util
sh buildconf
./configure --prefix=/usr/local --with-apr=../apr --with-openssl=../openssl
sed -i "s,EXTRA_CPPFLAGS=,EXTRA_CPPFLAGS=-DAPU_DECLARE_EXPORT ," "build/rules.mk"
sed -i "s,LDFLAGS=,LDFLAGS=-no-undefined ," "build/rules.mk"
make
make install
cd ../zlib
sed -i "s,SHARED_MODE=0,SHARED_MODE=1," win32/Makefile.gcc
make -f win32/Makefile.gcc
make -f win32/Makefile.gcc install DESTDIR=/usr/local INCLUDE_PATH=/include LIBRARY_PATH=/lib BINARY_PATH=/bin
cd ../serf-1.2.1
./configure --with-apr=../apr --with-apr-util=../apr-util --with-openssl=$(echo ~)/src/openssl --prefix=/usr/local CPPFLAGS=-I/usr/local/include LDFLAGS="-L/usr/local/lib"
sed -i "s,LDFLAGS = ,LDFLAGS = -no-undefined ," Makefile
make
make install
cd ../subversion-1.8.x
cp -R ../sqlite-amalgamation ./
sh autogen.sh
./configure --with-apr=../apr --with-apr-util=../apr-util --with-openssl=../openssl --enable-static=no --disable-nls --with-serf=/usr/local --with-zlib=/usr/local --with-swig=no --without-gpg-agent --with-gnome-keyring=no --enable-shared=yes CPPFLAGS=-I/usr/local/include
# Install mingw with msys and all options from http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/
mingw-get install msys-wget
mingw-get install msys-unzip
mingw-get install mintty
mkdir ~/src
cd ~/src
wget http://www.apache.org/dist/apr/apr-1.4.8-win32-src.zip
unzip apr-1.4.8-win32-src.zip
rm apr-1.4.8-win32-src.zip
mv apr-* apr
wget http://www.apache.org/dist/apr/apr-iconv-1.2.1-win32-src-r2.zip
unzip apr-iconv-1.2.1-win32-src-r2.zip
rm apr-iconv-1.2.1-win32-src-r2.zip
mv apr-iconv-* apr-iconv
wget http://www.apache.org/dist/apr/apr-util-1.5.2-win32-src.zip
unzip apr-util-1.5.2-win32-src.zip
rm apr-util-1.5.2-win32-src.zip
mv apr-util-* apr-util
wget http://subversion.tigris.org/files/documents/15/20739/svn-win32-libintl.zip
unzip svn-win32-libintl.zip
rm svn-win32-libintl.zip
wget http://www.nasm.us/pub/nasm/releasebuilds/2.10.07/win32/nasm-2.10.07-win32.zip
unzip nasm-2.10.07-win32.zip
rm nasm-2.10.07-win32.zip
mv nasm-* asm
wget http://zlib.net/zlib128.zip
unzip zlib128.zip
rm zlib128.zip
mv zlib-* zlib
wget http://www.openssl.org/source/openssl-1.0.1e.tar.gz
tar xvfz openssl-1.0.1e.tar.gz
rm openssl-1.0.1e.tar.gz
mv openssl-* openssl
wget http://www.sqlite.org/2013/sqlite-amalgamation-3071700.zip
unzip sqlite-amalgamation-3071700.zip
rm sqlite-amalgamation-3071700.zip
mv sqlite-amalgamation-* sqlite-amalgamation
wget --no-check-certificate https://serf.googlecode.com/files/serf-1.2.1.zip
unzip serf-1.2.1.zip
rm serf-1.2.1.zip
wget --no-check-certificate https://serf.googlecode.com/files/serf-0.7.2.tar.gz
tar xvfz serf-0.7.2.tar.gz
rm serf-0.7.2.tar.gz
wget --no-check-certificate https://github.com/wbond/subversion/archive/1.8.x.zip
unzip 1.8.x
rm 1.8.x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment