summaryrefslogtreecommitdiff
path: root/SDL_mixer/1.2.12-minimal/Dockerfile
blob: ead637c07c0e97f5b74bc1ebc282c2a2ac204305 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM alpine
RUN apk update && apk add \
	make \
	gcc \
	musl-dev \
    wget
COPY --from=libsdl:1.2.15 /opt/spm/SDL-1.2.15/ /usr/local/
# sdl-config must be edited when moved to another prefix.
RUN sed -ie 's,/opt/spm/SDL-1.2.15,/usr/local,g' $(which sdl-config)
RUN wget https://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.12.tar.gz
RUN tar -xf SDL_mixer-1.2.12.tar.gz
WORKDIR /SDL_mixer-1.2.12
ARG PREFIX=/opt/spm/SDL_mixer-1.2.12
RUN ./configure \
    --prefix=$PREFIX \
    --enable-shared=no \
    CFLAGS='-ffunction-sections -fdata-sections -Os'
RUN make -j$(nproc --all)
RUN make install