2019-01-07 21:51:22 +01:00
|
|
|
ARG mono_version
|
|
|
|
FROM godot-mono:${mono_version}
|
|
|
|
ARG mono_version
|
|
|
|
|
|
|
|
RUN if [ -z "${mono_version}" ]; then echo -e "\n\nargument mono-version is mandatory!\n\n"; exit 1; fi
|
|
|
|
|
2019-02-23 22:31:19 +01:00
|
|
|
RUN dnf -y install scons mingw32-gcc mingw32-gcc-c++ mingw32-winpthreads-static mingw64-gcc mingw64-gcc-c++ mingw64-winpthreads-static yasm && dnf clean all && \
|
2019-02-28 17:29:55 +01:00
|
|
|
rpm -Uvh --replacepkgs /root/files/mingw-binutils-generic-2.30-5.fc29.godot.x86_64.rpm \
|
|
|
|
/root/files/mingw64-binutils-2.30-5.fc29.godot.x86_64.rpm \
|
|
|
|
/root/files/mingw32-binutils-2.30-5.fc29.godot.x86_64.rpm && \
|
2019-01-07 21:51:22 +01:00
|
|
|
curl https://download.mono-project.com/sources/mono/mono-${mono_version}.tar.bz2 | tar xj && \
|
|
|
|
cd mono-${mono_version} && \
|
|
|
|
./configure --prefix=/root/dependencies/mono-64 --host=x86_64-w64-mingw32 --disable-boehm --disable-mcs-build && \
|
2019-02-23 22:30:48 +01:00
|
|
|
echo '#define HAVE_STRUCT_SOCKADDR_IN6 1' >> config.h && \
|
2019-01-07 21:51:22 +01:00
|
|
|
make -j && \
|
|
|
|
make install && \
|
|
|
|
make distclean && \
|
|
|
|
cp /root/dependencies/mono-64/bin/libMonoPosixHelper.dll /root/dependencies/mono-64/bin/MonoPosixHelper.dll && \
|
|
|
|
rm -f /root/dependencies/mono-64/bin/mono /root/dependencies/mono-64/bin/mono-sgen && \
|
|
|
|
ln -s /usr/bin/mono /root/dependencies/mono-64/bin/mono && \
|
|
|
|
ln -s /usr/bin/mono-sgen /root/dependencies/mono-64/bin/mono-sgen && \
|
|
|
|
ln -sf /usr/lib/mono/* /root/dependencies/mono-64/lib/mono || /bin/true && \
|
|
|
|
cp -rvp /etc/mono /root/dependencies/mono-64/etc && \
|
|
|
|
./configure --prefix=/root/dependencies/mono-32 --host=i686-w64-mingw32 --disable-boehm --disable-mcs-build && \
|
2019-02-23 22:30:48 +01:00
|
|
|
echo '#define HAVE_STRUCT_SOCKADDR_IN6 1' >> config.h && \
|
2019-01-07 21:51:22 +01:00
|
|
|
make -j && \
|
|
|
|
make install && \
|
|
|
|
make distclean && \
|
|
|
|
cp /root/dependencies/mono-32/bin/libMonoPosixHelper.dll /root/dependencies/mono-32/bin/MonoPosixHelper.dll && \
|
|
|
|
rm -f /root/dependencies/mono-32/bin/mono /root/dependencies/mono-32/bin/mono-sgen && \
|
|
|
|
ln -s /usr/bin/mono /root/dependencies/mono-32/bin/mono && \
|
|
|
|
ln -s /usr/bin/mono-sgen /root/dependencies/mono-32/bin/mono-sgen && \
|
|
|
|
ln -sf /usr/lib/mono/* /root/dependencies/mono-32/lib/mono || /bin/true && \
|
|
|
|
cp -rvp /etc/mono /root/dependencies/mono-32/etc && \
|
|
|
|
rm -rf /root/mono-${mono_version}
|
|
|
|
|
2019-01-17 23:06:38 +01:00
|
|
|
ENV MONO32_PREFIX=/root/dependencies/mono-32
|
|
|
|
ENV MONO64_PREFIX=/root/dependencies/mono-64
|
|
|
|
|
2019-01-07 21:51:22 +01:00
|
|
|
CMD ['/bin/bash']
|