2014-10-17 13:42:56 +02:00
|
|
|
FROM steeve/cross-compiler:base
|
2014-10-12 13:21:43 +02:00
|
|
|
MAINTAINER Steeve Morin "steeve.morin@gmail.com"
|
|
|
|
|
|
|
|
ENV CROSS_TRIPLE x86_64-apple-darwin13
|
2014-10-17 13:42:56 +02:00
|
|
|
ENV CROSS_ROOT /usr/${CROSS_TRIPLE}
|
2014-10-12 13:21:43 +02:00
|
|
|
ENV PATH ${PATH}:${CROSS_ROOT}/bin
|
2014-10-17 13:42:56 +02:00
|
|
|
ENV LD_LIBRARY_PATH /usr/lib/llvm-3.5/lib:${CROSS_ROOT}/lib
|
|
|
|
ENV MAC_SDK_VERSION 10.9
|
2014-10-12 13:21:43 +02:00
|
|
|
|
|
|
|
RUN curl -L https://github.com/tpoechtrager/osxcross/archive/master.tar.gz | tar xvz
|
|
|
|
COPY MacOSX${MAC_SDK_VERSION}.sdk.tar.bz2 /osxcross-master/tarballs/
|
|
|
|
|
|
|
|
# Build the toolchain
|
2014-10-17 13:42:56 +02:00
|
|
|
WORKDIR /osxcross-master
|
|
|
|
|
|
|
|
RUN ./tools/get_dependencies.sh && \
|
|
|
|
echo | SDK_VERSION=${MAC_SDK_VERSION} OSX_VERSION_MIN=10.6 ./build.sh && \
|
|
|
|
mv /osxcross-master/target ${CROSS_ROOT} && \
|
2014-10-12 13:21:43 +02:00
|
|
|
mkdir -p ${CROSS_ROOT}/lib && \
|
|
|
|
rm -rf /osxcross-master
|
2014-10-17 13:42:56 +02:00
|
|
|
|
|
|
|
WORKDIR /
|