mirror of https://github.com/aria2/aria2
Update Dockerfile.mingw
parent
385ad3a04c
commit
5546d73322
|
@ -11,7 +11,7 @@
|
||||||
# $ sudo docker cp $id:/aria2/src/aria2c.exe <dest>
|
# $ sudo docker cp $id:/aria2/src/aria2c.exe <dest>
|
||||||
# $ sudo docker rm -v $id
|
# $ sudo docker rm -v $id
|
||||||
|
|
||||||
FROM ubuntu:20.04
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
MAINTAINER Tatsuhiro Tsujikawa
|
MAINTAINER Tatsuhiro Tsujikawa
|
||||||
|
|
||||||
|
@ -30,16 +30,15 @@ RUN apt-get update && \
|
||||||
pkg-config git curl dpkg-dev gcc-mingw-w64 g++-mingw-w64 \
|
pkg-config git curl dpkg-dev gcc-mingw-w64 g++-mingw-w64 \
|
||||||
autopoint libcppunit-dev libxml2-dev libgcrypt20-dev lzip
|
autopoint libcppunit-dev libxml2-dev libgcrypt20-dev lzip
|
||||||
|
|
||||||
RUN curl -L -O https://gmplib.org/download/gmp/gmp-6.2.1.tar.lz && \
|
RUN curl -L -O https://gmplib.org/download/gmp/gmp-6.3.0.tar.xz && \
|
||||||
curl -L -O https://github.com/libexpat/libexpat/releases/download/R_2_4_1/expat-2.4.1.tar.bz2 && \
|
curl -L -O https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.bz2 && \
|
||||||
curl -L -O https://www.sqlite.org/2021/sqlite-autoconf-3360000.tar.gz && \
|
curl -L -O https://www.sqlite.org/2023/sqlite-autoconf-3430100.tar.gz && \
|
||||||
curl -L -O http://zlib.net/zlib-1.2.11.tar.gz && \
|
curl -L -O https://www.zlib.net/zlib-1.3.tar.gz && \
|
||||||
curl -L -O https://c-ares.haxx.se/download/c-ares-1.17.2.tar.gz && \
|
curl -L -O https://c-ares.org/download/c-ares-1.19.1.tar.gz && \
|
||||||
curl -L -O https://www.libssh2.org/download/libssh2-1.9.0.tar.gz && \
|
curl -L -O https://libssh2.org/download/libssh2-1.11.0.tar.bz2
|
||||||
curl -L -O https://github.com/libssh2/libssh2/commit/ba149e804ef653cc05ed9803dfc94519ce9328f7.patch
|
|
||||||
|
|
||||||
RUN tar xf gmp-6.2.1.tar.lz && \
|
RUN tar xf gmp-6.3.0.tar.xz && \
|
||||||
cd gmp-6.2.1 && \
|
cd gmp-6.3.0 && \
|
||||||
./configure \
|
./configure \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
--enable-static \
|
--enable-static \
|
||||||
|
@ -50,8 +49,8 @@ RUN tar xf gmp-6.2.1.tar.lz && \
|
||||||
CFLAGS="-mtune=generic -O2 -g0" && \
|
CFLAGS="-mtune=generic -O2 -g0" && \
|
||||||
make install
|
make install
|
||||||
|
|
||||||
RUN tar xf expat-2.4.1.tar.bz2 && \
|
RUN tar xf expat-2.5.0.tar.bz2 && \
|
||||||
cd expat-2.4.1 && \
|
cd expat-2.5.0 && \
|
||||||
./configure \
|
./configure \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
--enable-static \
|
--enable-static \
|
||||||
|
@ -60,8 +59,8 @@ RUN tar xf expat-2.4.1.tar.bz2 && \
|
||||||
--build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` && \
|
--build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` && \
|
||||||
make install
|
make install
|
||||||
|
|
||||||
RUN tar xf sqlite-autoconf-3360000.tar.gz && \
|
RUN tar xf sqlite-autoconf-3430100.tar.gz && \
|
||||||
cd sqlite-autoconf-3360000 && \
|
cd sqlite-autoconf-3430100 && \
|
||||||
./configure \
|
./configure \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
--enable-static \
|
--enable-static \
|
||||||
|
@ -70,8 +69,8 @@ RUN tar xf sqlite-autoconf-3360000.tar.gz && \
|
||||||
--build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` && \
|
--build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` && \
|
||||||
make install
|
make install
|
||||||
|
|
||||||
RUN tar xf zlib-1.2.11.tar.gz && \
|
RUN tar xf zlib-1.3.tar.gz && \
|
||||||
cd zlib-1.2.11 && \
|
cd zlib-1.3 && \
|
||||||
CC=$HOST-gcc \
|
CC=$HOST-gcc \
|
||||||
AR=$HOST-ar \
|
AR=$HOST-ar \
|
||||||
LD=$HOST-ld \
|
LD=$HOST-ld \
|
||||||
|
@ -84,8 +83,8 @@ RUN tar xf zlib-1.2.11.tar.gz && \
|
||||||
--static && \
|
--static && \
|
||||||
make install
|
make install
|
||||||
|
|
||||||
RUN tar xf c-ares-1.17.2.tar.gz && \
|
RUN tar xf c-ares-1.19.1.tar.gz && \
|
||||||
cd c-ares-1.17.2 && \
|
cd c-ares-1.19.1 && \
|
||||||
./configure \
|
./configure \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
--enable-static \
|
--enable-static \
|
||||||
|
@ -96,9 +95,8 @@ RUN tar xf c-ares-1.17.2.tar.gz && \
|
||||||
LIBS="-lws2_32" && \
|
LIBS="-lws2_32" && \
|
||||||
make install
|
make install
|
||||||
|
|
||||||
RUN tar xf libssh2-1.9.0.tar.gz && \
|
RUN tar xf libssh2-1.11.0.tar.bz2 && \
|
||||||
cd libssh2-1.9.0 && \
|
cd libssh2-1.11.0 && \
|
||||||
patch -p1 < ../ba149e804ef653cc05ed9803dfc94519ce9328f7.patch && \
|
|
||||||
./configure \
|
./configure \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
--enable-static \
|
--enable-static \
|
||||||
|
|
19
README.mingw
19
README.mingw
|
@ -3,22 +3,17 @@ aria2 Windows build
|
||||||
|
|
||||||
aria2 Windows build is provided in 2 flavors: 32bit version and 64bit
|
aria2 Windows build is provided in 2 flavors: 32bit version and 64bit
|
||||||
version. The executable was compiled using mingw-w64 cross compiler on
|
version. The executable was compiled using mingw-w64 cross compiler on
|
||||||
Debian Linux.
|
Ubuntu Linux.
|
||||||
|
|
||||||
* gcc-mingw-w64 10.2.1-6+24.2
|
|
||||||
* g++-mingw-w64 10.2.1-6+24.2
|
|
||||||
* binutils-mingw-w64-i686 2.35.2-2+8.11+b3
|
|
||||||
* binutils-mingw-w64-x86-64 2.35.2-2+8.11+b3
|
|
||||||
|
|
||||||
The executable is statically linked, so no extra DLLs are
|
The executable is statically linked, so no extra DLLs are
|
||||||
necessary. The linked libraries are:
|
necessary. The linked libraries are:
|
||||||
|
|
||||||
* gmp 6.2.1
|
* gmp 6.3.0
|
||||||
* expat 2.4.1
|
* expat 2.5.0
|
||||||
* sqlite 3.36.0
|
* sqlite 3.43.1
|
||||||
* zlib 1.2.11
|
* zlib 1.3
|
||||||
* c-ares 1.17.2
|
* c-ares 1.19.1
|
||||||
* libssh2 1.9.0 (+ https://github.com/libssh2/libssh2/commit/ba149e804ef653cc05ed9803dfc94519ce9328f7.patch)
|
* libssh2 1.11.0
|
||||||
|
|
||||||
This build has the following difference from the original release:
|
This build has the following difference from the original release:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue