2022-07-05 21:10:14 -04:00
|
|
|
FROM ubuntu:20.04 as build
|
2022-05-11 13:18:24 -04:00
|
|
|
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2022-08-02 10:22:20 -04:00
|
|
|
ENV GCCVER=10
|
2022-07-05 21:10:14 -04:00
|
|
|
RUN apt-get update && \
|
2022-08-05 01:59:19 -04:00
|
|
|
apt-get upgrade -y && \
|
|
|
|
apt-get install -y \
|
|
|
|
binutils \
|
|
|
|
gcc-${GCCVER} \
|
|
|
|
g++-${GCCVER} \
|
|
|
|
patchelf \
|
|
|
|
p7zip-full \
|
|
|
|
python3 \
|
|
|
|
cmake \
|
|
|
|
make \
|
|
|
|
curl \
|
|
|
|
git \
|
|
|
|
lld \
|
|
|
|
libsdl2-dev \
|
|
|
|
zlib1g-dev \
|
|
|
|
libbz2-dev \
|
|
|
|
libpng-dev \
|
|
|
|
libgles2-mesa-dev \
|
|
|
|
wget \
|
|
|
|
gpg \
|
|
|
|
imagemagick \
|
|
|
|
ninja-build && \
|
|
|
|
apt-get install -y software-properties-common && \
|
|
|
|
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null && \
|
|
|
|
apt-add-repository "deb https://apt.kitware.com/ubuntu/ focal main" && \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get upgrade -y && \
|
|
|
|
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCCVER} 10 && \
|
|
|
|
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${GCCVER} 10
|
|
|
|
|
2022-05-11 13:18:24 -04:00
|
|
|
RUN git clone https://github.com/Perlmint/glew-cmake.git && \
|
2022-08-05 01:59:19 -04:00
|
|
|
cmake glew-cmake && \
|
|
|
|
make -j$(nproc) && \
|
|
|
|
make install
|
2022-08-02 10:22:20 -04:00
|
|
|
|
2022-07-05 21:10:14 -04:00
|
|
|
ENV SDL2VER=2.0.22
|
|
|
|
RUN curl -sLO https://libsdl.org/release/SDL2-${SDL2VER}.tar.gz && \
|
2022-08-05 01:59:19 -04:00
|
|
|
tar -xzf SDL2-${SDL2VER}.tar.gz && \
|
|
|
|
cd SDL2-${SDL2VER} && \
|
|
|
|
./configure --build=x86_64-linux-gnu && \
|
|
|
|
make -j$(nproc) && make install && \
|
2022-08-06 21:52:22 -04:00
|
|
|
rm ../SDL2-${SDL2VER}.tar.gz && \
|
|
|
|
cp -av /usr/local/lib/libSDL* /lib/x86_64-linux-gnu/
|
2022-08-02 10:22:20 -04:00
|
|
|
|
|
|
|
RUN \
|
2022-08-05 01:59:19 -04:00
|
|
|
ln -sf /proc/self/mounts /etc/mtab && \
|
|
|
|
mkdir -p /usr/local/share/keyring/ && \
|
|
|
|
wget -O /usr/local/share/keyring/devkitpro-pub.gpg https://apt.devkitpro.org/devkitpro-pub.gpg && \
|
|
|
|
echo "deb [signed-by=/usr/local/share/keyring/devkitpro-pub.gpg] https://apt.devkitpro.org stable main" > /etc/apt/sources.list.d/devkitpro.list && \
|
|
|
|
apt-get update -y && \
|
|
|
|
apt-get install -y devkitpro-pacman && \
|
2022-08-14 22:57:24 -04:00
|
|
|
yes | dkp-pacman -Syu switch-dev switch-portlibs wiiu-dev wiiu-portlibs --noconfirm
|
2022-08-02 10:22:20 -04:00
|
|
|
|
|
|
|
ENV DEVKITPRO=/opt/devkitpro
|
|
|
|
ENV DEVKITARM=/opt/devkitpro/devkitARM
|
|
|
|
ENV DEVKITPPC=/opt/devkitpro/devkitPPC
|
2022-08-14 22:57:24 -04:00
|
|
|
ENV PATH=$PATH:/opt/devkitpro/portlibs/switch/bin/:$DEVKITPPC/bin
|
|
|
|
ENV WUT_ROOT=$DEVKITPRO/wut
|
2022-05-11 13:18:24 -04:00
|
|
|
|
|
|
|
RUN mkdir /soh
|
|
|
|
WORKDIR /soh
|