From 5631144e387bfa50d39dd9b60dde260e058c9019 Mon Sep 17 00:00:00 2001 From: clamsawd Date: Mon, 5 Oct 2015 20:30:26 +0200 Subject: [PATCH] Added build-scripts for MinGW & GNU-Linux --- .../aria2-i386-gnu-linux-cross-build-libs | 109 +++++++++++++++++ .../aria2-i386-gnu-linux-cross-config | 25 ++++ .../aria2-x86_64-gnu-linux-build-libs | 105 ++++++++++++++++ .../aria2-x86_64-gnu-linux-config | 20 ++++ .../aria2-i686-w64-mingw-build-libs | 112 ++++++++++++++++++ .../mingw-config/aria2-i686-w64-mingw-config | 36 ++++++ .../aria2-i686-w64-mingw-xp-config | 35 ++++++ .../aria2-x86_64-w64-mingw-build-libs | 111 +++++++++++++++++ .../aria2-x86_64-w64-mingw-config | 36 ++++++ 9 files changed, 589 insertions(+) create mode 100755 build-scripts/gnu-linux-config/aria2-i386-gnu-linux-cross-build-libs create mode 100755 build-scripts/gnu-linux-config/aria2-i386-gnu-linux-cross-config create mode 100755 build-scripts/gnu-linux-config/aria2-x86_64-gnu-linux-build-libs create mode 100755 build-scripts/gnu-linux-config/aria2-x86_64-gnu-linux-config create mode 100755 build-scripts/mingw-config/aria2-i686-w64-mingw-build-libs create mode 100755 build-scripts/mingw-config/aria2-i686-w64-mingw-config create mode 100755 build-scripts/mingw-config/aria2-i686-w64-mingw-xp-config create mode 100755 build-scripts/mingw-config/aria2-x86_64-w64-mingw-build-libs create mode 100755 build-scripts/mingw-config/aria2-x86_64-w64-mingw-config diff --git a/build-scripts/gnu-linux-config/aria2-i386-gnu-linux-cross-build-libs b/build-scripts/gnu-linux-config/aria2-i386-gnu-linux-cross-build-libs new file mode 100755 index 0000000..3b260f7 --- /dev/null +++ b/build-scripts/gnu-linux-config/aria2-i386-gnu-linux-cross-build-libs @@ -0,0 +1,109 @@ +#!/bin/bash + +# In this configuration, the following dependent libraries are compiled: +# +# * zlib +# * c-ares +# * expat +# * sqlite3 +# * openSSL +# * libgcrypt +# * libssh2 + +#IMPORTANT: Require install gcc-multilib g++-multilib libc6-dev-i386 +#COMPILER AND PATH +PREFIX=/opt/aria2-i386/build_libs +C_COMPILER="gcc" +CXX_COMPILER="g++" + +## DEPENDENCES ## +ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.gz +OPENSSL=http://www.openssl.org/source/openssl-1.0.2d.tar.gz +EXPAT=http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz +SQLITE3=https://www.sqlite.org/2015/sqlite-autoconf-3081101.tar.gz +C_ARES=http://c-ares.haxx.se/download/c-ares-1.10.0.tar.gz +SSH2=http://www.libssh2.org/download/libssh2-1.6.0.tar.gz +GCRYPT=ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.3.tar.gz + +## CONFIG ## +BUILD_DIRECTORY=/tmp/ + +## BUILD ## +cd $BUILD_DIRECTORY +export CFLAGS="-m32" +export CXXFLAGS="-m32" +export LDFLAGS="-m32" +# + # zlib build + wget -c $ZLIB + tar zxvf zlib-1.2.8.tar.gz + cd zlib-1.2.8/ + CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --static + make + make install +# + # expat build + cd .. + wget -c $EXPAT + tar zxvf expat-2.1.0.tar.gz + cd expat-2.1.0/ + CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --enable-static --disable-shared + make + make install +# + # c-ares build + cd .. + wget -c $C_ARES + tar zxvf c-ares-1.10.0.tar.gz + cd c-ares-1.10.0/ + CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --enable-static --disable-shared + make + make install +# + # Openssl build + cd .. + wget -c $OPENSSL + tar zxvf openssl-1.0.2d.tar.gz + cd openssl-1.0.2d/ + CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./Configure --prefix=$PREFIX linux-elf + make + make install +# + # sqlite3 + cd .. + wget -c $SQLITE3 + tar zxvf sqlite-autoconf-3081101.tar.gz + cd sqlite-autoconf-3081101/ + CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --enable-static --disable-shared + make + make install +# + # libgcrypt + cd .. + wget -c $GCRYPT + tar zxvf libgcrypt-1.6.3.tar.gz + cd libgcrypt-1.6.3/ + CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --host=i386-unknown-linux-gnu --prefix=$PREFIX --enable-static --disable-shared + make + make install +# + # libssh2 + cd .. + wget -c $SSH2 + tar zxvf libssh2-1.6.0.tar.gz + cd libssh2-1.6.0/ + CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --with-libgcrypt -without-openssl --prefix=$PREFIX --enable-static --disable-shared + make + make install +# + #cleaning + cd .. + rm -rf c-ares* + rm -rf sqlite-autoconf* + rm -rf zlib-* + rm -rf expat-* + rm -rf openssl-* + rm -rf libssh2-* + rm -rf libgcrypt-* +# + echo "finished!" diff --git a/build-scripts/gnu-linux-config/aria2-i386-gnu-linux-cross-config b/build-scripts/gnu-linux-config/aria2-i386-gnu-linux-cross-config new file mode 100755 index 0000000..3193ec9 --- /dev/null +++ b/build-scripts/gnu-linux-config/aria2-i386-gnu-linux-cross-config @@ -0,0 +1,25 @@ +#!/bin/bash + +# In this configuration, the following dependent libraries are used: +# +# * zlib +# * c-ares +# * expat +# * sqlite3 +# * openSSL +# * libssh2 + +#IMPORTANT: Require install gcc-multilib g++-multilib libc6-dev-i386 +#COMPILER AND PATH +PREFIX=/opt/aria2-i386 +C_COMPILER="gcc" +CXX_COMPILER="g++" + +## BUILD ## +export CFLAGS="-m32" +export CXXFLAGS="-m32" +export LDFLAGS="-m32" + +CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=/opt/aria2-i386/build_libs/lib/pkgconfig/ LD_LIBRARY_PATH=/opt/aria2-i386/build_libs/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --without-libxml2 --without-libgcrypt --with-openssl --without-libnettle --without-gnutls --with-libssh2 --without-libgmp --with-sqlite3 --with-ca-bundle='/etc/ssl/certs/ca-certificates.crt' ARIA2_STATIC=yes --enable-shared=no + + diff --git a/build-scripts/gnu-linux-config/aria2-x86_64-gnu-linux-build-libs b/build-scripts/gnu-linux-config/aria2-x86_64-gnu-linux-build-libs new file mode 100755 index 0000000..ba6bf4f --- /dev/null +++ b/build-scripts/gnu-linux-config/aria2-x86_64-gnu-linux-build-libs @@ -0,0 +1,105 @@ +#!/bin/bash + +# In this configuration, the following dependent libraries are compiled: +# +# * zlib +# * c-ares +# * expat +# * sqlite3 +# * openSSL +# * libgcrypt +# * libssh2 + +#COMPILER AND PATH +PREFIX=/opt/aria2/build_libs +C_COMPILER="gcc" +CXX_COMPILER="g++" + +## DEPENDENCES ## +ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.gz +OPENSSL=http://www.openssl.org/source/openssl-1.0.2d.tar.gz +EXPAT=http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz +SQLITE3=https://www.sqlite.org/2015/sqlite-autoconf-3081101.tar.gz +C_ARES=http://c-ares.haxx.se/download/c-ares-1.10.0.tar.gz +SSH2=http://www.libssh2.org/download/libssh2-1.6.0.tar.gz +GCRYPT=ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.3.tar.gz + +## CONFIG ## +BUILD_DIRECTORY=/tmp/ + +## BUILD ## +cd $BUILD_DIRECTORY +# + # zlib build + wget -c $ZLIB + tar zxvf zlib-1.2.8.tar.gz + cd zlib-1.2.8/ + PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --static + make + make install +# + # expat build + cd .. + wget -c $EXPAT + tar zxvf expat-2.1.0.tar.gz + cd expat-2.1.0/ + PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --enable-static --disable-shared + make + make install +# + # c-ares build + cd .. + wget -c $C_ARES + tar zxvf c-ares-1.10.0.tar.gz + cd c-ares-1.10.0/ + PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --enable-static --disable-shared + make + make install +# + # Openssl build + cd .. + wget -c $OPENSSL + tar zxvf openssl-1.0.2d.tar.gz + cd openssl-1.0.2d/ + PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./Configure --prefix=$PREFIX linux-x86_64 + make + make install +# + # sqlite3 + cd .. + wget -c $SQLITE3 + tar zxvf sqlite-autoconf-3081101.tar.gz + cd sqlite-autoconf-3081101/ + PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --enable-static --disable-shared + make + make install +# + # libgcrypt + cd .. + wget -c $GCRYPT + tar zxvf libgcrypt-1.6.3.tar.gz + cd libgcrypt-1.6.3/ + PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --enable-static --disable-shared + make + make install +# + # libssh2 + cd .. + wget -c $SSH2 + tar zxvf libssh2-1.6.0.tar.gz + cd libssh2-1.6.0/ + PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --with-libgcrypt -without-openssl --prefix=$PREFIX --enable-static --disable-shared + make + make install +# + #cleaning + cd .. + rm -rf c-ares* + rm -rf sqlite-autoconf* + rm -rf zlib-* + rm -rf expat-* + rm -rf openssl-* + rm -rf libssh2-* + rm -rf libgcrypt-* +# + echo "finished!" diff --git a/build-scripts/gnu-linux-config/aria2-x86_64-gnu-linux-config b/build-scripts/gnu-linux-config/aria2-x86_64-gnu-linux-config new file mode 100755 index 0000000..128b529 --- /dev/null +++ b/build-scripts/gnu-linux-config/aria2-x86_64-gnu-linux-config @@ -0,0 +1,20 @@ +#!/bin/bash + +# In this configuration, the following dependent libraries are used: +# +# * zlib +# * c-ares +# * expat +# * sqlite3 +# * openSSL +# * libssh2 + +#COMPILER AND PATH +PREFIX=/opt/aria2 +C_COMPILER="gcc" +CXX_COMPILER="g++" + +## BUILD ## +PKG_CONFIG_PATH=/opt/aria2/build_libs/lib/pkgconfig/ LD_LIBRARY_PATH=/opt/aria2/build_libs/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --without-libxml2 --without-libgcrypt --with-openssl --without-libnettle --without-gnutls --without-libgmp --with-libssh2 --with-sqlite3 --with-ca-bundle='/etc/ssl/certs/ca-certificates.crt' ARIA2_STATIC=yes --enable-shared=no + + diff --git a/build-scripts/mingw-config/aria2-i686-w64-mingw-build-libs b/build-scripts/mingw-config/aria2-i686-w64-mingw-build-libs new file mode 100755 index 0000000..305d40e --- /dev/null +++ b/build-scripts/mingw-config/aria2-i686-w64-mingw-build-libs @@ -0,0 +1,112 @@ +#!/bin/bash + +# In this configuration, the following dependent libraries are compiled: +# +# * zlib +# * c-ares +# * expat +# * sqlite3 +# * openSSL +# * libssh2 + +## DEPENDENCES ## +ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.gz +OPENSSL=http://www.openssl.org/source/openssl-1.0.2d.tar.gz +#GMPLIB=https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2 +EXPAT=http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz +SQLITE3=https://www.sqlite.org/2015/sqlite-autoconf-3081101.tar.gz +C_ARES=http://c-ares.haxx.se/download/c-ares-1.10.0.tar.gz +#CPPUNIT=http://dev-www.libreoffice.org/src/cppunit-1.13.2.tar.gz +SSH2=http://www.libssh2.org/download/libssh2-1.6.0.tar.gz + +## CONFIG ## +BUILD_DIRECTORY=/tmp/ +HOST=i686-w64-mingw32 +PREFIX=/usr/i686-w64-mingw32 + +## BUILD ## +cd $BUILD_DIRECTORY +# + # zlib build + wget -c $ZLIB + tar zxvf zlib-1.2.8.tar.gz + cd zlib-1.2.8/ + CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --static + make + make install +# + # expat build + cd .. + wget -c $EXPAT + tar zxvf expat-2.1.0.tar.gz + cd expat-2.1.0/ + CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared + make + make install +# + # cppunit build + #cd .. + #wget -c $CPPUNIT + #tar zxvf cppunit-1.13.2.tar.gz + #cd cppunit-1.13.2/ + #CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared + #make + #make install +# + # c-ares build + cd .. + wget -c $C_ARES + tar zxvf c-ares-1.10.0.tar.gz + cd c-ares-1.10.0/ + CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared + make + make install +# + # GMPlib build + #cd .. + #wget -c $GMPLIB + #tar jxvf gmp-6.0.0a.tar.bz2 + #cd gmp-6.0.0/ + #CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared + #make + #make install +# + # Openssl build + cd .. + wget -c $OPENSSL + tar zxvf openssl-1.0.2d.tar.gz + cd openssl-1.0.2d/ + ./Configure mingw --cross-compile-prefix=$HOST- --prefix=$PREFIX + make + make install +# + # sqlite3 + cd .. + wget -c $SQLITE3 + tar zxvf sqlite-autoconf-3081101.tar.gz + cd sqlite-autoconf-3081101/ + CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared + make + make install +# + # libssh2 + cd .. + wget -c $SSH2 + tar zxvf libssh2-1.6.0.tar.gz + cd libssh2-1.6.0/ + CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared + make + make install +# + #cleaning + cd .. + rm -rf c-ares* + rm -rf sqlite-autoconf* + rm -rf zlib-* + rm -rf expat-* + rm -rf gmp-* + rm -rf libssh2-* + rm -rf cppunit-* +# + echo "finished!" + diff --git a/build-scripts/mingw-config/aria2-i686-w64-mingw-config b/build-scripts/mingw-config/aria2-i686-w64-mingw-config new file mode 100755 index 0000000..1fd0cef --- /dev/null +++ b/build-scripts/mingw-config/aria2-i686-w64-mingw-config @@ -0,0 +1,36 @@ +#!/bin/bash + +# In this configuration, the following dependent libraries are used: +# +# * zlib +# * c-ares +# * expat +# * sqlite3 +# * openSSL +# * libssh2 + +HOST=i686-w64-mingw32 +PREFIX=/usr/i686-w64-mingw32 + +./configure \ + --host=$HOST \ + --prefix=$PREFIX \ + --without-included-gettext \ + --disable-nls \ + --with-libcares \ + --without-gnutls \ + --without-wintls \ + --with-openssl \ + --with-sqlite3 \ + --without-libxml2 \ + --with-libexpat \ + --with-libz \ + --without-libgmp \ + --with-libssh2 \ + --without-libgcrypt \ + --without-libnettle \ + --with-cppunit-prefix=$PREFIX \ + ARIA2_STATIC=yes \ + CPPFLAGS="-I$PREFIX/include" \ + LDFLAGS="-L$PREFIX/lib" \ + PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig" diff --git a/build-scripts/mingw-config/aria2-i686-w64-mingw-xp-config b/build-scripts/mingw-config/aria2-i686-w64-mingw-xp-config new file mode 100755 index 0000000..bf75330 --- /dev/null +++ b/build-scripts/mingw-config/aria2-i686-w64-mingw-xp-config @@ -0,0 +1,35 @@ +#!/bin/bash + +# In this configuration, the following dependent libraries are used: +# +# * zlib +# * c-ares +# * expat +# * sqlite3 +# * openSSL + +HOST=i686-w64-mingw32 +PREFIX=/usr/i686-w64-mingw32 + +./configure \ + --host=$HOST \ + --prefix=$PREFIX \ + --without-included-gettext \ + --disable-nls \ + --with-libcares \ + --without-gnutls \ + --without-wintls \ + --with-openssl \ + --with-sqlite3 \ + --without-libxml2 \ + --with-libexpat \ + --with-libz \ + --without-libgmp \ + --without-libssh2 \ + --without-libgcrypt \ + --without-libnettle \ + --with-cppunit-prefix=$PREFIX \ + ARIA2_STATIC=yes \ + CPPFLAGS="-I$PREFIX/include" \ + LDFLAGS="-L$PREFIX/lib" \ + PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig" diff --git a/build-scripts/mingw-config/aria2-x86_64-w64-mingw-build-libs b/build-scripts/mingw-config/aria2-x86_64-w64-mingw-build-libs new file mode 100755 index 0000000..69c5c1b --- /dev/null +++ b/build-scripts/mingw-config/aria2-x86_64-w64-mingw-build-libs @@ -0,0 +1,111 @@ +#!/bin/bash + +# In this configuration, the following dependent libraries are compiled: +# +# * zlib +# * c-ares +# * expat +# * sqlite3 +# * openSSL +# * libssh2 + +## DEPENDENCES ## +ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.gz +OPENSSL=http://www.openssl.org/source/openssl-1.0.2d.tar.gz +#GMPLIB=https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2 +EXPAT=http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz +SQLITE3=https://www.sqlite.org/2015/sqlite-autoconf-3081101.tar.gz +C_ARES=http://c-ares.haxx.se/download/c-ares-1.10.0.tar.gz +#CPPUNIT=http://dev-www.libreoffice.org/src/cppunit-1.13.2.tar.gz +SSH2=http://www.libssh2.org/download/libssh2-1.6.0.tar.gz + +## CONFIG ## +BUILD_DIRECTORY=/tmp/ +HOST=x86_64-w64-mingw32 +PREFIX=/usr/x86_64-w64-mingw32 + +## BUILD ## +cd $BUILD_DIRECTORY +# + # zlib build + wget -c $ZLIB + tar zxvf zlib-1.2.8.tar.gz + cd zlib-1.2.8/ + CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --static + make + make install +# + # expat build + cd .. + wget -c $EXPAT + tar zxvf expat-2.1.0.tar.gz + cd expat-2.1.0/ + CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared + make + make install +# + # cppunit build + #cd .. + #wget -c $CPPUNIT + #tar zxvf cppunit-1.13.2.tar.gz + #cd cppunit-1.13.2/ + #CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared + #make + #make install +# + # c-ares build + cd .. + wget -c $C_ARES + tar zxvf c-ares-1.10.0.tar.gz + cd c-ares-1.10.0/ + CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared + make + make install +# + # GMPlib build + #cd .. + #wget -c $GMPLIB + #tar jxvf gmp-6.0.0a.tar.bz2 + #cd gmp-6.0.0/ + #CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared + #make + #make install +# + # Openssl build + cd .. + wget -c $OPENSSL + tar zxvf openssl-1.0.2d.tar.gz + cd openssl-1.0.2d/ + ./Configure mingw64 --cross-compile-prefix=$HOST- --prefix=$PREFIX + make + make install +# + # sqlite3 + cd .. + wget -c $SQLITE3 + tar zxvf sqlite-autoconf-3081101.tar.gz + cd sqlite-autoconf-3081101/ + CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared + make + make install +# + # libssh2 + cd .. + wget -c $SSH2 + tar zxvf libssh2-1.6.0.tar.gz + cd libssh2-1.6.0/ + CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared + make + make install +# + #cleaning + cd .. + rm -rf c-ares* + rm -rf sqlite-autoconf* + rm -rf zlib-* + rm -rf expat-* + rm -rf gmp-* + rm -rf libssh2-* + rm -rf cppunit-* +# + echo "finished!" diff --git a/build-scripts/mingw-config/aria2-x86_64-w64-mingw-config b/build-scripts/mingw-config/aria2-x86_64-w64-mingw-config new file mode 100755 index 0000000..4f19103 --- /dev/null +++ b/build-scripts/mingw-config/aria2-x86_64-w64-mingw-config @@ -0,0 +1,36 @@ +#!/bin/bash + +# In this configuration, the following dependent libraries are used: +# +# * zlib +# * c-ares +# * expat +# * sqlite3 +# * openSSL +# * libssh2 + +HOST=x86_64-w64-mingw32 +PREFIX=/usr/x86_64-w64-mingw32 + +./configure \ + --host=$HOST \ + --prefix=$PREFIX \ + --without-included-gettext \ + --disable-nls \ + --with-libcares \ + --without-gnutls \ + --without-wintls \ + --with-openssl \ + --with-sqlite3 \ + --without-libxml2 \ + --with-libexpat \ + --with-libz \ + --without-libgmp \ + --with-libssh2 \ + --without-libgcrypt \ + --without-libnettle \ + --with-cppunit-prefix=$PREFIX \ + ARIA2_STATIC=yes \ + CPPFLAGS="-I$PREFIX/include" \ + LDFLAGS="-L$PREFIX/lib" \ + PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig"