pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import graphics/GraphicsMagick



Module Name:	pkgsrc-wip
Committed By:	kikadf <kikadf.01%gmail.com@localhost>
Pushed By:	kikadf
Date:		Mon Sep 1 14:16:46 2025 +0200
Changeset:	b991c7db197940d222c4ca46ce99ace1c9fc4508

Modified Files:
	Makefile
Added Files:
	GraphicsMagick/DESCR
	GraphicsMagick/Makefile
	GraphicsMagick/Makefile.common
	GraphicsMagick/PLIST
	GraphicsMagick/buildlink3.mk
	GraphicsMagick/distinfo
	GraphicsMagick/hacks.mk
	GraphicsMagick/options.mk
	GraphicsMagick/patches/patch-config_delegates.mgk.in
	GraphicsMagick/patches/patch-configure

Log Message:
Import graphics/GraphicsMagick

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b991c7db197940d222c4ca46ce99ace1c9fc4508

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 GraphicsMagick/DESCR                               |  16 +
 GraphicsMagick/Makefile                            |  54 +++
 GraphicsMagick/Makefile.common                     |  16 +
 GraphicsMagick/PLIST                               | 399 +++++++++++++++++++++
 GraphicsMagick/buildlink3.mk                       |  36 ++
 GraphicsMagick/distinfo                            |   7 +
 GraphicsMagick/hacks.mk                            |  14 +
 GraphicsMagick/options.mk                          |  61 ++++
 .../patches/patch-config_delegates.mgk.in          |  17 +
 GraphicsMagick/patches/patch-configure             |  16 +
 Makefile                                           |   1 +
 11 files changed, 637 insertions(+)

diffs:
diff --git a/GraphicsMagick/DESCR b/GraphicsMagick/DESCR
new file mode 100644
index 0000000000..fe8e6546e0
--- /dev/null
+++ b/GraphicsMagick/DESCR
@@ -0,0 +1,16 @@
+GraphicsMagick(TM) provides a powerful image manipulation and
+translation utility.  It is capable of displaying still images and
+animations using the X Window system, provides a simple interface for
+interactively editing images, and is capable of importing selected
+windows or the entire desktop.  GraphicsMagick can read and write over
+88 image formats, including JPEG, TIFF, WMF, SVG, PNG, PNM, GIF, and
+Photo CD.  It can resize, rotate, sharpen, color reduce, or add
+special effects to the image and save the result to any supported
+format.  GraphicsMagick may be used to create animated or transparent
+.gifs, create composite images, create thumbnail images, and much,
+much, more.
+
+GraphicsMagick is one of your choices if you need a program to
+manipulate and display images.  If you want to develop your own
+applications which use GraphicsMagick code or APIs, you need to
+install GraphicsMagick-devel as well.
diff --git a/GraphicsMagick/Makefile b/GraphicsMagick/Makefile
new file mode 100644
index 0000000000..a7bb2d1345
--- /dev/null
+++ b/GraphicsMagick/Makefile
@@ -0,0 +1,54 @@
+# $NetBSD: Makefile,v 1.151 2025/08/30 22:45:13 wiz Exp $
+
+PKGREVISION=	13
+.include "Makefile.common"
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://www.graphicsmagick.org/
+COMMENT=	Tools and libraries for reading, writing, and manipulating images
+LICENSE=	mit
+
+DEPENDS+=	urw-fonts-[0-9]*:../../fonts/urw-fonts
+
+USE_LANGUAGES=		c c++
+USE_LIBTOOL=		yes
+USE_TOOLS+=		gmake pkg-config:run
+USE_FEATURES=		vsnprintf	# optional but recommended for security
+USE_FEATURES+=		strnlen
+GNU_CONFIGURE=		yes
+CONFIGURE_ARGS+=	--enable-shared
+CONFIGURE_ARGS+=	--with-modules=yes
+CONFIGURE_ARGS+=	--with-gs-font-dir=${PREFIX}/share/fonts/urw
+CONFIGURE_ARGS+=	--without-perl
+
+PKGCONFIG_OVERRIDE+=	magick/GraphicsMagick.pc.in
+PKGCONFIG_OVERRIDE+=	wand/GraphicsMagickWand.pc.in
+PKGCONFIG_OVERRIDE+=	Magick++/lib/GraphicsMagick++.pc.in
+
+CTF_FILES_SKIP+=	lib/libGraphicsMagick.so.*	# CPU limit exceeded
+
+TEST_TARGET=	check
+
+PRINT_PLIST_AWK+=	{ if (/coders\/x.la/)    $$0 = "$${PLIST.x11}" $$0 }
+PRINT_PLIST_AWK+=	{ if (/coders\/xwd.la/)  $$0 = "$${PLIST.x11}" $$0 }
+PRINT_PLIST_AWK+=	{ if (/coders\/jp2.la/)  $$0 = "$${PLIST.jasper}" $$0 }
+PRINT_PLIST_AWK+=	{ if (/coders\/fpx.la/)  $$0 = "$${PLIST.fpx}" $$0 }
+PRINT_PLIST_AWK+=	{ if (/coders\/heif.la/) $$0 = "$${PLIST.heif}" $$0 }
+
+.include "options.mk"
+
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../archivers/xz/buildlink3.mk"
+.include "../../devel/libltdl/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/jbigkit/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../graphics/lcms2/buildlink3.mk"
+.include "../../graphics/libwebp/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/GraphicsMagick/Makefile.common b/GraphicsMagick/Makefile.common
new file mode 100755
index 0000000000..2c8aa6bdc3
--- /dev/null
+++ b/GraphicsMagick/Makefile.common
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile.common,v 1.30 2023/11/15 13:20:53 adam Exp $
+#
+# used by graphics/GraphicsMagick/Makefile
+# used by graphics/p5-GraphicsMagick/Makefile
+
+GM_MAJOR_VER=	1.3
+GM_MINOR_VER=	42
+DISTVERSION=	${GM_MAJOR_VER}.${GM_MINOR_VER}
+DISTNAME=	GraphicsMagick-${DISTVERSION}
+CATEGORIES=	graphics
+MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=graphicsmagick/}
+MASTER_SITES+=	ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/${GM_MAJOR_VER}/
+EXTRACT_SUFX=	.tar.xz
+
+DISTINFO_FILE=	${.CURDIR}/../../graphics/GraphicsMagick/distinfo
+PATCHDIR=	${.CURDIR}/../../graphics/GraphicsMagick/patches
diff --git a/GraphicsMagick/PLIST b/GraphicsMagick/PLIST
new file mode 100644
index 0000000000..89e40d512a
--- /dev/null
+++ b/GraphicsMagick/PLIST
@@ -0,0 +1,399 @@
+@comment $NetBSD: PLIST,v 1.35 2024/09/07 08:53:57 prlw1 Exp $
+bin/GraphicsMagick++-config
+bin/GraphicsMagick-config
+bin/GraphicsMagickWand-config
+bin/gm
+include/GraphicsMagick/Magick++.h
+include/GraphicsMagick/Magick++/Blob.h
+include/GraphicsMagick/Magick++/CoderInfo.h
+include/GraphicsMagick/Magick++/Color.h
+include/GraphicsMagick/Magick++/Drawable.h
+include/GraphicsMagick/Magick++/Exception.h
+include/GraphicsMagick/Magick++/Geometry.h
+include/GraphicsMagick/Magick++/Image.h
+include/GraphicsMagick/Magick++/Include.h
+include/GraphicsMagick/Magick++/Montage.h
+include/GraphicsMagick/Magick++/Pixels.h
+include/GraphicsMagick/Magick++/STL.h
+include/GraphicsMagick/Magick++/TypeMetric.h
+include/GraphicsMagick/magick/analyze.h
+include/GraphicsMagick/magick/api.h
+include/GraphicsMagick/magick/attribute.h
+include/GraphicsMagick/magick/average.h
+include/GraphicsMagick/magick/blob.h
+include/GraphicsMagick/magick/cdl.h
+include/GraphicsMagick/magick/channel.h
+include/GraphicsMagick/magick/color.h
+include/GraphicsMagick/magick/color_lookup.h
+include/GraphicsMagick/magick/colormap.h
+include/GraphicsMagick/magick/colorspace.h
+include/GraphicsMagick/magick/command.h
+include/GraphicsMagick/magick/common.h
+include/GraphicsMagick/magick/compare.h
+include/GraphicsMagick/magick/composite.h
+include/GraphicsMagick/magick/compress.h
+include/GraphicsMagick/magick/confirm_access.h
+include/GraphicsMagick/magick/constitute.h
+include/GraphicsMagick/magick/decorate.h
+include/GraphicsMagick/magick/delegate.h
+include/GraphicsMagick/magick/deprecate.h
+include/GraphicsMagick/magick/describe.h
+include/GraphicsMagick/magick/draw.h
+include/GraphicsMagick/magick/effect.h
+include/GraphicsMagick/magick/enhance.h
+include/GraphicsMagick/magick/enum_strings.h
+include/GraphicsMagick/magick/error.h
+include/GraphicsMagick/magick/forward.h
+include/GraphicsMagick/magick/fx.h
+include/GraphicsMagick/magick/gem.h
+include/GraphicsMagick/magick/gradient.h
+include/GraphicsMagick/magick/hclut.h
+include/GraphicsMagick/magick/image.h
+include/GraphicsMagick/magick/list.h
+include/GraphicsMagick/magick/log.h
+include/GraphicsMagick/magick/magic.h
+include/GraphicsMagick/magick/magick.h
+include/GraphicsMagick/magick/magick_config.h
+include/GraphicsMagick/magick/magick_types.h
+include/GraphicsMagick/magick/memory.h
+include/GraphicsMagick/magick/module.h
+include/GraphicsMagick/magick/monitor.h
+include/GraphicsMagick/magick/montage.h
+include/GraphicsMagick/magick/operator.h
+include/GraphicsMagick/magick/paint.h
+include/GraphicsMagick/magick/pixel_cache.h
+include/GraphicsMagick/magick/pixel_iterator.h
+include/GraphicsMagick/magick/plasma.h
+include/GraphicsMagick/magick/profile.h
+include/GraphicsMagick/magick/quantize.h
+include/GraphicsMagick/magick/random.h
+include/GraphicsMagick/magick/registry.h
+include/GraphicsMagick/magick/render.h
+include/GraphicsMagick/magick/resize.h
+include/GraphicsMagick/magick/resource.h
+include/GraphicsMagick/magick/shear.h
+include/GraphicsMagick/magick/signature.h
+include/GraphicsMagick/magick/statistics.h
+include/GraphicsMagick/magick/symbols.h
+include/GraphicsMagick/magick/texture.h
+include/GraphicsMagick/magick/timer.h
+include/GraphicsMagick/magick/transform.h
+include/GraphicsMagick/magick/type.h
+include/GraphicsMagick/magick/utility.h
+include/GraphicsMagick/magick/version.h
+include/GraphicsMagick/wand/drawing_wand.h
+include/GraphicsMagick/wand/magick_wand.h
+include/GraphicsMagick/wand/pixel_wand.h
+include/GraphicsMagick/wand/wand_api.h
+include/GraphicsMagick/wand/wand_symbols.h
+lib/${PKGNAME}/config/delegates.mgk
+lib/${PKGNAME}/config/type-ghostscript.mgk
+lib/${PKGNAME}/config/type-solaris.mgk
+lib/${PKGNAME}/config/type-windows.mgk
+lib/${PKGNAME}/config/type.mgk
+lib/${PKGNAME}/modules-Q8/coders/art.la
+lib/${PKGNAME}/modules-Q8/coders/avs.la
+lib/${PKGNAME}/modules-Q8/coders/bmp.la
+lib/${PKGNAME}/modules-Q8/coders/braille.la
+lib/${PKGNAME}/modules-Q8/coders/cals.la
+lib/${PKGNAME}/modules-Q8/coders/caption.la
+lib/${PKGNAME}/modules-Q8/coders/cineon.la
+lib/${PKGNAME}/modules-Q8/coders/cmyk.la
+lib/${PKGNAME}/modules-Q8/coders/cut.la
+lib/${PKGNAME}/modules-Q8/coders/dcm.la
+lib/${PKGNAME}/modules-Q8/coders/dcraw.la
+lib/${PKGNAME}/modules-Q8/coders/dib.la
+lib/${PKGNAME}/modules-Q8/coders/dpx.la
+lib/${PKGNAME}/modules-Q8/coders/ept.la
+lib/${PKGNAME}/modules-Q8/coders/fax.la
+lib/${PKGNAME}/modules-Q8/coders/fits.la
+${PLIST.fpx}lib/${PKGNAME}/modules-Q8/coders/fpx.la
+lib/${PKGNAME}/modules-Q8/coders/gif.la
+lib/${PKGNAME}/modules-Q8/coders/gradient.la
+lib/${PKGNAME}/modules-Q8/coders/gray.la
+${PLIST.heif}lib/${PKGNAME}/modules-Q8/coders/heif.la
+lib/${PKGNAME}/modules-Q8/coders/histogram.la
+lib/${PKGNAME}/modules-Q8/coders/hrz.la
+lib/${PKGNAME}/modules-Q8/coders/html.la
+lib/${PKGNAME}/modules-Q8/coders/icon.la
+lib/${PKGNAME}/modules-Q8/coders/identity.la
+lib/${PKGNAME}/modules-Q8/coders/info.la
+lib/${PKGNAME}/modules-Q8/coders/jbig.la
+lib/${PKGNAME}/modules-Q8/coders/jnx.la
+${PLIST.jasper}lib/${PKGNAME}/modules-Q8/coders/jp2.la
+lib/${PKGNAME}/modules-Q8/coders/jpeg.la
+lib/${PKGNAME}/modules-Q8/coders/label.la
+lib/${PKGNAME}/modules-Q8/coders/locale.la
+lib/${PKGNAME}/modules-Q8/coders/logo.la
+lib/${PKGNAME}/modules-Q8/coders/mac.la
+lib/${PKGNAME}/modules-Q8/coders/map.la
+lib/${PKGNAME}/modules-Q8/coders/mat.la
+lib/${PKGNAME}/modules-Q8/coders/matte.la
+lib/${PKGNAME}/modules-Q8/coders/meta.la
+lib/${PKGNAME}/modules-Q8/coders/miff.la
+lib/${PKGNAME}/modules-Q8/coders/mono.la
+lib/${PKGNAME}/modules-Q8/coders/mpc.la
+lib/${PKGNAME}/modules-Q8/coders/mpeg.la
+lib/${PKGNAME}/modules-Q8/coders/mpr.la
+lib/${PKGNAME}/modules-Q8/coders/msl.la
+lib/${PKGNAME}/modules-Q8/coders/mtv.la
+lib/${PKGNAME}/modules-Q8/coders/mvg.la
+lib/${PKGNAME}/modules-Q8/coders/null.la
+lib/${PKGNAME}/modules-Q8/coders/otb.la
+lib/${PKGNAME}/modules-Q8/coders/palm.la
+lib/${PKGNAME}/modules-Q8/coders/pcd.la
+lib/${PKGNAME}/modules-Q8/coders/pcl.la
+lib/${PKGNAME}/modules-Q8/coders/pcx.la
+lib/${PKGNAME}/modules-Q8/coders/pdb.la
+lib/${PKGNAME}/modules-Q8/coders/pdf.la
+lib/${PKGNAME}/modules-Q8/coders/pict.la
+lib/${PKGNAME}/modules-Q8/coders/pix.la
+lib/${PKGNAME}/modules-Q8/coders/plasma.la
+lib/${PKGNAME}/modules-Q8/coders/png.la
+lib/${PKGNAME}/modules-Q8/coders/pnm.la
+lib/${PKGNAME}/modules-Q8/coders/preview.la
+lib/${PKGNAME}/modules-Q8/coders/ps.la
+lib/${PKGNAME}/modules-Q8/coders/ps2.la
+lib/${PKGNAME}/modules-Q8/coders/ps3.la
+lib/${PKGNAME}/modules-Q8/coders/pwp.la
+lib/${PKGNAME}/modules-Q8/coders/rgb.la
+lib/${PKGNAME}/modules-Q8/coders/rla.la
+lib/${PKGNAME}/modules-Q8/coders/rle.la
+lib/${PKGNAME}/modules-Q8/coders/sct.la
+lib/${PKGNAME}/modules-Q8/coders/sfw.la
+lib/${PKGNAME}/modules-Q8/coders/sgi.la
+lib/${PKGNAME}/modules-Q8/coders/stegano.la
+lib/${PKGNAME}/modules-Q8/coders/sun.la
+lib/${PKGNAME}/modules-Q8/coders/svg.la
+lib/${PKGNAME}/modules-Q8/coders/tga.la
+lib/${PKGNAME}/modules-Q8/coders/tiff.la
+lib/${PKGNAME}/modules-Q8/coders/tile.la
+lib/${PKGNAME}/modules-Q8/coders/tim.la
+lib/${PKGNAME}/modules-Q8/coders/topol.la
+lib/${PKGNAME}/modules-Q8/coders/ttf.la
+lib/${PKGNAME}/modules-Q8/coders/txt.la
+lib/${PKGNAME}/modules-Q8/coders/uil.la
+lib/${PKGNAME}/modules-Q8/coders/url.la
+lib/${PKGNAME}/modules-Q8/coders/uyvy.la
+lib/${PKGNAME}/modules-Q8/coders/vicar.la
+lib/${PKGNAME}/modules-Q8/coders/vid.la
+lib/${PKGNAME}/modules-Q8/coders/viff.la
+lib/${PKGNAME}/modules-Q8/coders/wbmp.la
+lib/${PKGNAME}/modules-Q8/coders/webp.la
+lib/${PKGNAME}/modules-Q8/coders/wmf.la
+lib/${PKGNAME}/modules-Q8/coders/wpg.la
+${PLIST.x11}lib/${PKGNAME}/modules-Q8/coders/x.la
+lib/${PKGNAME}/modules-Q8/coders/xbm.la
+lib/${PKGNAME}/modules-Q8/coders/xc.la
+lib/${PKGNAME}/modules-Q8/coders/xcf.la
+lib/${PKGNAME}/modules-Q8/coders/xpm.la
+${PLIST.x11}lib/${PKGNAME}/modules-Q8/coders/xwd.la
+lib/${PKGNAME}/modules-Q8/coders/yuv.la
+lib/${PKGNAME}/modules-Q8/filters/analyze.la
+lib/libGraphicsMagick++.la
+lib/libGraphicsMagick.la
+lib/libGraphicsMagickWand.la
+lib/pkgconfig/GraphicsMagick++.pc
+lib/pkgconfig/GraphicsMagick.pc
+lib/pkgconfig/GraphicsMagickWand.pc
+man/man1/GraphicsMagick++-config.1
+man/man1/GraphicsMagick-config.1
+man/man1/GraphicsMagickWand-config.1
+man/man1/gm.1
+man/man4/miff.4
+man/man5/quantize.5
+share/${PKGNAME}/config/colors.mgk
+share/${PKGNAME}/config/log.mgk
+share/${PKGNAME}/config/modules.mgk
+share/doc/GraphicsMagick/ChangeLog
+share/doc/GraphicsMagick/ChangeLog.2001
+share/doc/GraphicsMagick/ChangeLog.2002
+share/doc/GraphicsMagick/ChangeLog.2003
+share/doc/GraphicsMagick/ChangeLog.2004
+share/doc/GraphicsMagick/ChangeLog.2005
+share/doc/GraphicsMagick/ChangeLog.2006
+share/doc/GraphicsMagick/ChangeLog.2007
+share/doc/GraphicsMagick/ChangeLog.2008
+share/doc/GraphicsMagick/ChangeLog.2009
+share/doc/GraphicsMagick/ChangeLog.2010
+share/doc/GraphicsMagick/ChangeLog.2011
+share/doc/GraphicsMagick/ChangeLog.2012
+share/doc/GraphicsMagick/ChangeLog.2013
+share/doc/GraphicsMagick/ChangeLog.2014
+share/doc/GraphicsMagick/ChangeLog.2015
+share/doc/GraphicsMagick/ChangeLog.2016
+share/doc/GraphicsMagick/ChangeLog.2017
+share/doc/GraphicsMagick/ChangeLog.2018
+share/doc/GraphicsMagick/ChangeLog.2019
+share/doc/GraphicsMagick/ChangeLog.2020
+share/doc/GraphicsMagick/ChangeLog.2021
+share/doc/GraphicsMagick/ChangeLog.2022
+share/doc/GraphicsMagick/Copyright.txt
+share/doc/GraphicsMagick/NEWS.txt
+share/doc/GraphicsMagick/www/ChangeLog-2001.html
+share/doc/GraphicsMagick/www/ChangeLog-2002.html
+share/doc/GraphicsMagick/www/ChangeLog-2003.html
+share/doc/GraphicsMagick/www/ChangeLog-2004.html
+share/doc/GraphicsMagick/www/ChangeLog-2005.html
+share/doc/GraphicsMagick/www/ChangeLog-2006.html
+share/doc/GraphicsMagick/www/ChangeLog-2007.html
+share/doc/GraphicsMagick/www/ChangeLog-2008.html
+share/doc/GraphicsMagick/www/ChangeLog-2009.html
+share/doc/GraphicsMagick/www/ChangeLog-2010.html
+share/doc/GraphicsMagick/www/ChangeLog-2011.html
+share/doc/GraphicsMagick/www/ChangeLog-2012.html
+share/doc/GraphicsMagick/www/ChangeLog-2013.html
+share/doc/GraphicsMagick/www/ChangeLog-2014.html
+share/doc/GraphicsMagick/www/ChangeLog-2015.html
+share/doc/GraphicsMagick/www/ChangeLog-2016.html
+share/doc/GraphicsMagick/www/ChangeLog-2017.html
+share/doc/GraphicsMagick/www/ChangeLog-2018.html
+share/doc/GraphicsMagick/www/ChangeLog-2019.html
+share/doc/GraphicsMagick/www/ChangeLog-2020.html
+share/doc/GraphicsMagick/www/ChangeLog-2021.html
+share/doc/GraphicsMagick/www/ChangeLog-2022.html
+share/doc/GraphicsMagick/www/Changelog.html
+share/doc/GraphicsMagick/www/Changes.html
+share/doc/GraphicsMagick/www/Copyright.html
+share/doc/GraphicsMagick/www/FAQ.html
+share/doc/GraphicsMagick/www/GraphicsMagick.html
+share/doc/GraphicsMagick/www/Hg.html
+share/doc/GraphicsMagick/www/INSTALL-unix.html
+share/doc/GraphicsMagick/www/INSTALL-windows.html
+share/doc/GraphicsMagick/www/ImageMagickObject.html
+share/doc/GraphicsMagick/www/Magick++/Blob.html
+share/doc/GraphicsMagick/www/Magick++/Cache.png
+share/doc/GraphicsMagick/www/Magick++/ChangeLog.html
+share/doc/GraphicsMagick/www/Magick++/CoderInfo.html
+share/doc/GraphicsMagick/www/Magick++/Color.html
+share/doc/GraphicsMagick/www/Magick++/Drawable.html
+share/doc/GraphicsMagick/www/Magick++/Drawable_example_1.png
+share/doc/GraphicsMagick/www/Magick++/Enumerations.html
+share/doc/GraphicsMagick/www/Magick++/Exception.html
+share/doc/GraphicsMagick/www/Magick++/FormatCharacters.html
+share/doc/GraphicsMagick/www/Magick++/Geometry.html
+share/doc/GraphicsMagick/www/Magick++/Image.html
+share/doc/GraphicsMagick/www/Magick++/Image.png
+share/doc/GraphicsMagick/www/Magick++/ImageDesign.html
+share/doc/GraphicsMagick/www/Magick++/Montage.html
+share/doc/GraphicsMagick/www/Magick++/PixelPacket.html
+share/doc/GraphicsMagick/www/Magick++/Pixels.html
+share/doc/GraphicsMagick/www/Magick++/STL.html
+share/doc/GraphicsMagick/www/Magick++/TypeMetric.html
+share/doc/GraphicsMagick/www/Magick++/gm-188x120t.png
+share/doc/GraphicsMagick/www/Magick++/index.html
+share/doc/GraphicsMagick/www/Magick++/montage-sample-framed.jpg
+share/doc/GraphicsMagick/www/Magick++/right_triangle.png
+share/doc/GraphicsMagick/www/Magick++/thumbnail-anatomy-framed.jpg
+share/doc/GraphicsMagick/www/Magick++/thumbnail-anatomy-plain.jpg
+share/doc/GraphicsMagick/www/Magick++/thumbnail-sample-framed.jpg
+share/doc/GraphicsMagick/www/Magick++/thumbnail-sample-plain.jpg
+share/doc/GraphicsMagick/www/NEWS.html
+share/doc/GraphicsMagick/www/OpenMP.html
+share/doc/GraphicsMagick/www/README.html
+share/doc/GraphicsMagick/www/animate.html
+share/doc/GraphicsMagick/www/api/animate.html
+share/doc/GraphicsMagick/www/api/annotate.html
+share/doc/GraphicsMagick/www/api/api.html
+share/doc/GraphicsMagick/www/api/attribute.html
+share/doc/GraphicsMagick/www/api/average.html
+share/doc/GraphicsMagick/www/api/blob.html
+share/doc/GraphicsMagick/www/api/cdl.html
+share/doc/GraphicsMagick/www/api/channel.html
+share/doc/GraphicsMagick/www/api/color.html
+share/doc/GraphicsMagick/www/api/colormap.html
+share/doc/GraphicsMagick/www/api/compare.html
+share/doc/GraphicsMagick/www/api/composite.html
+share/doc/GraphicsMagick/www/api/confirm_access.html
+share/doc/GraphicsMagick/www/api/constitute.html
+share/doc/GraphicsMagick/www/api/decorate.html
+share/doc/GraphicsMagick/www/api/deprecate.html
+share/doc/GraphicsMagick/www/api/describe.html
+share/doc/GraphicsMagick/www/api/display.html
+share/doc/GraphicsMagick/www/api/draw.html
+share/doc/GraphicsMagick/www/api/effect.html
+share/doc/GraphicsMagick/www/api/enhance.html
+share/doc/GraphicsMagick/www/api/error.html
+share/doc/GraphicsMagick/www/api/export.html
+share/doc/GraphicsMagick/www/api/fx.html
+share/doc/GraphicsMagick/www/api/hclut.html
+share/doc/GraphicsMagick/www/api/image.html
+share/doc/GraphicsMagick/www/api/import.html
+share/doc/GraphicsMagick/www/api/list.html
+share/doc/GraphicsMagick/www/api/log.html
+share/doc/GraphicsMagick/www/api/magick.html
+share/doc/GraphicsMagick/www/api/memory.html
+share/doc/GraphicsMagick/www/api/monitor.html
+share/doc/GraphicsMagick/www/api/montage.html
+share/doc/GraphicsMagick/www/api/operator.html
+share/doc/GraphicsMagick/www/api/paint.html
+share/doc/GraphicsMagick/www/api/pixel_cache.html
+share/doc/GraphicsMagick/www/api/pixel_iterator.html
+share/doc/GraphicsMagick/www/api/plasma.html
+share/doc/GraphicsMagick/www/api/profile.html
+share/doc/GraphicsMagick/www/api/quantize.html
+share/doc/GraphicsMagick/www/api/registry.html
+share/doc/GraphicsMagick/www/api/render.html
+share/doc/GraphicsMagick/www/api/resize.html
+share/doc/GraphicsMagick/www/api/resource.html
+share/doc/GraphicsMagick/www/api/segment.html
+share/doc/GraphicsMagick/www/api/shear.html
+share/doc/GraphicsMagick/www/api/signature.html
+share/doc/GraphicsMagick/www/api/statistics.html
+share/doc/GraphicsMagick/www/api/texture.html
+share/doc/GraphicsMagick/www/api/transform.html
+share/doc/GraphicsMagick/www/api/types.html
+share/doc/GraphicsMagick/www/api/widget.html
+share/doc/GraphicsMagick/www/authors.html
+share/doc/GraphicsMagick/www/batch.html
+share/doc/GraphicsMagick/www/benchmark.html
+share/doc/GraphicsMagick/www/benchmarks.html
+share/doc/GraphicsMagick/www/bugs.html
+share/doc/GraphicsMagick/www/color.html
+share/doc/GraphicsMagick/www/compare.html
+share/doc/GraphicsMagick/www/composite.html
+share/doc/GraphicsMagick/www/configure-target-setup.png
+share/doc/GraphicsMagick/www/conjure.html
+share/doc/GraphicsMagick/www/contribute.html
+share/doc/GraphicsMagick/www/convert.html
+share/doc/GraphicsMagick/www/display.html
+share/doc/GraphicsMagick/www/docutils-api.css
+share/doc/GraphicsMagick/www/docutils-articles.css
+share/doc/GraphicsMagick/www/download.html
+share/doc/GraphicsMagick/www/favicon.ico
+share/doc/GraphicsMagick/www/formats.html
+share/doc/GraphicsMagick/www/gm.html
+share/doc/GraphicsMagick/www/identify.html
+share/doc/GraphicsMagick/www/images/ball.png
+share/doc/GraphicsMagick/www/images/banner_bg.png
+share/doc/GraphicsMagick/www/images/gm-107x76.gif
+share/doc/GraphicsMagick/www/images/gm-107x76.png
+share/doc/GraphicsMagick/www/images/gm-125x80t.png
+share/doc/GraphicsMagick/www/images/right_triangle.png
+share/doc/GraphicsMagick/www/images/right_triangle_option.png
+share/doc/GraphicsMagick/www/import.html
+share/doc/GraphicsMagick/www/index.html
+share/doc/GraphicsMagick/www/links.html
+share/doc/GraphicsMagick/www/magick.css
+share/doc/GraphicsMagick/www/miff.html
+share/doc/GraphicsMagick/www/mission.html
+share/doc/GraphicsMagick/www/mogrify.html
+share/doc/GraphicsMagick/www/montage.html
+share/doc/GraphicsMagick/www/motion-picture.html
+share/doc/GraphicsMagick/www/perl.html
+share/doc/GraphicsMagick/www/process.html
+share/doc/GraphicsMagick/www/programming.html
+share/doc/GraphicsMagick/www/project.html
+share/doc/GraphicsMagick/www/quantize.html
+share/doc/GraphicsMagick/www/reference.html
+share/doc/GraphicsMagick/www/security.html
+share/doc/GraphicsMagick/www/smile.c
+share/doc/GraphicsMagick/www/thanks.html
+share/doc/GraphicsMagick/www/time.html
+share/doc/GraphicsMagick/www/tools.html
+share/doc/GraphicsMagick/www/utilities.html
+share/doc/GraphicsMagick/www/version.html
+share/doc/GraphicsMagick/www/wand/drawing_wand.html
+share/doc/GraphicsMagick/www/wand/magick_wand.html
+share/doc/GraphicsMagick/www/wand/pixel_wand.html
+share/doc/GraphicsMagick/www/wand/wand.html
diff --git a/GraphicsMagick/buildlink3.mk b/GraphicsMagick/buildlink3.mk
new file mode 100644
index 0000000000..35920416a4
--- /dev/null
+++ b/GraphicsMagick/buildlink3.mk
@@ -0,0 +1,36 @@
+# $NetBSD: buildlink3.mk,v 1.72 2025/08/30 22:45:13 wiz Exp $
+
+BUILDLINK_TREE+=	GraphicsMagick
+
+.if !defined(GRAPHICSMAGICK_BUILDLINK3_MK)
+GRAPHICSMAGICK_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.GraphicsMagick+=	GraphicsMagick>=1.3.12nb6
+BUILDLINK_ABI_DEPENDS.GraphicsMagick+=	GraphicsMagick>=1.3.42nb13
+BUILDLINK_PKGSRCDIR.GraphicsMagick?=	../../graphics/GraphicsMagick
+
+pkgbase := GraphicsMagick
+.include "../../mk/pkg-build-options.mk"
+
+.if ${PKG_BUILD_OPTIONS.GraphicsMagick:Mghostscript}
+.include "../../print/ghostscript/buildlink3.mk"
+.endif
+.if ${PKG_BUILD_OPTIONS.GraphicsMagick:Mx11}
+.include "../../x11/libSM/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.endif
+.if ${PKG_BUILD_OPTIONS.GraphicsMagick:Mzstd}
+.include "../../archivers/zstd/buildlink3.mk"
+.endif
+
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../archivers/xz/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../devel/libltdl/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/lcms2/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.endif # GRAPHICSMAGICK_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-GraphicsMagick
diff --git a/GraphicsMagick/distinfo b/GraphicsMagick/distinfo
new file mode 100644
index 0000000000..6f2180e020
--- /dev/null
+++ b/GraphicsMagick/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.59 2023/11/15 13:20:53 adam Exp $
+
+BLAKE2s (GraphicsMagick-1.3.42.tar.xz) = 0a0fbc4559bc93c98d329819b0cf87611f8e6cc38a02865cbea454df24bb1e0a
+SHA512 (GraphicsMagick-1.3.42.tar.xz) = b512c9c4c06ec60f7d31e140da08f2bc16d492a2dab82778f1b38c074a25340159e59bfbaa30b2997a6fbd10a500ae1bda527e3c3854e4462bcae837e818428a
+Size (GraphicsMagick-1.3.42.tar.xz) = 5553692 bytes
+SHA1 (patch-config_delegates.mgk.in) = c52192a35bede530d310688a576ef2181a9f073c
+SHA1 (patch-configure) = 327dcb718ebaf65f2d2c97440c1cc7fdb9e03482
diff --git a/GraphicsMagick/hacks.mk b/GraphicsMagick/hacks.mk
new file mode 100644
index 0000000000..9119cfe16a
--- /dev/null
+++ b/GraphicsMagick/hacks.mk
@@ -0,0 +1,14 @@
+# $NetBSD: hacks.mk,v 1.2 2023/08/02 07:57:36 adam Exp $
+
+.if !defined(GRAPHICSMAGICK_HACKS_MK)
+GRAPHICSMAGICK_HACKS_MK=	# defined
+
+# Gain 2-3X speedup by working around GCC optimisation bug
+# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53967
+.include "../../mk/compiler.mk"
+.if ${CC_VERSION:Mgcc-4.*} && ${MACHINE_ARCH} == "x86_64"
+PKG_HACKS+=	frename-registers
+CFLAGS+=	-frename-registers
+.endif
+
+.endif
diff --git a/GraphicsMagick/options.mk b/GraphicsMagick/options.mk
new file mode 100755
index 0000000000..a0d7382c07
--- /dev/null
+++ b/GraphicsMagick/options.mk
@@ -0,0 +1,61 @@
+# $NetBSD: options.mk,v 1.13 2024/09/07 08:53:57 prlw1 Exp $
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.GraphicsMagick
+PKG_SUPPORTED_OPTIONS=	x11 jasper ghostscript wmf fpx heif zstd
+PKG_SUGGESTED_OPTIONS=	x11
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=	fpx heif jasper x11
+
+.if !empty(PKG_OPTIONS:Mx11)
+.include "../../x11/libSM/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+PLIST.x11=		yes
+.else
+CONFIGURE_ARGS+=	--without-x
+.endif
+
+.if !empty(PKG_OPTIONS:Mjasper)
+BUILDLINK_API_DEPENDS.jasper+=	jasper>=1.701.0
+.include "../../graphics/jasper/buildlink3.mk"
+CONFIGURE_ARGS+=	--with-jp2
+PLIST.jasper=		yes
+.else
+CONFIGURE_ARGS+=	--without-jp2
+.endif
+
+.if !empty(PKG_OPTIONS:Mghostscript)
+USE_TOOLS+=		gs:run
+.include "../../print/ghostscript/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mwmf)
+.include "../../graphics/libwmf/buildlink3.mk"
+CONFIGURE_ARGS+=	--with-wmf
+.else
+CONFIGURE_ARGS+=	--without-wmf
+.endif
+
+.if !empty(PKG_OPTIONS:Mfpx)
+.include "../../graphics/libfpx/buildlink3.mk"
+CONFIGURE_ARGS+=	--with-fpx
+PLIST.fpx=		yes
+.else
+CONFIGURE_ARGS+=	--without-fpx
+.endif
+
+.if !empty(PKG_OPTIONS:Mheif)
+.include "../../graphics/libheif/buildlink3.mk"
+CONFIGURE_ARGS+=	--with-heic
+PLIST.heif=		yes
+.else
+CONFIGURE_ARGS+=	--without-heic
+.endif
+
+.if !empty(PKG_OPTIONS:Mzstd)
+.include "../../archivers/zstd/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=	--without-zstd
+.endif
diff --git a/GraphicsMagick/patches/patch-config_delegates.mgk.in b/GraphicsMagick/patches/patch-config_delegates.mgk.in
new file mode 100644
index 0000000000..88c44c55c9
--- /dev/null
+++ b/GraphicsMagick/patches/patch-config_delegates.mgk.in
@@ -0,0 +1,17 @@
+$NetBSD: patch-config_delegates.mgk.in,v 1.2 2018/11/20 10:19:29 adam Exp $
+
+Avoid tools directory in installed file.
+
+--- config/delegates.mgk.in.orig	2018-11-17 16:13:19.000000000 +0000
++++ config/delegates.mgk.in
+@@ -107,8 +107,8 @@
+   <!-- Read color PDF using Poppler's pdftoppm -->
+   <delegate decode="poppler-color" stealth="True" command='"pdftoppm" "-freetype" "yes" "-rx" "-aa" "yes" "-aaVector" "yes" "72" "-ry" "72" "%s" ">" "%s"' />
+ 
+-  <delegate decode="hpg" command='"@HPGLDecodeDelegate@" -q -m eps -f `basename "%o"` "%i" && @MVDelegate@ -f `basename "%o"` "%o"' />
+-  <delegate decode="hpgl" command='"@HPGLDecodeDelegate@" -q -m eps -f `basename "%o"` "%i" && @MVDelegate@ -f `basename "%o"` "%o"' />
++  <delegate decode="hpg" command='"@HPGLDecodeDelegate@" -q -m eps -f `basename "%o"` "%i" && mv -f `basename "%o"` "%o"' />
++  <delegate decode="hpgl" command='"@HPGLDecodeDelegate@" -q -m eps -f `basename "%o"` "%i" && mv -f `basename "%o"` "%o"' />
+   <!-- Read HTML file  -->
+   <delegate decode="htm" command='"@HTMLDecodeDelegate@" -U -o "%o" "%i"' />
+   <!-- Read HTML file  -->
diff --git a/GraphicsMagick/patches/patch-configure b/GraphicsMagick/patches/patch-configure
new file mode 100644
index 0000000000..f2073dd95a
--- /dev/null
+++ b/GraphicsMagick/patches/patch-configure
@@ -0,0 +1,16 @@
+$NetBSD: patch-configure,v 1.5 2023/01/25 06:40:46 adam Exp $
+
+Do not save configure args; they reference workdir.
+
+--- configure.orig	2022-12-26 16:56:04.000000000 +0000
++++ configure
+@@ -30779,9 +30779,6 @@ MAGICK_API_LIBS=`echo $MAGICK_API_LIBS |
+ 
+ # Save configure/build parameters for later reference
+ 
+-cat >>confdefs.h <<_ACEOF
+-#define GM_BUILD_CONFIGURE_ARGS "$0 ${ac_configure_args}"
+-_ACEOF
+ 
+ 
+ cat >>confdefs.h <<_ACEOF
diff --git a/Makefile b/Makefile
index 4e9d4b6c08..1f7ba062bc 100644
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,7 @@ SUBDIR+=	GSAlign
 SUBDIR+=	GSCommander
 SUBDIR+=	GenericRepeatFinder
 SUBDIR+=	Geomyidae-git
+SUBDIR+=	GraphicsMagick
 SUBDIR+=	HP-1973
 SUBDIR+=	HiGHS
 SUBDIR+=	I2util


Home | Main Index | Thread Index | Old Index