mkxp-z/docker/ubuntu-18.04.docker

33 lines
1.2 KiB
Docker
Raw Normal View History

2019-07-30 10:36:45 -04:00
# This will create an Ubuntu 18.04 image with all the dependencies required to build MKXP-Z.
2019-07-29 07:56:45 -04:00
FROM ubuntu:bionic
#--------------------
# Get stuff from apt
RUN apt-get update
RUN apt-get install curl \
build-essential git bison cmake meson autoconf libtool pkg-config xxd \
libsdl2* libvorbisfile3 libvorbis-dev libpixman-1* libsigc++-2.0* libogg-dev \
libboost-program-options1.65* libopenal1 libopenal-dev zlib1g* fluidsynth \
libfluidsynth-dev -y
#--------------------
RUN mkdir /source
2019-07-31 08:47:44 -04:00
# Install Ruby 1.8
RUN git clone --single-branch --branch ruby_1_8_7 https://github.com/inori-z/ruby /source/ruby
RUN (cd /source/ruby && autoconf && ./configure --disable-install-doc --enable-shared && make -j`nproc` && make install)
RUN mkdir -p /usr/local/include/ruby; cp -r /source/ruby/*.h /usr/local/include/ruby
2019-07-29 07:56:45 -04:00
# Install PhysFS
RUN git clone https://github.com/criptych/physfs /source/physfs
2019-07-31 08:47:44 -04:00
RUN mkdir /source/physfs/build; (cd /source/physfs/build && cmake .. && make -j`nproc` && make install)
2019-07-29 07:56:45 -04:00
# Install SDL_Sound
RUN git clone https://github.com/Ancurio/SDL_Sound /source/SDL_Sound
2019-07-31 08:47:44 -04:00
RUN (cd /source/SDL_Sound && ./bootstrap && ./configure && make -j`nproc` install)
2019-07-29 07:56:45 -04:00
2019-07-30 10:36:45 -04:00
RUN rm -rf /source/*
ADD . /source/mkxp-z