2021-01-11 06:30:15 +01:00
|
|
|
FROM centos:7
|
|
|
|
|
|
|
|
# run first to improve caching (other things update more often than SDL2)
|
|
|
|
WORKDIR /tmp
|
2021-11-12 09:19:51 +01:00
|
|
|
RUN curl -O https://www.libsdl.org/release/SDL2-2.0.20.tar.gz
|
|
|
|
RUN tar -xf SDL2-2.0.20.tar.gz
|
|
|
|
RUN mkdir SDL2-2.0.20/build
|
2021-01-11 06:30:15 +01:00
|
|
|
|
|
|
|
# add EPEL (for SDL2)
|
|
|
|
RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
|
|
|
|
|
|
|
# install dependencies
|
|
|
|
RUN yum -y install \
|
|
|
|
# used below
|
|
|
|
yum-utils \
|
|
|
|
# VVVVVV dependencies
|
|
|
|
gcc-c++ cmake make
|
|
|
|
|
|
|
|
RUN yum-builddep -y SDL2
|
|
|
|
|
|
|
|
RUN yum clean all
|
|
|
|
|
2021-11-12 09:19:51 +01:00
|
|
|
WORKDIR /tmp/SDL2-2.0.20/build
|
2021-01-11 06:30:15 +01:00
|
|
|
RUN ../configure
|
|
|
|
RUN make -j $(nproc)
|
|
|
|
RUN make install
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
2022-03-09 22:35:29 +01:00
|
|
|
RUN rm -rf SDL2-2.0.20.tar.gz SDL2-2.0.20/
|
2021-01-11 06:30:15 +01:00
|
|
|
|
|
|
|
WORKDIR /
|