summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-13 17:29:47 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-14 00:56:17 +0200
commit99dd497118de9cc18fcdecf682026c57e72361fe (patch)
tree9fa7aa3fe3298aa70fb7f67d8a7c9c54bf6e4b74
parent351d315b7c95d55ceb112a3f335a40851173413e (diff)
Add SDL_mixer-1.2.12-minimal
-rw-r--r--SDL_mixer/1.2.12-minimal/Dockerfile20
1 files changed, 20 insertions, 0 deletions
diff --git a/SDL_mixer/1.2.12-minimal/Dockerfile b/SDL_mixer/1.2.12-minimal/Dockerfile
new file mode 100644
index 0000000..72b2f2f
--- /dev/null
+++ b/SDL_mixer/1.2.12-minimal/Dockerfile
@@ -0,0 +1,20 @@
+FROM alpine
+RUN apk update && apk add \
+ git \
+ make \
+ gcc \
+ musl-dev \
+ wget
+COPY --from=libsdl:1.2.15 /install/SDL-1.2.15/ /usr/local/
+# sdl-config must be edited when moved to another prefix.
+RUN sed -ie 's,/install/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=/install/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