diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-02-08 22:35:51 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-02-08 23:03:23 +0100 |
| commit | e9d849c4ce92c7160ebd7c5e1380fd433610dcb9 (patch) | |
| tree | 1c58648096ba790f98c8fcb5169660a1d3e7717b /libpng/1.6.54 | |
| parent | 0be4012b0c76aa925a53dc2f73c475794cc555df (diff) | |
Add libpng-1.6.54
Diffstat (limited to 'libpng/1.6.54')
| -rw-r--r-- | libpng/1.6.54/Dockerfile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libpng/1.6.54/Dockerfile b/libpng/1.6.54/Dockerfile new file mode 100644 index 0000000..ba81a53 --- /dev/null +++ b/libpng/1.6.54/Dockerfile @@ -0,0 +1,20 @@ +FROM alpine as base +ARG PREFIX=/usr/local +ARG DESTDIR=/opt/spm/libpng-1.6.54 +RUN apk update && apk add \ + make \ + gcc \ + pkgconf \ + musl-dev \ + wget +RUN wget -O libpng-1.6.54.tar.gz https://sourceforge.net/projects/libpng/files/libpng16/1.6.54/libpng-1.6.54.tar.gz/download +RUN tar -xf libpng-1.6.54.tar.gz +WORKDIR /build-libpng +COPY --from=zlib:1.3.1 /opt/spm/zlib-1.3.1 /usr/local/ +RUN CFLAGS='-ffunction-sections -fdata-sections -Os' \ + ../libpng-1.6.54/configure \ + --enable-shared=no +RUN make -j$(nproc) +RUN make install DESTDIR=$DESTDIR +FROM scratch +COPY --from=base /opt/spm/libpng-1.6.54/usr/local/ /opt/spm/libpng-1.6.54/ |
