Commit 71b74d96 authored by Frederick Zhang's avatar Frederick Zhang
Browse files

libiconv libstringgrep libidn libidn2

parent dd4dbddd
FROM debian:jessie
RUN apt-get update
RUN apt-get -y dist-upgrade
RUN apt-get -y install curl unzip autoconf build-essential pkg-config cmake mingw-w64
RUN apt-get -qq update
RUN apt-get -qq -y dist-upgrade
RUN apt-get -qq -y install autoconf build-essential pkg-config cmake libtool mingw-w64
RUN apt-get -qq -y install curl unzip python wget
ADD . /apps
# LIBGW32C
#WORKDIR /builds
#RUN curl -O -L -J http://gnuwin32.sourceforge.net/downlinks/libgw32c-src-zip.php
#RUN unzip $(ls libgw32c*.zip) -d libgw32c
#WORKDIR /builds/libgw32c/src/libgw32c/0.4/libgw32c-0.4
# MINGW-CATGETS
#WORKDIR /builds
#RUN curl -O -L -J https://sourceforge.net/projects/mingw/files/MinGW/Extension/catgets/mingw-catgets-1.0.1/mingw-catgets-1.0.1-src.tar.gz/download
#RUN tar xf mingw-catgets-1.0.1-src.tar.gz
#WORKDIR /builds/mingw-catgets-1.0.1
#RUN patch catopen.c /apps/patches/mingw-catgets-catopen-20170123.diff
#RUN ./configure --host=x86_64-w64-mingw32 --prefix=/usr/x86_64-w64-mingw32
#RUN make && make install
# ZLIB
WORKDIR /builds
RUN curl -O -J http://www.zlib.net/zlib-1.2.11.tar.gz
......@@ -20,6 +36,7 @@ RUN curl -O -J https://www.openssl.org/source/openssl-1.1.0c.tar.gz
RUN tar xf openssl-1.1.0c.tar.gz
WORKDIR /builds/openssl-1.1.0c
RUN CROSS_COMPILE="x86_64-w64-mingw32-" ./Configure -DHAVE_STRUCT_TIMESPEC -lz -lws2_32 zlib mingw64 no-shared --prefix=/usr/x86_64-w64-mingw32
RUN make depend
RUN make && make install
# SQLITE3
......@@ -38,6 +55,87 @@ WORKDIR /builds/libssh2-1.8.0
RUN LIBS="-lgdi32 -lcrypt32" ./configure --with-openssl --with-libz --prefix=/usr/x86_64-w64-mingw32 --host=x86_64-w64-mingw32
RUN make && make install
# LIBUNISTRING
WORKDIR /builds
RUN curl -O -J http://ftp.gnu.org/gnu/libunistring/libunistring-0.9.7.tar.xz
RUN tar xf libunistring-0.9.7.tar.xz
WORKDIR /builds/libunistring-0.9.7
RUN ./configure --enable-threads=windows --host=x86_64-w64-mingw32 --prefix=/usr/x86_64-w64-mingw32
RUN make && make install
# LIBICONV
WORKDIR /builds
RUN curl -O -J http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
RUN tar xf libiconv-1.14.tar.gz
WORKDIR /builds/libiconv-1.14
RUN ./configure --enable-extra-encodings --host=x86_64-w64-mingw32 --prefix=/usr/x86_64-w64-mingw32
RUN make && make install
# LIBSTRINGGREP
WORKDIR /builds
RUN curl -O -J https://alpha.gnu.org/gnu/libidn/libstringprep-0.0.8.tar.gz
RUN tar xf libstringprep-0.0.8.tar.gz
WORKDIR /builds/libstringprep-0.0.8
RUN ./configure --host=x86_64-w64-mingw32 --prefix=/usr/x86_64-w64-mingw32
RUN make && make install
# LIBIDN
WORKDIR /builds
RUN curl -O -J https://alpha.gnu.org/gnu/libidn/libidn-1.17.tar.gz
RUN tar xf libidn-1.17.tar.gz
WORKDIR /builds/libidn-1.17
RUN ./configure --host=x86_64-w64-mingw32 --prefix=/usr/x86_64-w64-mingw32
RUN make && make install
# LIBIDN2
# 0.11 is the latest compilable version
WORKDIR /builds
RUN curl -O -J https://alpha.gnu.org/gnu/libidn/libidn2-0.11.tar.gz
RUN tar xf libidn2-0.11.tar.gz
WORKDIR /builds/libidn2-0.11
RUN ./configure --host=x86_64-w64-mingw32 --prefix=/usr/x86_64-w64-mingw32
RUN make && make install
# LIBPSL
#WORKDIR /builds
#RUN curl -O -L -J curl -O -L -J https://github.com/rockdaboot/libpsl/releases/download/libpsl-0.17.0/libpsl-0.17.0.tar.gz
#RUN tar xf libpsl-0.17.0.tar.gz
#WORKDIR /builds/libpsl-0.17.0
# CURL
# to be improved
#WORKDIR /builds
#RUN curl -O -J https://curl.haxx.se/download/curl-7.49.1.tar.gz
#WORKDIR /builds/curl-7.49.1
#RUN ./configure --prefix=/usr/x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --enable-optimize \
# --with-ssl=/usr/x86_64-w64-mingw32 \
# --with-gssapi \
# --enable-tls-srp \
# --with-winidn \
# --with-nghttp2 \
# --with-libmetalink \
# --enable-http \
# --enable-ftp \
# --enable-file \
# --enable-ldap \
# --enable-ldaps \
# --enable-rtsp \
# --enable-proxy \
# --enable-dict \
# --enable-telnet \
# --enable-tftp \
# --enable-pop3 \
# --enable-imap \
# --enable-smb \
# --enable-smtp \
# --enable-gopher \
# --enable-manual \
# --enable-ipv6 \
# --enable-sspi \
# --enable-cookies
#RUN make && make install
# RUST NIGHTLY (LEAVE ME AT THE END)
WORKDIR /builds
RUN curl https://sh.rustup.rs -o rust-init
......
72c72
< void *mc_realloc( void *ptr, unsigned size )
---
> void *mc_realloc( void *ptr, size_t size )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment