-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
executable file
·77 lines (72 loc) · 2.52 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
FROM amigadev/docker-base:latest as build-env
WORKDIR /work
RUN mkdir -p /opt && \
git clone --depth 1 https://github.com/NetBSD/pkgsrc /work/pkgsrc && \
cd /work/pkgsrc/bootstrap && \
./bootstrap --prefix /opt --make-jobs $(nproc) && \
export PATH="/opt/sbin:/opt/bin:$PATH" && \
cd /work/pkgsrc/cross/ppc-morphos-gcc-11 && \
printf "ACCEPTABLE_LICENSES+= morphos-sdk-license\nACCEPTABLE_LICENSES+= lha-license\n" >> /opt/etc/mk.conf && \
sed -e 's|\${PREFIX}/gg|\${PREFIX}/ppc-morphos|' -i /work/pkgsrc/cross/ppc-morphos-gcc-11/Makefile && \
sed -e 's|gg/|ppc-morphos/|' -i /work/pkgsrc/cross/ppc-morphos-gcc-11/PLIST && \
sed -e 's|\${PREFIX}/gg|\${PREFIX}/ppc-morphos|' -i /work/pkgsrc/cross/ppc-morphos-binutils/Makefile && \
sed -e 's|gg/|ppc-morphos/|' -i /work/pkgsrc/cross/ppc-morphos-binutils/PLIST && \
sed -e 's|\${PREFIX}/gg|\${PREFIX}/ppc-morphos|' -i /work/pkgsrc/cross/ppc-morphos-sdk/Makefile && \
sed -e 's|gg/|ppc-morphos/|' -i /work/pkgsrc/cross/ppc-morphos-sdk/PLIST && \
bmake MAKE_JOBS=$(nproc) install clean-depends clean && \
ln -s /opt/ppc-morphos/bin/ppc-morphos-gcc-11 /opt/ppc-morphos/bin/ppc-morphos-gcc && \
ln -s /opt/ppc-morphos/bin/ppc-morphos-g++-11 /opt/ppc-morphos/bin/ppc-morphos-g++ && \
ln -s /opt/ppc-morphos/bin/ppc-morphos-c++-11 /opt/ppc-morphos/bin/ppc-morphos-c++ && \
ln -s /opt/ppc-morphos/bin/ppc-morphos-cpp-11 /opt/ppc-morphos/bin/ppc-morphos-cpp && \
ln -s /opt/ppc-morphos/bin/ppc-morphos-gcov-11 /opt/ppc-morphos/bin/ppc-morphos-gcov && \
rm -rf /work/*
FROM amigadev/docker-base:latest
COPY --from=build-env /opt/ppc-morphos /opt/ppc-morphos
RUN apt purge -y python-pip \
genisoimage \
rsync \
wget \
curl \
git \
make \
automake \
nano \
autoconf \
pkg-config \
unzip \
gawk \
bison \
flex\
netpbm \
cmake \
gperf \
gettext \
texinfo\
python \
python-mako \
g++ \
gcc \
gcc-multilib \
g++-multilib \
libtool \
zlib1g-dev \
zlib1g \
libpng-dev \
libx11-dev \
libxcursor-dev \
libgl1-mesa-dev \
libgmpxx4ldbl \
libgmp-dev \
libmpfr6 \
libmpfr-dev \
libmpc3 \
libmpc-dev \
libncurses-dev \
libswitch-perl \
libasound2-dev \
libc6:i386 \
libstdc++6:i386 \
libsdl1.2-dev ; \
apt autoremove -y ; \
rm -rf /var/lib/apt/lists/* ; \
apt clean