pkgsrc/graphics/ImageMagick/Makefile

91 lines
3.3 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.229 2017/03/05 15:06:29 wiz Exp $
Update "ImageMagick" and "p5-PerlMagick" packages to version 5.5.7.9. Changes since version 5.5.6: - File descriptor leak prevented temporary disk pixel cache from being removed under Windows. - Color profile patches provided by (dge at softec.st). - West/East geometry was computed with image width rather than height. - The MNG encoder failed to set the JNG bit in the simplicity profile. - The MNG encoder failed to write FRAM chunks when all images were JNG. - The JNG encoder wrote the wrong alpha_sample_depth for opaque images. - Fixed JPEG EXIF problem. - Added -thumbnail as an option to the utilities. - No TIFF preview was written on EPT write (patch provided by Lars Ruben Skyum). - NegateImage() now negates the K channel of a CMYK image (patch provided by Lars Ruben Skyum). - Parameter 'elevation' misspeclled for PerlMagick Shape() method. - A number of minor leak/unitialzed memory problems fixed. - Allocate free nodes from the heap in QuantizeImage(). - Magick-config --version returned gibberish. - Adopted Bob Friesenhahn's patterns-- use as filename pattern:checkboard, pattern:bricks, etc. - We cannot reliably auto rotate PDF files so this feature was removed. - The conjure program did not correctly handle the gravity attribute. - The persistent cache reference count was not properly incremented. - Added $image->Describe() method to PerlMagick to interface to the DescribeImage() C API method. - Added support for the EXIF Tag Parsing Library. Currently we simply display the tags when calling DescribeImage(). In the near future there will be support for modifying or adding tags. - Added Bob Friesenhahn's updated Windows installation instructions. - Interfaced the drawing routines with the new MagickWand API. MagickWand will be the primary public C interface to ImageMagick in the near future. - magick/effect.c: RandomChannelThresholdImage was not handling PseudoColor, non-gray images correctly. - png.c would not compile with libpng versions older than libpng-0.95, due to bugs introduced in ImageMagick version 5.5.2. - Implemented -random-threshold and -ordered-dither options. - The locale messaging system now uses a hash for fast lookup. - Updated libtool to the new released version, 1.5. - Fixed bug with decoding grayscale PNG images and JNG alpha channel at Q:32. - Now recognize 32-bit hex color specifications, patches provided by Bob Friesenhahn. - Started API wrappers based on Bob Friesenhahn's method suggestions. - Text annotations that started with '\n' were not rendered correctly. - Removed artifacts from images rotated with a small number of degrees. - Minor bug fix in the ParseGeometry() method. - Modified the non-public inline AlphaComposite() to use a PixelPacket pointer; previously it returned a PixelPacket structure. - You can now specify an image geometry as an image file (e.g. -geometry image.jpg). - Use new temporary file manager for JNG components. - Added support for 12-bit TIFF images. - Added improved locale message subsystem (contributed by Kyle Shorter). - Removed a bias from SampleImage() and DrawAffineImage() (bug report by Glenn Randers-Pehrson). - PerlMagick now recognizes percent values for fuzz or opacity. - Not enough memory allocated for reading PCX (bug report by Trevor Willis). - There were artifacts when using the Bessel function for resizing (bug report by Bob Friesenhahn). - Added -resample to convert to change the resolution of an image. - Added a temporary file manager that prevents race conditions and removes any remaining files on exit. - Prepped ImageMagick to work with Visual C++ 7.0 under Windows. The Windows configure patches came from William Radcliffe. - The refresh of the display image window no longer lags when the magnify window overlay it. - Numerous code clean-up and minor speed ups based on problem areas identified in the Graphics-Magick ChangeLog.
2003-06-30 08:45:01 +02:00
.include "Makefile.common"
PKGNAME= ImageMagick-${DISTVERSION}
MAINTAINER= adam@NetBSD.org
COMMENT= Package for display and interactive manipulation of images
1998-01-24 21:15:23 +01:00
CONFLICTS= geomview<1.8.1nb2 # used to have a program named 'animate'
2001-04-09 13:59:43 +02:00
USE_LANGUAGES= c c++ c99
USE_TOOLS+= gmake pkg-config:run
CONFIGURE_ARGS+= --disable-assert
CONFIGURE_ARGS+= --with-fontconfig
CONFIGURE_ARGS+= --with-ltdl-include=${BUILDLINK_PREFIX.libltdl}/include
CONFIGURE_ARGS+= --with-ltdl-lib=${BUILDLINK_PREFIX.libltdl}/lib
CONFIGURE_ARGS+= --with-xml=yes
CONFIGURE_ARGS+= --disable-openmp
CONFIGURE_ARGS+= --without-perl
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR}
# This one used to be optional, but it depends on ghostscript even if it's
# disabled so having a way to disable it seems pointless.
CONFIGURE_ARGS+= --with-gslib
Updated ImageMagick to 7.0.1.9. 2016-06-03 7.0.1-9 Cristy <quetzlzacatenango@image...> * Release ImageMagick version 7.0.1-9, GIT revision 10847:339f803:20160602. 2016-06-02 7.0.1-9 Cristy <quetzlzacatenango@image...> * Fix small memory leak (patch provided by Андрей Черный). * Coder path traversal is not authorized (bug report provided by Masaaki Chida). * Turn off alpha channel for the compare difference image (reference http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=29828). 2016-05-31 7.0.1-8 Cristy <quetzlzacatenango@image...> * Release ImageMagick version 7.0.1-8, GIT revision 18334:97775b5:20160531. 2016-05-31 7.0.1-8 Cristy <quetzlzacatenango@image...> * Support configure script --enable-pipes option to enable pipes (|) in filenames. * Support configure script --enable-indirect-reads option to enable indirect reads (@) in filenames. 2016-05-30 7.0.1-7 Cristy <quetzlzacatenango@image...> * Release ImageMagick version 7.0.1-7, GIT revision 18321:5511ef5:20160530. 2016-05-25 7.0.1-7 Cristy <quetzlzacatenango@image...> * Security improvements to TEXT coder broke it (reference https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=29754). * Fix stroke offset problem for -annotate (reference https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=29626). * Don't interpret -fx option arguments (reference https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=29774); * Add additional checks to DCM reader to prevent data-driven faults (bug report from Hanno Böck).
2016-06-06 14:24:27 +02:00
PKGCONFIG_OVERRIDE+= MagickWand/MagickWand.pc.in
PKGCONFIG_OVERRIDE+= MagickCore/MagickCore.pc.in
PKGCONFIG_OVERRIDE+= MagickCore/ImageMagick.pc.in
PKGCONFIG_OVERRIDE+= Magick++/lib/Magick++.pc.in
GCC_REQD+= 2.95.3
2003-09-17 21:49:24 +02:00
2006-04-14 20:14:34 +02:00
TEST_TARGET= check
.include "options.mk"
2003-09-17 21:51:09 +02:00
.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64)
GCC_REQD+= 3.0
2003-09-17 21:51:09 +02:00
.endif
# Avoid compiler bug on "mipsel" (cobalt?)
2003-09-17 21:51:35 +02:00
.if ${MACHINE_ARCH} == "mipsel"
CFLAGS+= -O
.endif
PKG_SYSCONFSUBDIR= ImageMagick-${IM_MAJOR_LIB_VER}
EGDIR= ${PREFIX}/share/examples/ImageMagick
CONF_FILES= ${EGDIR}/coder.xml ${PKG_SYSCONFDIR}/coder.xml
CONF_FILES+= ${EGDIR}/colors.xml ${PKG_SYSCONFDIR}/colors.xml
CONF_FILES+= ${EGDIR}/delegates.xml ${PKG_SYSCONFDIR}/delegates.xml
CONF_FILES+= ${EGDIR}/log.xml ${PKG_SYSCONFDIR}/log.xml
CONF_FILES+= ${EGDIR}/magic.xml ${PKG_SYSCONFDIR}/magic.xml
CONF_FILES+= ${EGDIR}/mime.xml ${PKG_SYSCONFDIR}/mime.xml
CONF_FILES+= ${EGDIR}/policy.xml ${PKG_SYSCONFDIR}/policy.xml
CONF_FILES+= ${EGDIR}/thresholds.xml ${PKG_SYSCONFDIR}/thresholds.xml
CONF_FILES+= ${EGDIR}/type-dejavu.xml ${PKG_SYSCONFDIR}/type-dejavu.xml
CONF_FILES+= ${EGDIR}/type-ghostscript.xml ${PKG_SYSCONFDIR}/type-ghostscript.xml
CONF_FILES+= ${EGDIR}/type-windows.xml ${PKG_SYSCONFDIR}/type-windows.xml
CONF_FILES+= ${EGDIR}/type.xml ${PKG_SYSCONFDIR}/type.xml
SUBST_CLASSES+= fix-cfg
SUBST_STAGE.fix-cfg= pre-configure
SUBST_MESSAGE.fix-cfg= Fixing configure.xml.
SUBST_FILES.fix-cfg= config/configure.xml.in
SUBST_VARS.fix-cfg= CONFIGURE_ARGS
SUBST_CLASSES+= fix-etc
SUBST_STAGE.fix-etc= pre-configure
SUBST_MESSAGE.fix-etc= Handle configuration files.
SUBST_FILES.fix-etc= Makefile.in
SUBST_SED.fix-etc= -e 's,^configlibdir =.*,configlibdir = $$(DATA_DIR)/examples/ImageMagick,'
SUBST_CLASSES+= fix-tools
SUBST_STAGE.fix-tools= pre-install
SUBST_MESSAGE.fix-tools=Unwrapping tools path in delegate paths.
SUBST_FILES.fix-tools= config/delegates.xml
SUBST_SED.fix-tools= -e 's,${TOOLS_DIR},,g'
2004-02-11 09:55:58 +01:00
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../archivers/xz/buildlink3.mk"
.include "../../devel/libltdl/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/lcms2/buildlink3.mk"
2012-01-29 00:49:41 +01:00
.include "../../graphics/libwebp/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
2004-02-11 09:55:58 +01:00
.include "../../graphics/tiff/buildlink3.mk"
.include "../../math/fftw/buildlink3.mk"
.include "../../print/ghostscript/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"