Commit 7bb0b916 authored by Frederick Zhang's avatar Frederick Zhang
Browse files

add scripts and patches to /builds

parent cfd88b38
......@@ -7,70 +7,74 @@ RUN apt-get -qq -y install curl unzip python wget
RUN mkdir /builds
#ADD scripts/libgw32c-0.4.sh /apps/scripts/libgw32c-0.4.sh
#RUN /apps/scripts/libgw32c-0.4.sh >> /apps/build_stdout.log
RUN rm -rf /builds && mkdir /builds
#ADD scripts/libgw32c-0.4.sh /builds/scripts/libgw32c-0.4.sh
#RUN /builds/scripts/libgw32c-0.4.sh >> /apps/build_stdout.log
#RUN rm -rf /builds && mkdir /builds
#ADD scripts/mingw-catgets-1.0.1.sh /apps/scripts/mingw-catgets-1.0.1.sh
#RUN /apps/scripts/mingw-catgets-1.0.1.sh >> /apps/build_stdout.log
RUN rm -rf /builds && mkdir /builds
#ADD patches/mingw-catgets-catopen-20170123.diff /builds/patches/mingw-catgets-catopen-20170123.diff
#ADD scripts/mingw-catgets-1.0.1.sh /builds/scripts/mingw-catgets-1.0.1.sh
#RUN /builds/scripts/mingw-catgets-1.0.1.sh >> /apps/build_stdout.log
#RUN rm -rf /builds && mkdir /builds
ADD scripts/zlib-1.2.11.sh /apps/scripts/zlib-1.2.11.sh
RUN /apps/scripts/zlib-1.2.11.sh >> /apps/build_stdout.log
ADD scripts/zlib-1.2.11.sh /builds/scripts/zlib-1.2.11.sh
RUN /builds/scripts/zlib-1.2.11.sh >> /apps/build_stdout.log
RUN rm -rf /builds && mkdir /builds
#ADD scripts/openssl-1.1.0c.sh /apps/scripts/openssl-1.1.0c.sh
#RUN /apps/scripts/openssl-1.1.0c.sh >> /apps/build_stdout.log
ADD scripts/openssl-1.0.2j.sh /apps/scripts/openssl-1.0.2j.sh
RUN /apps/scripts/openssl-1.0.2j.sh >> /apps/build_stdout.log
#ADD scripts/openssl-1.1.0c.sh /builds/scripts/openssl-1.1.0c.sh
#RUN /builds/scripts/openssl-1.1.0c.sh >> /apps/build_stdout.log
ADD scripts/openssl-1.0.2j.sh /builds/scripts/openssl-1.0.2j.sh
RUN /builds/scripts/openssl-1.0.2j.sh >> /apps/build_stdout.log
RUN rm -rf /builds && mkdir /builds
ADD scripts/bzip2-1.0.6.sh /apps/scripts/bzip2-1.0.6.sh
RUN /apps/scripts/bzip2-1.0.6.sh >> /apps/build_stdout.log
ADD patches/bzip2 /builds/patches/bzip2
ADD scripts/bzip2-1.0.6.sh /builds/scripts/bzip2-1.0.6.sh
RUN /builds/scripts/bzip2-1.0.6.sh >> /apps/build_stdout.log
RUN rm -rf /builds && mkdir /builds
ADD scripts/sqlite-autoconf-3160200.sh /apps/scripts/sqlite-autoconf-3160200.sh
RUN /apps/scripts/sqlite-autoconf-3160200.sh >> /apps/build_stdout.log
ADD scripts/sqlite-autoconf-3160200.sh /builds/scripts/sqlite-autoconf-3160200.sh
RUN /builds/scripts/sqlite-autoconf-3160200.sh >> /apps/build_stdout.log
RUN rm -rf /builds && mkdir /builds
ADD scripts/libssh2-1.8.0.sh /apps/scripts/libssh2-1.8.0.sh
RUN /apps/scripts/libssh2-1.8.0.sh >> /apps/build_stdout.log
ADD scripts/libssh2-1.8.0.sh /builds/scripts/libssh2-1.8.0.sh
RUN /builds/scripts/libssh2-1.8.0.sh >> /apps/build_stdout.log
RUN rm -rf /builds && mkdir /builds
ADD scripts/libunistring-0.9.7.sh /apps/scripts/libunistring-0.9.7.sh
RUN /apps/scripts/libunistring-0.9.7.sh >> /apps/build_stdout.log
ADD scripts/libunistring-0.9.7.sh /builds/scripts/libunistring-0.9.7.sh
RUN /builds/scripts/libunistring-0.9.7.sh >> /apps/build_stdout.log
RUN rm -rf /builds && mkdir /builds
ADD scripts/libiconv-1.14.sh /apps/scripts/libiconv-1.14.sh
RUN /apps/scripts/libiconv-1.14.sh >> /apps/build_stdout.log
ADD scripts/libiconv-1.14.sh /builds/scripts/libiconv-1.14.sh
RUN /builds/scripts/libiconv-1.14.sh >> /apps/build_stdout.log
RUN rm -rf /builds && mkdir /builds
ADD scripts/libstringprep-0.0.8.sh /apps/scripts/libstringprep-0.0.8.sh
RUN /apps/scripts/libstringprep-0.0.8.sh >> /apps/build_stdout.log
ADD scripts/libstringprep-0.0.8.sh /builds/scripts/libstringprep-0.0.8.sh
RUN /builds/scripts/libstringprep-0.0.8.sh >> /apps/build_stdout.log
RUN rm -rf /builds && mkdir /builds
ADD scripts/libidn-1.17.sh /apps/scripts/libidn-1.17.sh
RUN /apps/scripts/libidn-1.17.sh >> /apps/build_stdout.log
ADD scripts/libidn-1.17.sh /builds/scripts/libidn-1.17.sh
RUN /builds/scripts/libidn-1.17.sh >> /apps/build_stdout.log
RUN rm -rf /builds && mkdir /builds
ADD scripts/libidn2-0.11.sh /apps/scripts/libidn2-0.11.sh
RUN /apps/scripts/libidn2-0.11.sh >> /apps/build_stdout.log
ADD scripts/libidn2-0.11.sh /builds/scripts/libidn2-0.11.sh
RUN /builds/scripts/libidn2-0.11.sh >> /apps/build_stdout.log
RUN rm -rf /builds && mkdir /builds
ADD scripts/libxml2-2.9.4.sh /apps/scripts/libxml2-2.9.4.sh
RUN /apps/scripts/libxml2-2.9.4.sh >> /apps/build_stdout.log
ADD patches/libxml2 /builds/patches/libxml2
ADD scripts/libxml2-2.9.4.sh /builds/scripts/libxml2-2.9.4.sh
RUN /builds/scripts/libxml2-2.9.4.sh >> /apps/build_stdout.log
RUN rm -rf /builds && mkdir /builds
ADD scripts/libgit2-0.25.1.sh /apps/scripts/libgit2-0.25.1.sh
RUN /apps/scripts/libgit2-0.25.1.sh >> /apps/build_stdout.log
ADD scripts/libgit2-0.25.1.sh /builds/scripts/libgit2-0.25.1.sh
RUN /builds/scripts/libgit2-0.25.1.sh >> /apps/build_stdout.log
RUN rm -rf /builds && mkdir /builds
ADD scripts/boost_1_63_0.sh /apps/scripts/boost_1_63_0.sh
RUN /apps/scripts/boost_1_63_0.sh >> /apps/build_stdout.log
ADD patches/boost /builds/patches/boost
ADD scripts/boost_1_63_0.sh /builds/scripts/boost_1_63_0.sh
RUN /builds/scripts/boost_1_63_0.sh >> /apps/build_stdout.log
RUN rm -rf /builds && mkdir /builds
ADD scripts/curl-7.52.1.sh /apps/scripts/curl-7.52.1.sh
RUN /apps/scripts/curl-7.52.1.sh >> /apps/build_stdout.log
ADD scripts/curl-7.52.1.sh /builds/scripts/curl-7.52.1.sh
RUN /builds/scripts/curl-7.52.1.sh >> /apps/build_stdout.log
RUN rm -rf /builds && mkdir /builds
......
......@@ -4,11 +4,11 @@ cd /builds
curl -O -J -L https://sourceforge.net/projects/boost/files/boost/1.63.0/boost_1_63_0.tar.gz/download
tar xf boost_1_63_0.tar.gz
cd /builds/boost_1_63_0
patch -Np0 -i /apps/patches/boost/boost-mingw.patch
patch -Np0 -i /builds/patches/boost/boost-mingw.patch
cd /builds/boost_1_63_0/libs/serialization
patch -p1 -i /apps/patches/boost/42.patch
patch -p1 -i /builds/patches/boost/42.patch
cd /builds/boost_1_63_0
cp /apps/patches/boost/user-config.jam ./
cp /builds/patches/boost/user-config.jam ./
./bootstrap.sh --with-toolset=gcc --with-python=/usr/bin/python2
./b2 -d+2 -q target-os=windows variant=release threading=multi threadapi=win32 link=static \
runtime-link=shared --prefix=/usr/x86_64-w64-mingw32 --user-config=user-config.jam --without-python \
......
......@@ -4,8 +4,8 @@ cd /builds
curl -O -J ftp://xmlsoft.org/libxml2/libxml2-2.9.4.tar.gz
tar xf libxml2-2.9.4.tar.gz
cd /builds/libxml2-2.9.4
patch -Np0 -i /apps/patches/libxml2/mingw32-libxml2-static-build-compile-fix.patch
patch -Np1 -i /apps/patches/libxml2/libxml2-no-test.patch
patch -Np0 -i /builds/patches/libxml2/mingw32-libxml2-static-build-compile-fix.patch
patch -Np1 -i /builds/patches/libxml2/libxml2-no-test.patch
sed -i "s| doc example | |g" Makefile.am
autoreconf -vfi
LIBS="-lz" LDFLAGS="-L/usr/x86_64-w64-mingw32/lib" ./configure --without-python --host=x86_64-w64-mingw32 --prefix=/usr/x86_64-w64-mingw32
......
......@@ -4,6 +4,6 @@ cd /builds
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
tar xf mingw-catgets-1.0.1-src.tar.gz
cd /builds/mingw-catgets-1.0.1
patch catopen.c /apps/patches/mingw-catgets-catopen-20170123.diff
patch catopen.c /builds/patches/mingw-catgets-catopen-20170123.diff
./configure --host=x86_64-w64-mingw32 --prefix=/usr/x86_64-w64-mingw32
make && make install
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