forked from bebbo/amiga-gcc
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
53 lines (50 loc) · 2.23 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM amigadev/docker-base:latest
WORKDIR /root
COPY ./ ./
RUN export DEBIAN_FRONTEND=noninteractive && \
apt update && \
apt install -y lhasa && \
rm -rf /var/lib/apt/lists/* && \
make NDK=3.9 update PREFIX=/opt/m68k-amigaos && \
make -j $(nproc) NDK=3.9 all PREFIX=/opt/m68k-amigaos && \
make -j $(nproc) NDK=3.9 sdk=ahi PREFIX=/opt/m68k-amigaos && \
make -j $(nproc) NDK=3.9 sdk=camd PREFIX=/opt/m68k-amigaos && \
make -j $(nproc) NDK=3.9 sdk=cgx PREFIX=/opt/m68k-amigaos && \
make -j $(nproc) NDK=3.9 sdk=guigfx PREFIX=/opt/m68k-amigaos && \
make -j $(nproc) NDK=3.9 sdk=mui PREFIX=/opt/m68k-amigaos && \
make -j $(nproc) NDK=3.9 sdk=p96 PREFIX=/opt/m68k-amigaos && \
make -j $(nproc) NDK=3.9 sdk=mcc_betterstring PREFIX=/opt/m68k-amigaos && \
make -j $(nproc) NDK=3.9 sdk=mcc_guigfx PREFIX=/opt/m68k-amigaos && \
make -j $(nproc) NDK=3.9 sdk=mcc_nlist PREFIX=/opt/m68k-amigaos && \
make -j $(nproc) NDK=3.9 sdk=mcc_texteditor PREFIX=/opt/m68k-amigaos && \
make -j $(nproc) NDK=3.9 sdk=mcc_thebar PREFIX=/opt/m68k-amigaos && \
make -j $(nproc) NDK=3.9 sdk=render PREFIX=/opt/m68k-amigaos && \
make -j $(nproc) NDK=3.9 sdk=warp3d PREFIX=/opt/m68k-amigaos && \
make -j $(nproc) NDK=3.9 all-sdk PREFIX=/opt/m68k-amigaos && \
wget https://raw.githubusercontent.com/aros-development-team/AROS/master/compiler/include/devices/newstyle.h -O newstyle.h && \
wget https://raw.githubusercontent.com/aros-development-team/AROS/master/compiler/include/devices/sana2.h -O sana2.h && \
wget https://raw.githubusercontent.com/aros-development-team/AROS/master/compiler/include/devices/sana2specialstats.h -O sana2specialstats.h && \
wget https://dl.amigadev.com/newstyle.diff -O newstyle.diff && \
patch --ignore-whitespace < newstyle.diff && \
mv -fv newstyle.h sana2.h sana2specialstats.h /opt/m68k-amigaos/m68k-amigaos/ndk-include/devices/ && \
cd / && \
rm -rf /root/amiga-gcc && \
apt-get purge -y \
autoconf \
bison \
flex \
g++ \
gcc \
gettext \
git \
lhasa \
libgmp-dev \
libmpfr-dev \
libmpc-dev \
libncurses-dev \
make \
rsync \
texinfo\
wget \
&& apt-get -y autoremove
ENV PATH /opt/m68k-amigaos/bin:$PATH