summaryrefslogtreecommitdiff
path: root/SDL/1.2.15-minimal/Dockerfile
blob: 259a3029ee173fcf7889b311ac164aaf09c98c8a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM alpine
RUN apk update && apk add \
	git \
	make \
	gcc \
	linux-headers \
	musl-dev
RUN git clone --depth 1 --recursive https://github.com/libsdl-org/SDL-1.2
WORKDIR /SDL-1.2
ARG PREFIX=/opt/spm/SDL-1.2.15
RUN ./configure \
    --prefix=$PREFIX \
    --enable-shared=no \
    CFLAGS='-ffunction-sections -fdata-sections'
RUN make -j$(nproc --all)
RUN make install