diff options
| -rw-r--r-- | SDL_gfx/2.0.26/Dockerfile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/SDL_gfx/2.0.26/Dockerfile b/SDL_gfx/2.0.26/Dockerfile new file mode 100644 index 0000000..7bbb66d --- /dev/null +++ b/SDL_gfx/2.0.26/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 http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-2.0.26.tar.gz +RUN tar -xf SDL_gfx-2.0.26.tar.gz +WORKDIR /SDL_gfx-2.0.26 +ARG PREFIX=/install/SDL_gfx-2.0.26 +RUN ./configure \ + --prefix=$PREFIX \ + --enable-shared=no \ + CFLAGS='-ffunction-sections -fdata-sections -Os' +RUN make -j$(nproc --all) +RUN make install |
