mirror of
https://github.com/AmigaPorts/docker-amiga-gcc.git
synced 2026-05-03 02:35:12 +00:00
Add some dependencies
This commit is contained in:
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "dependencies/toolchains"]
|
||||||
|
path = dependencies/toolchains
|
||||||
|
url = https://github.com/AmigaPorts/AmigaCMakeCrossToolchains.git
|
||||||
23
Dockerfile
23
Dockerfile
@@ -2,8 +2,27 @@ FROM sebastianbergmann/amiga-gcc
|
|||||||
MAINTAINER Marlon Beijer "marlon@amigadev.com"
|
MAINTAINER Marlon Beijer "marlon@amigadev.com"
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y apt-utils cmake wget git make
|
RUN apt-get update && apt-get install -y apt-utils cmake wget git make
|
||||||
|
|
||||||
RUN echo "root:root" | chpasswd
|
RUN echo "root:root" | chpasswd
|
||||||
|
|
||||||
|
# Temporary fix
|
||||||
|
RUN rm /opt/$CROSS_PFX ; ln -s /opt/amiga /opt/$CROSS_PFX
|
||||||
|
|
||||||
WORKDIR /work
|
WORKDIR /work
|
||||||
#ENTRYPOINT ["/dockcross/entrypoint.sh"]
|
ENTRYPOINT ["/entry/entrypoint.sh"]
|
||||||
|
|
||||||
|
COPY imagefiles/cmake.sh /usr/local/bin/cmake
|
||||||
|
COPY imagefiles/ccmake.sh /usr/local/bin/ccmake
|
||||||
|
COPY imagefiles/entrypoint.sh /entry/
|
||||||
|
|
||||||
|
ENV CROSS_PFX m68k-amigaos
|
||||||
|
ENV CROSS_ROOT /opt/${CROSS_PFX}
|
||||||
|
|
||||||
|
ENV AS=${CROSS_ROOT}/bin/${CROSS_PFX}-as \
|
||||||
|
LD=${CROSS_ROOT}/bin/${CROSS_PFX}-ld \
|
||||||
|
AR=${CROSS_ROOT}/bin/${CROSS_PFX}-ar \
|
||||||
|
CC=${CROSS_ROOT}/bin/${CROSS_PFX}-gcc \
|
||||||
|
CXX=${CROSS_ROOT}/bin/${CROSS_PFX}-g++ \
|
||||||
|
RANLIB=${CROSS_ROOT}/bin/${CROSS_PFX}-ranlib
|
||||||
|
|
||||||
|
COPY dependencies/toolchains/${CROSS_PFX}.cmake ${CROSS_ROOT}/lib/
|
||||||
|
ENV CMAKE_TOOLCHAIN_FILE ${CROSS_ROOT}/lib/${CROSS_PFX}.cmake
|
||||||
1
dependencies/toolchains
vendored
Submodule
1
dependencies/toolchains
vendored
Submodule
Submodule dependencies/toolchains added at cca36cc5af
7
imagefiles/ccmake.sh
Normal file
7
imagefiles/ccmake.sh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# Always pass the CMAKE_TOOLCHAIN_FILE variable to CMake when inside a
|
||||||
|
# dockcross environment -- the CMAKE_TOOLCHAIN_FILE environmental variable is
|
||||||
|
# always set in this context
|
||||||
|
|
||||||
|
exec /usr/bin/ccmake -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${CMAKE_TOOLCHAIN_FILE} "$@"
|
||||||
22
imagefiles/cmake.sh
Normal file
22
imagefiles/cmake.sh
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# Always pass the CMAKE_TOOLCHAIN_FILE variable to CMake when inside a
|
||||||
|
# dockcross environment -- the CMAKE_TOOLCHAIN_FILE environmental variable is
|
||||||
|
# always set in this context
|
||||||
|
|
||||||
|
# Exception:
|
||||||
|
#
|
||||||
|
# Do not pass the toolchain when calling CMake with these options:
|
||||||
|
# -E = CMake command mode.
|
||||||
|
# --build <dir> = Build a CMake-generated project binary tree.
|
||||||
|
# --find-package = Run in pkg-config like mode.
|
||||||
|
#
|
||||||
|
case $1 in
|
||||||
|
|
||||||
|
-E|--build|--find-package)
|
||||||
|
exec /usr/bin/cmake "$@"
|
||||||
|
;;
|
||||||
|
|
||||||
|
esac
|
||||||
|
|
||||||
|
exec /usr/bin/cmake -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${CMAKE_TOOLCHAIN_FILE} "$@"
|
||||||
5
imagefiles/entrypoint.sh
Normal file
5
imagefiles/entrypoint.sh
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# This is the entrypoint script for the dockerfile. Executed in the
|
||||||
|
# container at runtime.
|
||||||
|
|
||||||
Reference in New Issue
Block a user