2019-08-06 15:57:13 +00:00
|
|
|
FROM arm32v7/debian:jessie
|
2017-08-30 15:00:57 +00:00
|
|
|
|
|
|
|
# Install all sdl, love (build) deps and love-linux-builder deps
|
2020-04-08 14:18:46 +00:00
|
|
|
RUN apt-get update && apt-get install -y build-essential cmake libgl1-mesa-glx libgles2-mesa-dev libxrandr-dev libdbus-1-dev libxi-dev libxcursor-dev libxinerama-dev libgl1-mesa-dev libibus-1.0-dev libasound2-dev libpulse-dev libwayland-dev libfreetype6-dev libopenal-dev libmodplug-dev libvorbis-dev libtheora-dev libphysfs-dev libmpg123-dev squashfs-tools curl mercurial libfuse2 autotools-dev automake libtool pkg-config libdevil-dev luajit libsdl2-2.0-0 libopenal1
|
2017-08-30 15:00:57 +00:00
|
|
|
|
|
|
|
# Now build sdl
|
2020-04-08 14:18:46 +00:00
|
|
|
# ADD SDL2-2.0.10.tar.gz /tmp/
|
|
|
|
# RUN cd /tmp/SDL2-2.0.10 && ./configure --prefix=/usr && make all install
|
2017-08-30 15:00:57 +00:00
|
|
|
|
|
|
|
# And build luajit
|
2020-04-08 14:18:46 +00:00
|
|
|
# ADD LuaJIT-2.0.5.tar.gz /tmp/
|
|
|
|
# RUN cd /tmp/LuaJIT-2.0.5 && make PREFIX=/usr all install
|
2017-08-30 15:00:57 +00:00
|
|
|
|
2019-08-04 11:51:18 +00:00
|
|
|
# And build a modern openal soft
|
2020-04-08 14:18:46 +00:00
|
|
|
# ADD openal-soft-1.19.1.tar.gz /tmp/
|
|
|
|
# RUN cd /tmp/openal-soft-openal-soft-1.19.1/build && cmake -DCMAKE_INSTALL_PREFIX=/usr .. && make all install
|
2019-08-04 11:51:18 +00:00
|
|
|
|
2017-08-30 15:00:57 +00:00
|
|
|
# Add the build script
|
|
|
|
ADD build.sh /build/
|
|
|
|
|
|
|
|
# Add the volumes, the first the love-linux-builder (mandatory), the second the love source (optional)
|
|
|
|
RUN mkdir -p /build/love-linux-builder /build/love
|
|
|
|
VOLUME /build/love-linux-builder /build/love
|
|
|
|
|
|
|
|
# Finally, set the build script as entrypoint
|
2019-08-06 15:57:13 +00:00
|
|
|
ENTRYPOINT ["/usr/bin/setarch", "armv7l", "/build/build.sh"]
|