| 1 |
# Script to build imagemagick for digiKam bundle. |
| 2 |
# |
| 3 |
# Copyright (c) 2015-2026 by Gilles Caulier <caulier dot gilles at gmail dot com> |
| 4 |
# |
| 5 |
# Redistribution and use is allowed according to the terms of the BSD license. |
| 6 |
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. |
| 7 |
# |
| 8 |
|
| 9 |
set(PREFIX_ext_imagemagick "${EXTPREFIX}") |
| 10 |
|
| 11 |
set(Magick_Conf --prefix=${PREFIX_ext_imagemagick} |
| 12 |
--without-freetype # TrueType font rendering library. |
| 13 |
--without-fontconfig # Disable configuring and customizing font access. |
| 14 |
--without-pango # Disable Layout and rendering of internationalized text. |
| 15 |
--without-raqm # Disable Complex Textlayout Library. |
| 16 |
--without-gvc # Disable rich set of graph drawing tools. |
| 17 |
--without-raw # Disable RAW codec. |
| 18 |
--without-lqr # Disable Liquid Rescale. |
| 19 |
--without-openjp2 # Disable JPEG2000 codec. |
| 20 |
--without-heic # Disable HEIF codec. |
| 21 |
--without-jxl # Disable JPEG-XL codec. |
| 22 |
--without-threads # Disable internal threads. |
| 23 |
--without-perl # Disable Perl scripts. |
| 24 |
--without-lcms # Disable Colors Management. |
| 25 |
--disable-docs # Disable documentations. |
| 26 |
--disable-hdri # Disable HDRI support. |
| 27 |
--disable-static # Disable static libraries. |
| 28 |
--enable-shared # Compile shared libraries. |
| 29 |
--with-x=no # Disable X11 support. |
| 30 |
--with-magick-plus-plus # Enable C++ API. |
| 31 |
--with-flif # Enable JLIF codec. |
| 32 |
--with-jbig # Enable Big JPEG codec. |
| 33 |
--with-webp # Enable WebP codec. |
| 34 |
--with-djvu # Enable DJVu codec. |
| 35 |
--with-rsvg # Enable SVG codec. |
| 36 |
--with-xml # Enable XML support. |
| 37 |
--with-fpx # Enable FlashPix Codec. |
| 38 |
--with-openexr # Enable OpenEXR codec. |
| 39 |
--with-quantum-depth=16 # Use 16Bits quantum for color components. |
| 40 |
--without-utilities # Disable CLI tools. |
| 41 |
) |
| 42 |
|
| 43 |
set(Jbig_Conf -DBUILD_PROGRAMS=OFF |
| 44 |
-DEXIV2_TOOLS=OFF |
| 45 |
) |
| 46 |
|
| 47 |
JoinListAsString("${Jbig_Conf}" " " BASH_OPTIONS) |
| 48 |
|
| 49 |
ExternalProject_Add(ext_jbig |
| 50 |
|
| 51 |
DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} |
| 52 |
|
| 53 |
GIT_REPOSITORY https://github.com/zdenop/jbigkit.git |
| 54 |
|
| 55 |
BUILD_IN_SOURCE 1 |
| 56 |
|
| 57 |
UPDATE_COMMAND "" |
| 58 |
ALWAYS 0 |
| 59 |
) |
| 60 |
|
| 61 |
ExternalProject_Add(ext_imagemagick |
| 62 |
|
| 63 |
DEPENDS ${Magick_Depends} |
| 64 |
|
| 65 |
DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} |
| 66 |
|
| 67 |
GIT_REPOSITORY https://github.com/ImageMagick/ImageMagick.git |
| 68 |
GIT_TAG 7.1.2-21 |
| 69 |
|
| 70 |
PATCH_COMMAND ${Magick_Patch} |
| 71 |
|
| 72 |
CONFIGURE_COMMAND <SOURCE_DIR>/configure ${Magick_Conf} |
| 73 |
|
| 74 |
UPDATE_COMMAND "" |
| 75 |
ALWAYS 0 |
| 76 |
) |