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"
|
|
|
|
|
2014-11-04 23:29:52 +01:00
|
|
|
ENV CROSS_TRIPLE x86_64-apple-darwin14
|
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-11-04 23:29:52 +01:00
|
|
|
ENV LD_LIBRARY_PATH /usr/lib/llvm-3.4/lib:${CROSS_ROOT}/lib
|
|
|
|
ENV MAC_SDK_VERSION 10.10
|
2014-10-12 13:21:43 +02:00
|
|
|
|
2014-11-04 23:29:52 +01:00
|
|
|
RUN echo "deb http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy-3.4-binaries main" >> /etc/apt/sources.list && \
|
|
|
|
curl http://llvm.org/apt/llvm-snapshot.gpg.key | apt-key add - && \
|
|
|
|
apt-get update
|
2014-10-12 13:21:43 +02:00
|
|
|
|
2014-11-04 23:29:52 +01:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --force-yes clang-3.4 llvm-3.4-dev automake autogen \
|
|
|
|
libtool libxml2-dev uuid-dev libssl-dev bash \
|
|
|
|
patch make tar xz-utils bzip2 gzip sed cpio
|
2014-10-17 13:42:56 +02:00
|
|
|
|
2014-11-04 23:29:52 +01:00
|
|
|
RUN curl -L https://github.com/tpoechtrager/osxcross/archive/master.tar.gz | tar xvz && \
|
|
|
|
cd /osxcross-master/ && \
|
2014-11-05 19:14:27 +01:00
|
|
|
curl -L -o tarballs/MacOSX${MAC_SDK_VERSION}.sdk.tar.xz https://www.dropbox.com/s/yfbesd249w10lpc/MacOSX${MAC_SDK_VERSION}.sdk.tar.xz && \
|
2014-10-17 13:42:56 +02:00
|
|
|
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
|