summaryrefslogtreecommitdiff
path: root/libjpeg
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-10-09 23:01:01 +0200
committerXavier Del Campo Romero <xavi92@disroot.org>2025-10-09 23:01:01 +0200
commite03c92f58a4e04d261d3f13e6f4f05cf62875edc (patch)
treee13080b96ab3a0571023248cfc12a852928de97d /libjpeg
parent2c11f63a18315ce8fb990b3f3ddef47ce027c0ae (diff)
Add libjpeg-9f
Diffstat (limited to 'libjpeg')
-rw-r--r--libjpeg/9f/Dockerfile19
1 files changed, 19 insertions, 0 deletions
diff --git a/libjpeg/9f/Dockerfile b/libjpeg/9f/Dockerfile
new file mode 100644
index 0000000..19a1f2d
--- /dev/null
+++ b/libjpeg/9f/Dockerfile
@@ -0,0 +1,19 @@
+FROM alpine as base
+ARG PREFIX=/usr/local
+ARG DESTDIR=/opt/spm/libjpeg-9f
+RUN apk update && apk add \
+ make \
+ gcc \
+ pkgconf \
+ musl-dev \
+ wget
+RUN wget https://www.ijg.org/files/jpegsrc.v9f.tar.gz
+RUN tar -xf jpegsrc.v9f.tar.gz
+WORKDIR /build-libjpeg
+RUN CFLAGS='-ffunction-sections -fdata-sections -Os' \
+ ../jpeg-9f/configure \
+ --enable-shared=no
+RUN make -j$(nproc)
+RUN make install DESTDIR=$DESTDIR
+FROM scratch
+COPY --from=base /opt/spm/libjpeg-9f/usr/local/ /opt/spm/libjpeg-9f/