mirror of https://github.com/aria2/aria2
Include gmp 6.1.0 patch
parent
e8bd019570
commit
afccc903b9
|
@ -11,7 +11,7 @@
|
|||
# $ sudo docker cp $id:/aria2/src/aria2c.exe <dest>
|
||||
# $ sudo docker rm -v $id
|
||||
|
||||
FROM ubuntu
|
||||
FROM ubuntu:wily
|
||||
|
||||
MAINTAINER Tatsuhiro Tsujikawa
|
||||
|
||||
|
@ -22,20 +22,23 @@ ENV HOST i686-w64-mingw32
|
|||
# downloads.
|
||||
# RUN sed -ie 's/archive\.ubuntu/jp.archive.ubuntu/g' /etc/apt/sources.list
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y make binutils autoconf automake autotools-dev libtool \
|
||||
RUN apt-get update && \
|
||||
apt-get install -y \
|
||||
make binutils autoconf automake autotools-dev libtool \
|
||||
pkg-config git curl dpkg-dev gcc-mingw-w64 \
|
||||
autopoint libcppunit-dev libxml2-dev libgcrypt11-dev lzip
|
||||
|
||||
RUN curl -L -O https://gmplib.org/download/gmp/gmp-6.1.0.tar.lz
|
||||
RUN curl -L -O http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
|
||||
RUN curl -L -O http://www.sqlite.org/2016/sqlite-autoconf-3100200.tar.gz
|
||||
RUN curl -L -O http://zlib.net/zlib-1.2.8.tar.xz
|
||||
RUN curl -L -O http://c-ares.haxx.se/download/c-ares-1.10.0.tar.gz
|
||||
RUN curl -L -O http://libssh2.org/download/libssh2-1.6.0.tar.gz
|
||||
RUN curl -L -O https://gmplib.org/download/gmp/gmp-6.1.0.tar.lz && \
|
||||
curl -L -o gmp-6.1.0.patch https://gmplib.org/repo/gmp-6.1/raw-rev/67d4ee9dead1 && \
|
||||
curl -L -O http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz && \
|
||||
curl -L -O https://www.sqlite.org/2016/sqlite-autoconf-3120100.tar.gz && \
|
||||
curl -L -O http://zlib.net/zlib-1.2.8.tar.xz && \
|
||||
curl -L -O http://c-ares.haxx.se/download/c-ares-1.11.0.tar.gz && \
|
||||
curl -L -O http://libssh2.org/download/libssh2-1.7.0.tar.gz
|
||||
|
||||
RUN tar xf gmp-6.1.0.tar.lz
|
||||
RUN cd gmp-6.1.0 && \
|
||||
RUN tar xf gmp-6.1.0.tar.lz && \
|
||||
cd gmp-6.1.0 && \
|
||||
patch -p1 < ../gmp-6.1.0.patch && \
|
||||
./configure \
|
||||
--disable-shared \
|
||||
--enable-static \
|
||||
|
@ -46,8 +49,8 @@ RUN cd gmp-6.1.0 && \
|
|||
CFLAGS="-mtune=generic -O2 -g0" && \
|
||||
make install
|
||||
|
||||
RUN tar xf expat-2.1.0.tar.gz
|
||||
RUN cd expat-2.1.0 && \
|
||||
RUN tar xf expat-2.1.0.tar.gz && \
|
||||
cd expat-2.1.0 && \
|
||||
./configure \
|
||||
--disable-shared \
|
||||
--enable-static \
|
||||
|
@ -56,8 +59,8 @@ RUN cd expat-2.1.0 && \
|
|||
--build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` && \
|
||||
make install
|
||||
|
||||
RUN tar xf sqlite-autoconf-3100200.tar.gz
|
||||
RUN cd sqlite-autoconf-3100200 && \
|
||||
RUN tar xf sqlite-autoconf-3120100.tar.gz && \
|
||||
cd sqlite-autoconf-3120100 && \
|
||||
./configure \
|
||||
--disable-shared \
|
||||
--enable-static \
|
||||
|
@ -66,8 +69,8 @@ RUN cd sqlite-autoconf-3100200 && \
|
|||
--build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` && \
|
||||
make install
|
||||
|
||||
RUN tar xf zlib-1.2.8.tar.xz
|
||||
RUN cd zlib-1.2.8 && \
|
||||
RUN tar xf zlib-1.2.8.tar.xz && \
|
||||
cd zlib-1.2.8 && \
|
||||
CC=$HOST-gcc \
|
||||
AR=$HOST-ar \
|
||||
LD=$HOST-ld \
|
||||
|
@ -80,8 +83,8 @@ RUN cd zlib-1.2.8 && \
|
|||
--static && \
|
||||
make install
|
||||
|
||||
RUN tar xf c-ares-1.10.0.tar.gz
|
||||
RUN cd c-ares-1.10.0 && \
|
||||
RUN tar xf c-ares-1.11.0.tar.gz && \
|
||||
cd c-ares-1.11.0 && \
|
||||
./configure \
|
||||
--disable-shared \
|
||||
--enable-static \
|
||||
|
@ -92,8 +95,8 @@ RUN cd c-ares-1.10.0 && \
|
|||
LIBS="-lws2_32" && \
|
||||
make install
|
||||
|
||||
RUN tar xf libssh2-1.6.0.tar.gz
|
||||
RUN cd libssh2-1.6.0 && \
|
||||
RUN tar xf libssh2-1.7.0.tar.gz && \
|
||||
cd libssh2-1.7.0 && \
|
||||
./configure \
|
||||
--disable-shared \
|
||||
--enable-static \
|
||||
|
@ -105,6 +108,6 @@ RUN cd libssh2-1.6.0 && \
|
|||
LIBS="-lws2_32" && \
|
||||
make install
|
||||
|
||||
RUN git clone https://github.com/aria2/aria2
|
||||
RUN cd aria2 && autoreconf -i && ./mingw-config && make && \
|
||||
RUN git clone https://github.com/aria2/aria2 && \
|
||||
cd aria2 && autoreconf -i && ./mingw-config && make && \
|
||||
$HOST-strip src/aria2c.exe
|
||||
|
|
Loading…
Reference in New Issue