summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--SDL/1.2.15-minimal/Dockerfile16
1 files changed, 16 insertions, 0 deletions
diff --git a/SDL/1.2.15-minimal/Dockerfile b/SDL/1.2.15-minimal/Dockerfile
new file mode 100644
index 0000000..10f0094
--- /dev/null
+++ b/SDL/1.2.15-minimal/Dockerfile
@@ -0,0 +1,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=/install/SDL-1.2.15
+RUN ./configure \
+ --prefix=$PREFIX \
+ --enable-shared=no \
+ CFLAGS='-ffunction-sections -fdata-sections'
+RUN make -j$(nproc --all)
+RUN make install