2015-10-05 20:30:26 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# In this configuration, the following dependent libraries are used:
|
|
|
|
#
|
|
|
|
# * zlib
|
|
|
|
# * c-ares
|
|
|
|
# * expat
|
|
|
|
# * sqlite3
|
|
|
|
# * openSSL
|
|
|
|
# * libssh2
|
|
|
|
|
|
|
|
#COMPILER AND PATH
|
2016-02-18 21:45:13 +01:00
|
|
|
PREFIX=/usr
|
2015-10-05 20:30:26 +02:00
|
|
|
C_COMPILER="gcc"
|
|
|
|
CXX_COMPILER="g++"
|
|
|
|
|
|
|
|
## BUILD ##
|
2015-10-17 16:56:58 +02:00
|
|
|
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
|