30 lines
1.1 KiB
Makefile
30 lines
1.1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
|
|
|
PKG_NAME="imagemagick"
|
|
PKG_VERSION="f65eba252e3aa387bd99297a750a2ee250664f8c"
|
|
PKG_LICENSE="http://www.imagemagick.org/script/license.php"
|
|
PKG_SITE="https://github.com/ImageMagick/ImageMagick"
|
|
PKG_URL="${PKG_SITE}.git"
|
|
PKG_DEPENDS_TARGET="toolchain libpng libjpeg-turbo fontconfig libraw lcms2 libtool libxml2 libzip"
|
|
PKG_LONGDESC="Software suite to create, edit, compose, or convert bitmap images"
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--disable-openmp \
|
|
--enable-static \
|
|
--disable-shared \
|
|
--with-pango=no \
|
|
--with-utilities=yes \
|
|
--with-x=no"
|
|
|
|
if [ "${DISPLAYSERVER}" = "wl" ]; then
|
|
PKG_DEPENDS_TARGET+=" libXext pango"
|
|
PKG_CONFIGURE_OPTS_TARGET+=" --with-x=yes"
|
|
else
|
|
PKG_CONFIGURE_OPTS_TARGET+=" --with-x=no"
|
|
fi
|
|
|
|
makeinstall_target() {
|
|
make install DESTDIR=${INSTALL} ${PKG_MAKEINSTALL_OPTS_TARGET}
|
|
rm ${INSTALL}/usr/bin/*config
|
|
}
|