anchor.diff:          mercurial                                      \
           multistrap                                     \
           patch                                          \
  -        python-software-properties                     \
           software-properties-common                     \
           subversion                                     \
           wget                                           \
           xz-utils                                       \
           cmake                                          \
           qemu-user-static                               \
  +        libxml2-dev                                    \
  +        lzma-dev                                       \
  +        openssl                                        \
  +        libssl-dev                                     \
    && apt-get clean
   # FIXME: install gcc-multilib
   # FIXME: add mips and powerpc architectures
  
positive.code: FROM buildpack-deps:jessie-curl
  MAINTAINER Manfred Touron <m@42.am> (https://github.com/moul)
  
  # Install deps
  RUN set -x; \
      echo deb http://emdebian.org/tools/debian/ jessie main > /etc/apt/sources.list.d/emdebian.list \
   && curl -sL http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | apt-key add - \
   && dpkg --add-architecture arm64                      \
   && dpkg --add-architecture armel                      \
   && dpkg --add-architecture armhf                      \
  
negative.code: # we need to use default clang binary to avoid a bug in osxcross that recursively call himself
  # with more and more parameters
  
  ENV LD_LIBRARY_PATH /usr/osxcross/lib:$LD_LIBRARY_PATH
  
  # Image metadata
  ENTRYPOINT ["/usr/bin/crossbuild"]
  