From 71cdf6c83a48342493761f2de784a10a745ffd19 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Thu, 9 Oct 2025 23:01:12 +0200 Subject: Add libpng-1.6.50 --- libpng/1.6.50/Dockerfile | 20 ++++++++++++++++++++ libpng/1.6.50/download | Bin 0 -> 1570835 bytes 2 files changed, 20 insertions(+) create mode 100644 libpng/1.6.50/Dockerfile create mode 100644 libpng/1.6.50/download diff --git a/libpng/1.6.50/Dockerfile b/libpng/1.6.50/Dockerfile new file mode 100644 index 0000000..cc93065 --- /dev/null +++ b/libpng/1.6.50/Dockerfile @@ -0,0 +1,20 @@ +FROM alpine as base +ARG PREFIX=/usr/local +ARG DESTDIR=/opt/spm/libpng-1.6.50 +RUN apk update && apk add \ + make \ + gcc \ + pkgconf \ + musl-dev \ + wget +RUN wget -O libpng-1.6.50.tar.gz https://sourceforge.net/projects/libpng/files/libpng16/1.6.50/libpng-1.6.50.tar.gz/download +RUN tar -xf libpng-1.6.50.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.50/configure \ + --enable-shared=no +RUN make -j$(nproc) +RUN make install DESTDIR=$DESTDIR +FROM scratch +COPY --from=base /opt/spm/libpng-1.6.50/usr/local/ /opt/spm/libpng-1.6.50/ diff --git a/libpng/1.6.50/download b/libpng/1.6.50/download new file mode 100644 index 0000000..641dd4a Binary files /dev/null and b/libpng/1.6.50/download differ -- cgit v1.2.3