Skip to content

Commit 57893f3

Browse files
authored
More fixes for compiling libheif
1 parent cbeef82 commit 57893f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

layers/imagick/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ RUN make install
3030
# Compile libheif
3131
WORKDIR ${IMAGICK_BUILD_DIR}
3232
RUN curl -Ls -o libheif.tar.gz https://github.com/strukturag/libheif/releases/download/v1.17.5/libheif-1.17.5.tar.gz
33-
RUN tar xzf libheif.tar.gz
34-
WORKDIR ${IMAGICK_BUILD_DIR}/libheif-1.17.5
35-
RUN cmake --preset=release --prefix ${INSTALL_DIR}
33+
RUN mkdir ${IMAGICK_BUILD_DIR}/libheif-1.17.5/build
34+
WORKDIR ${IMAGICK_BUILD_DIR}/libheif-1.17.5/build
35+
RUN cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} ..
3636
RUN make -j $(nproc)
3737
RUN make install
3838

@@ -41,7 +41,7 @@ WORKDIR ${IMAGICK_BUILD_DIR}
4141
RUN curl -Ls -o ghostscript.tar.gz https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9561/ghostscript-9.56.1.tar.gz
4242
RUN tar xzf ghostscript.tar.gz
4343
WORKDIR ${IMAGICK_BUILD_DIR}/ghostscript-9.56.1
44-
RUN ./configure --install-prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR} --without-x
44+
RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR} --without-x
4545
RUN make -j $(nproc)
4646
RUN cp bin/gs /tmp/gs
4747

0 commit comments

Comments
 (0)