mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-22 16:24:27 +01:00
darwin-x64: Remove
This is not maintained, and it cannot be effectively used because of legal reasons. Apple does not allow software to be built for Mac's from non-Apple hardware.
This commit is contained in:
parent
414812088c
commit
9d4f4dce73
@ -1,27 +0,0 @@
|
|||||||
FROM steeve/cross-compiler:base
|
|
||||||
MAINTAINER Steeve Morin "steeve.morin@gmail.com"
|
|
||||||
|
|
||||||
ENV CROSS_TRIPLE x86_64-apple-darwin14
|
|
||||||
ENV CROSS_ROOT /usr/${CROSS_TRIPLE}
|
|
||||||
ENV PATH ${PATH}:${CROSS_ROOT}/bin
|
|
||||||
ENV LD_LIBRARY_PATH /usr/lib/llvm-3.4/lib:${CROSS_ROOT}/lib
|
|
||||||
ENV MAC_SDK_VERSION 10.10
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
RUN curl -L https://github.com/tpoechtrager/osxcross/archive/master.tar.gz | tar xvz && \
|
|
||||||
cd /osxcross-master/ && \
|
|
||||||
curl -L -o tarballs/MacOSX${MAC_SDK_VERSION}.sdk.tar.xz https://www.dropbox.com/s/yfbesd249w10lpc/MacOSX${MAC_SDK_VERSION}.sdk.tar.xz && \
|
|
||||||
echo | SDK_VERSION=${MAC_SDK_VERSION} OSX_VERSION_MIN=10.6 ./build.sh && \
|
|
||||||
mv /osxcross-master/target ${CROSS_ROOT} && \
|
|
||||||
mkdir -p ${CROSS_ROOT}/lib && \
|
|
||||||
rm -rf /osxcross-master
|
|
||||||
|
|
||||||
ENV DEFAULT_DOCKCROSS_IMAGE dockcross/darwin-x64
|
|
@ -1,129 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# OS X SDK packaging script
|
|
||||||
|
|
||||||
export LC_ALL=C
|
|
||||||
|
|
||||||
if [ $(uname -s) != "Darwin" ]; then
|
|
||||||
if [ -z "$XCODEDIR" ]; then
|
|
||||||
echo "This script must be run on OS X"
|
|
||||||
echo "... Or with XCODEDIR=... on Linux"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
XCODEDIR+="/$(ls "$XCODEDIR" | grep "^Xcode.*" | head -n1)"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
XCODEDIR=$(ls /Volumes | grep "^Xcode.*" | head -n1)
|
|
||||||
|
|
||||||
if [ -z "$XCODEDIR" ]; then
|
|
||||||
if [ -d /Applications/Xcode*.app ]; then
|
|
||||||
XCODEDIR="/Applications/Xcode*.app"
|
|
||||||
else
|
|
||||||
echo "please mount Xcode.dmg"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
XCODEDIR="/Volumes/$XCODEDIR/Xcode*.app"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -d $XCODEDIR ]; then
|
|
||||||
echo "cannot find Xcode (XCODEDIR=$XCODEDIR)"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo -e "found Xcode: $XCODEDIR"
|
|
||||||
|
|
||||||
WDIR=$(pwd)
|
|
||||||
|
|
||||||
which gnutar &>/dev/null
|
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
TAR=gnutar
|
|
||||||
else
|
|
||||||
TAR=tar
|
|
||||||
fi
|
|
||||||
|
|
||||||
which xz &>/dev/null
|
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
COMPRESSOR=xz
|
|
||||||
PKGEXT="tar.xz"
|
|
||||||
else
|
|
||||||
COMPRESSOR=bzip2
|
|
||||||
PKGEXT="tar.bz2"
|
|
||||||
fi
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
pushd $XCODEDIR &>/dev/null
|
|
||||||
|
|
||||||
if [ -d "Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs" ]; then
|
|
||||||
pushd "Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs" &>/dev/null
|
|
||||||
else
|
|
||||||
if [ -d "../Packages" ]; then
|
|
||||||
pushd "../Packages" &>/dev/null
|
|
||||||
else
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "Xcode (or this script) is out of date"
|
|
||||||
echo "trying some magic to find the SDKs anyway ..."
|
|
||||||
|
|
||||||
SDKDIR=$(find . -name SDKs -type d | grep MacOSX | head -n1)
|
|
||||||
|
|
||||||
if [ -z "$SDKDIR" ]; then
|
|
||||||
echo "cannot find SDKs!"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
pushd $SDKDIR &>/dev/null
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
SDKS=$(ls | grep "^MacOSX10.*" | grep -v "Patch")
|
|
||||||
|
|
||||||
if [ -z "$SDKS" ]; then
|
|
||||||
echo "No SDK found"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Xcode 5
|
|
||||||
LIBCXXDIR1="Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/c++/v1"
|
|
||||||
|
|
||||||
# Xcode 6
|
|
||||||
LIBCXXDIR2="Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1"
|
|
||||||
|
|
||||||
for SDK in $SDKS; do
|
|
||||||
echo -n "packaging $(echo "$SDK" | sed -E "s/(.sdk|.pkg)//g") SDK "
|
|
||||||
echo "(this may take several minutes) ..."
|
|
||||||
|
|
||||||
if [[ $SDK == *.pkg ]]; then
|
|
||||||
cp $SDK $WDIR
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
|
|
||||||
TMP=$(mktemp -d /tmp/XXXXXXXXXXX)
|
|
||||||
cp -r $SDK $TMP &>/dev/null || true
|
|
||||||
|
|
||||||
pushd $XCODEDIR &>/dev/null
|
|
||||||
|
|
||||||
# libc++ headers for C++11/C++14
|
|
||||||
if [ -d $LIBCXXDIR1 ]; then
|
|
||||||
cp -rf $LIBCXXDIR1 "$TMP/$SDK/usr/include/c++"
|
|
||||||
elif [ -d $LIBCXXDIR2 ]; then
|
|
||||||
cp -rf $LIBCXXDIR2 "$TMP/$SDK/usr/include/c++"
|
|
||||||
fi
|
|
||||||
|
|
||||||
popd &>/dev/null
|
|
||||||
|
|
||||||
pushd $TMP &>/dev/null
|
|
||||||
$TAR -cf - * | $COMPRESSOR -9 -c - > "$WDIR/$SDK.$PKGEXT"
|
|
||||||
popd &>/dev/null
|
|
||||||
|
|
||||||
rm -rf $TMP
|
|
||||||
done
|
|
||||||
|
|
||||||
popd &>/dev/null
|
|
||||||
popd &>/dev/null
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
ls -lh | grep MacOSX
|
|
Loading…
Reference in New Issue
Block a user