Files
Alexandru Ardelean edf0d6c70e graphicsmagick: update to 1.3.46
Security fixes:
- Fix MSL/SVG parsers to use libxml2 SAX handlers, removing archaic
  cruft with potential security issues
- Fix JP2 Jasper max_samples calculation to avoid DoS via huge images
- Apply image dimension resource limits and fix heap write overflow in JXL
- Fix WPG palette buffer allocation (SF bug #750)
- Fix ColorFloodfillImage() to error when clip-mask is present

Bug fixes:
- Fix JPEG CMYK inversion regression introduced in 1.3.43
- Re-implement PNG8 writer with correct indexed-color and binary transparency
- Re-write HEIF reader (AVIF, HEIC) based on heif_image_get_plane_readonly2(),
  adding deep image support and YCbCr/monochrome output
- Fix Hull transform arithmetic overflow regression from Oct 2023
- Fix -crop percentage tiling regression
- Re-enable EXPERIMENTAL_EXIF_TAGS by default with known issues fixed
- Fix Magick++ thread safety regression since 2003 (pthreads support)

New features:
- Add support for newer Artifex urw-base35-fonts (OpenType and Type 1)
- Add ImagesResource limit to control simultaneous loaded images
- Add EXIF Version 3.0 decoding and validation
- Add preliminary MP4 coder with HEIF sequence support
- Require C99 compiler compatibility in build infrastructure

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-05-06 21:05:36 +03:00

105 lines
2.5 KiB
Makefile

# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=graphicsmagick
PKG_VERSION:=1.3.46
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/GraphicsMagick-$(PKG_VERSION)
PKG_SOURCE:=GraphicsMagick-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@SF/graphicsmagick
PKG_HASH:=c7c706a505e9c6c3764156bb94a0c9644d79131785df15a89c9f8721d1abd061
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=Copyright.txt
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
PKG_CPE_ID:=cpe:/a:graphicsmagick:graphicsmagick
PKG_BUILD_PARALLEL:=1
DISABLE_NLS:=
PKG_BUILD_DEPENDS:=zlib freetype libpng libjpeg-turbo tiff
PKG_BUILD_FLAGS:=lto
include $(INCLUDE_DIR)/package.mk
PKG_INSTALL:=1
define Package/graphicsmagick/Default
SECTION:=multimedia
CATEGORY:=Multimedia
TITLE:=Graphics manipulation tools
URL:=http://www.graphicsmagick.org/
DEPENDS:=graphicsmagick
endef
define Package/graphicsmagick
$(call Package/graphicsmagick/Default)
DEPENDS:=+libltdl +libpthread +zlib +libfreetype +libpng +libjpeg +libtiff
endef
define Package/graphicsmagick/description
GraphicsMagick is a free and open-source software suite for displaying,
converting, and editing raster image and vector image files. It is a fork
of ImageMagick.
endef
CONFIGURE_ARGS += \
--enable-shared \
--disable-static \
--enable-dependency-tracking \
--with-modules \
--with-threads \
--without-magick-plus-plus \
--without-perl \
--without-bzlib \
--without-dps \
--without-fpx \
--without-gs \
--without-jbig \
--without-webp \
--with-jpeg \
--without-jp2 \
--without-lcms2 \
--without-libzip \
--without-lzma \
--with-png \
--with-tiff \
--without-trio \
--with-ttf \
--without-umem \
--without-wmf \
--without-xml \
--with-zlib \
--without-zstd \
--without-x
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) \
$(PKG_INSTALL_DIR)/usr/include/* \
$(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
$(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
$(1)/usr/lib/pkgconfig/
endef
GMlibdir:=usr/lib/GraphicsMagick-$(PKG_VERSION)
define Package/graphicsmagick/install
$(INSTALL_DIR) $(1)/usr/bin $(1)/$(GMlibdir)
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
$(CP) $(PKG_INSTALL_DIR)/$(GMlibdir)/* $(1)/$(GMlibdir)/
endef
$(eval $(call BuildPackage,graphicsmagick))