From 65abfec720806e641c64471104d592aaafed26f7 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+orbitalquark@users.noreply.github.com> Date: Fri, 4 Sep 2020 20:56:12 -0400 Subject: Added support for building with Docker and dropped automated Linux i386 builds. Also tweaked Makefile with basic git support for an eventual migration to a new build service. --- src/Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/Dockerfile (limited to 'src/Dockerfile') diff --git a/src/Dockerfile b/src/Dockerfile new file mode 100644 index 00000000..d565ed74 --- /dev/null +++ b/src/Dockerfile @@ -0,0 +1,25 @@ +FROM ubuntu:bionic +LABEL maintainer="textadept" + +RUN echo "Fetching packages" \ + && apt-get update \ + && DEBIAN_FRONTEND="noninteractive" apt-get install -y -q --no-install-recommends \ + build-essential ca-certificates curl git gnupg mercurial unzip wget zip \ + mingw-w64 \ + clang cmake libssl-dev libxml2-dev llvm-dev lzma-dev uuid-dev \ + libmpc-dev libmpfr-dev libgmp-dev \ + libgtk2.0-dev libncurses5-dev libncursesw5-dev \ + luadoc discount \ + && apt-get clean + +COPY luadoc.patch / +RUN echo "Patching LuaDoc" && cd /usr/share/lua/5.1 && patch -p0 < /luadoc.patch + +RUN echo "Building osxcross" \ + && wget https://github.com/tpoechtrager/osxcross/archive/748108aec4e3ceb672990df8164a11b0ac6084f7.zip \ + && unzip *.zip && mv osxcross-* /opt/osxcross && rm *.zip \ + && wget https://www.dropbox.com/s/yfbesd249w10lpc/MacOSX10.10.sdk.tar.xz \ + && mv MacOSX* /opt/osxcross/tarballs \ + && cd /opt/osxcross && UNATTENDED=1 SDK_VERSION="10.10" OSX_VERSION_MIN="10.6" ./build.sh +RUN echo "Cleaning up" && rm -rf /opt/osxcross/build /opt/osxcross/tarballs/MacOSX* +ENV PATH="$PATH:/opt/osxcross/target/bin" -- cgit v1.2.3