pkgsrc/graphics/GraphicsMagick/Makefile

47 lines
1.5 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.30 2010/02/22 06:10:32 obache Exp $
#
DISTNAME= GraphicsMagick-1.3.11
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=graphicsmagick/} \
Update GraphicsMagick to 1.3. 1.3 (November 9, 2008) ====================== Security fixes: * AVI reader: Re-worked to be more robust against crash or DOS. * AVS reader: Re-worked to be more robust against crash or DOS. * DCM reader: Re-worked to be more robust against crash or DOS. * EPT reader: Re-worked to be more robust against crash or DOS. * FITS reader: Re-worked to be more robust against crash or DOS. * MTV reader: Re-worked to be more robust against crash or DOS. * PALM reader: Re-worked to be more robust against crash or DOS. * RLA reader: Re-worked to be more robust against crash or DOS. * TGA reader: Re-worked to be more robust against crash or DOS. * Avoid possible crash in GetImageCharacteristics() when substituting text in comment read from file. * Cineon reader: Fixed crash with broken file from Sami Liedes. * Palm reader: Fixed crash with broken files from Sami Liedes. * PICT reader: Fixed crash with broken files from Sami Liedes. * DPX reader: Validate file data better to avoid improper operation with intentionally (or accidentally) defective files. * XCF reader: Fixed crash with broken files from Sami Liedes. Bug fixes: * Libbz2 is now detected for MinGW. * Install documentation under /usr/local/share/doc/GraphicsMagick by default, according to GNU conventions. * In PerlMagick, Dissolve composition was not working right. * FITS: Ensure that written format conforms to specification. * TIFF: - Don't accidentially convert CMYK images to RGB. - Eliminated a memory leak in the codec support detection code. * JPEG: Removed over-write of image->client_data. * PDF: Try to properly deal with reading rotated PDFs. * PNG: Fixed crash when writing PNG images with transparency and either optimize is requested, or the image is colormapped. * Configure: Fixed the --enable-magick-compat configure option, which had stopped working. * Configure: Fixed --without-magick-plus-plus so that it works again. This stopped working in the 1.2 release cycle. * Configure: Fixed MagickLibVersion text string generation so that it is now correct when a component of the release number exceeds '9'. Now components can safely count up to '99' before there is a problem. Performance Improvements: * OpenMP (parallel processing) improvements for these functions: - Affine transform (-affine -transform) - Average images (-average) - Add noise (+noise) - Black threshold (-black-threshold) - Blur (-blur) - Border (-border) - Channel import, export, and depth-setting (-channel, -depth) - Clip path - Coalesce (-coalesce) - Colorize (-colorize) - Colorspace transformation (-colorspace) - Compare images ('compare' command) - Composition ('composite' command) - Convolution (-convolve, -edge, -emboss, -gaussian, -sharpen) - Contrast adjust (-contrast) - Crop (-crop) - CycleColormap (-cycle) - Depth setting (-depth, -operator depth) - Despeckle (-despeckle) - Enhance (-enhance) - Equalize (-equalize) - Flatten (-flatten) - Flip (-flip) - Flop (-flop) - Frame (-frame) - Gamma adjust (-gamma, -operator gamma) - Gradient - Implode (-implode) - Levels adjust image (-level) - Local adaptive threshold (-lat) - Median filter (-median) - Minify image (-minify) - Modulate image (-modulate) - Morph image (-morph) - Mosiac (-mosaic) - Motion blur (-motion-blur) - Negate image (-negate) - Noise filter (-noise) - Normalize image (-normalize) - Oil Paint (-paint) - Opaque (-opaque) - Ordered dither (-ordered-dither) - Operators (-operator) - Profile adjust (ICC) (-profile) - Random threshold (-random-threshold) - Resize image (-resize) - Raise image (-raise) - Roll image (-roll) - Rotate image (-rotate) - Shade image (-shade) - Shear image (-shear) - Shave (-shave) - Solarize image (-solarize) - Spread image (-spread) - Statistics computation (identify -verbose) - Swirl (-swirl) - Threshold channel (-threshold, -operator threshold) - Threshold image (-threshold) - Transparent (-transparent) - Trim image (-trim) - UnsharpMaskImage (-unsharp) - Wave (-wave) - White threshold (-white-threshold) * Improved coder management performance. * XCF (GIMP) reader is much faster. New Features: * Use MAGICK_CODER_STABILITY environment variable to enable a subset of the coders based on their stability classification. * Use MAGICK_IO_FSYNC environment variable to cause written file to be synchronized to disk to avoid possible data loss on power fail. * Added 'compare' command to statistically or visually compare two image files. * Added new channel operators (-operator): - Assign - Gamma - Depth - Negate - Noise-Gaussian - Noise-Impulse - Noise-Laplacian - Noise-Multiplicative - Noise-Poisson - Noise-Uniform - Threshold - ThresholdBlack - ThresholdWhite * New composition operators (-compose): - CopyBlack - CopyCyan - CopyMagenta - CopyYellow - Divide * Added -motion-blur to motion blur the image. * Mogrify and convert now support -black-threshold and -white-threshold. * MAT: Now supports reading compressed files. * FITS: Now supports 8, 16, 32 bit integer, float, and double images and writes correct FITS format. * DCRAW: Coder proxy module allows reading digital camera files as if they were natively supported. * New C API functions: - AddNoiseImageChannel(), add noise to an image channel. - BlurImageChannel(), blur an image channel. - GaussianBlurImageChannel(), gaussian blur an image channel. - ImportImageChannelsMasked(), import selected image channels. - SharpenImageChannel(), sharpen an image channel. - UnsharpMaskImageChannel(), unsharpmask an image channel. - New cache view interfaces to correct shortcommings of original ones. New interfaces are AcquireCacheViewPixels(), AcquireOneCacheViewPixel(), AcquireCacheViewIndexes(), GetCacheViewPixels(), SetCacheViewPixels(), and SyncCacheViewPixels(). The deprecated functions are AcquireCacheView(), GetCacheView(), SetCacheView(), and SyncCacheView(). - GetCacheViewRegion() reports region bounded by a cache view. - GetCacheViewArea() reports area bounded by a cache view. - ExportViewPixelArea() exports a cache view as formatted pixels. - ImportViewPixelArea imports formatted pixels into a cache view. * Removed C API functions: - ReadStream() - WriteStream() * Magick++ C++ API improvements - Color class no longer considers transparent black to be an invalid color. - New Image methods addNoiseChannel(), blurChannel(), gaussianBlurChannel(), motionBlur(), randomThresholdChannel(), randomThresholdChannel(), sharpenChannel(), unsharpmaskChannel(). Feature improvements: * -ordered-dither and -random-threshold may now be used to individually dither any named channel. * Mogrify and convert now support -minify to halve the image size. * Mogrify and convert now support -magnify to double the image size.
2008-11-10 12:24:27 +01:00
ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/
2007-04-01 03:58:36 +02:00
MAINTAINER= obache@NetBSD.org
HOMEPAGE= http://www.graphicsmagick.org/
COMMENT= X application for displaying and manipulating images
2008-02-13 07:31:16 +01:00
PKG_DESTDIR_SUPPORT= user-destdir
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= gmake pkg-config gs
Update GraphicsMagick to 1.2. GraphicsMagick 1.2 is the result of four years of additional development and testing over and above the 1.1 release branch. In these four years there have been a huge number of security fixes, considerable performance enhancements, and new features have been added. GraphicsMagick 1.2 continues to be mostly API and command compatible with previous GraphicsMagick releases, and with ImageMagick 5.5.2 from whence it originated. The following is the summarized (yet extensive!) list of changes in this release. See the ChangeLog file for the full list of changes. Security fixes: * Fixes for CERT security alert TA04-217A described at "http://www.us-cert.gov/cas/techalerts/TA04-217A.html". * AVI, BMP, & DIB security fixes. * PSD security fixes. * P7 format security fix. * Fix EXIF IFD stack overflow vulnerability. * SGI security fix for RLE encoding (CVE-2006-4144) * XCF security fix (CVE-2006-3743) * PALM heap overflow fix (CVE-2006-5456) * DCM security fix (CVE-2006-5456) * Fix for shell command injection in delegate code via file names) (CVE-2005-4601). Delegate execution is much more secure now. * Don't use filenames as printf specifications (CVE-2006-0082). * Fix integer overflow in DCM coder (CVE-2007-1797). * XWD integer overflow fix (CVE-2007-1797). * Implementation has replaced usage of strcpy, strcat, and strncat with the more security conscious strlcat and strlcpy. * DCM, DIB, XCF, XBM, and XWD security fix for integer overflow vulnerability (IDefense 09.19.07). * Do not access X11 or invoke convenience or stealth delegate programs based on the file extension. In particular, these file extensions are rejected for consideration as a format specifier: 'autotrace', 'browse', 'dcraw', 'edit', 'gs-color', 'gs-color+alpha', 'gs-gray', 'gs-mono', 'launch', 'mpeg-encode', 'print', 'scan', 'show', 'win', 'xc', and 'x'. Bug fixes: * The configure script now searches for a web browser in the order mozilla, firefox, and finally netscape. * When the user specifies the -units option, the current image resolution values are now re-scaled to match the new units. * Properly determine Ghostscript font location for Ghostscript 8.0 and later. * GraphicsMagick now successfully builds and passes all tests under Digital Unix 5.1, using the vendor compiler. * Ghostscript sometimes displays an error message and fails, yet it returns a success error code to GraphicsMagick. Verify that Ghostscript has updated the output file before attempting to use it. * Fixed a configure script syntax error when testing for trio. * When requesting a list of formats, all of the modules in the module search path are considered. Previously only the modules in the same directory as the LOGO module were listed. * Ensure that an image clip mask is respected by the negate algorithm. * The BMP writer was sometimes writing incorrect BMP v4 files. * Support reading and writing large PCX files. * The Red Hat source RPM was failing to install the -config scripts with execute permissions. * Fixed a bug which could cause possible truncation while cloning the image cache. * Ensure that MIFF files indicate the compression which was actually used. * Properly handle errors from libtiff so that corrupted images are not output. * Fix for stripped-TIFF reader. Discard extra samples beyond alpha in scanline TIFFs. * Endian option now controls TIFF byte-order rather than bit-order. * TIFF writer can now write to pipes and other non-seekable output destinations. * JBIG writer was writing empty files for some libjbig releases. * Improved handling of corrupt GIF files. * Handle large SUN format images. * Properly compute image depth for 16-bit SGI image files. * For the gmdisplay program, ensure that only RGB data is sent to Windows. * Many memory leak fixes. * PDF writer is fixed so that Ghoscript 8.5 doesn't warn about the output. * PDF writer now writes proper output with CCITT compression. * Properly use fseeko() and ftello() if they are available. * Fixed a infinite loop bug in the XWD reader. * Fix minor memory leak in ProfileImage(). * Fixed -level command parsing when a percent symbol is supplied within the argument rather than at the end. * Fix pixel scaling problem caused by floating point rounding error (noticed under AIX). * Fixed a memory leak in the GIF coder in the error return path. * Fix for SourceForge bug id 1353744 "MagickGetQuantumDepth doesn't work". * Fix for SourceForge bug id 1315109 "segfault in InitializeMagick(NULL)". * Fix for SourceForge bug id 1391421 "problem doing resize on 273x1 JPEG". * Fix for SourceForge bug id 1510075 "Failed to write PDF with JPEG compression". * Fix for SourceForge bug id 1572357 "GetOnePixel definition appears incorrect". * Fix for SourceForge bug id 1576616 Fix includedir variable in pkg-config files". * Fix for SourceForge bug id 1173713 "segfault in ModifyCache". * Fix for SourceForge bug id 1431805 "clip art wpg files cause access violation in graphics magick". * Fix for SourceForge bug id 1743141 "Affine matrix option parsing". * Fix for SourceForge bug id 1625477 "Memory leak reading layered PSD Image". * Fix for SourceForge bug id 1878992 "literal square brackets in file name cause large delay and bug id 1783209 "converting runs slowly when subimage is specified". * Fix for SourceForge bug id 1883527 "compression of tiff-file has no effect". * Successfully read files in the form "file[123]". * Fix reading 12-bit grayscale JPEG. * Set image depth appropriately when importing image from X11 display. * Fix map resource tracking. * Fix reading recent variants of ImageMagick's MIFF format. * Output bilevel TIFF meeting the TIFF Class F specification. New Utilities: * A 'benchmark' subcommand is now available to benchmark the performance of any other arbitrary subcommand (e.g. 'convert'). Feature improvements: * LZW compression is now enabled by default. * Support industry-standard subsampling notation like "4:2:2". * If gm is executed under a traditional alternate name (e.g. convert), it will invoke the appropriate sub-command. This allows use of hard links, symbolic links, or just copying 'gm' to the desired sub-command name in order to achieve 100% ImageMagick 5.5.2 utility compatibility. * Provide the --enable-magick-compat option when configuring to install ImageMagick utilities compatibility links. * Identify -verbose output includes normalized (0.0-1.0) statistics. * Identify and convert now print "pixels per second" rates to help evaluate performance. * Added the identify +ping option to force reading the complete file. * The display program now supports the +progress option to disable any visual progress indication (and hourglass cursor) while loading images. * Support writing grayscale TGA files. * Provide explicit support for Rec 601 and Rec 709 grayscale spaces. * Include some support for a log RGB space based on the 2.048 density range as defined for the Cineon Digital Film System. * Added utilities command-line support for industry standard subsampling notation like 4:4:4 and 4:2:2. * Use MAGICK_IOBUF_SIZE to tune the size of the I/O buffer. * Use -type Bilevel, Grayscale, TrueColor, or TrueColorMatte to influence the type of image that Ghostscript returns. * Use '-define tiff:fill-order={msb2lsb|lsb2msb}' to control TIFF bit fill order. * The -version option now dumps a feature list as well as the build options. * The -endian option now supports the option 'native'. * A -monitor is added to enable progress monitoring for the command line utilities. * Use the -output-directory option to 'mogrify' to send output files to the specified directory. * Use the -create-directories option in conjunction with -output-directory and 'mogrify' to create any necessary subdirectories. * A Pixels resource limit is added. Use '-limit Pixels value' to limit the maximum number of pixels in an image to 'value'. * The already supported option '-type Optimize' is now honored by formats that need to choose a subformat based on the properties of the image. Grueling tests of many/all pixels are not performed unless '-type Optimize' is supplied. * Added a a -set option to the composite, convert, display, mogrify, import commands in order to allow setting an image attribute. * Display utility no longer defaults to reading from standard input if stdin is not a tty. * May now be configured to use the umem memory allocation library available in Solaris 9, Update 3 and later, or from the portable umem project. Coder additions/improvements: * Replaced existing DPX "support" with all-new DPX support conforming to the SMPTE 268M-2003 standard. * Cineon reader completely rewritten. * TIFF coder is completely re-written. Now supports reading and writing RGB, CMYK, and grayscale, scanline-oriented TIFF images with arbitrary (1 to 32 bits) depth. Includes support for tiled TIFF, floating point TIFF, LogLuv TIFF, BigTIFF, arbitrary depths, and associated alpha. * TIFF coder now supports retrieving and saving XMP profiles. * MATLAB support is much improved and supports writing as well. * WPG reader now supports CTM translations. * ART format now supports writing. * Support 32-bit raw RGB images. * Support 32-bit raw CMYK images. * Support 32-bit raw gray images. * JP2 coder reads images in YCbCr colorspace and retrieves an embedded ICC ICM color profile if present. API enhancements: * Added ExportImageChannel() and ImportImageChannel() APIs to support exporting and importing pixel regions with an arbitary range of (1 to 32) bits per quantum. * Added image leveling methods for Magick++. * Generalized GetImageAttribute() support for retrieving wildcarded attributes so that an identify -format specification like ``"%[dpx:*]"`` works as expected. * Incorporated changes changes necessary so that GraphicsMagick can work with the Ch C/C++ interpreter from SoftIntegration at http://www.softintegration.com/. * Added MagickAllocFunctions() to allow the API user to replace the underlying memory allocator functions. * Added MagickMalloc() and deprecated AcquireMemory(). * Added MagickCloneMemory() and deprecated CloneMemory(). * Added MagickMallocArray() to safely allocate N items of size S. * Added MagickRealloc() and deprecated ReacquireMemory(). * Added MagickFree() and deprecated LiberateMemory(). Performance improvments: * The DispatchImage() and ConstituteImage() functions incorporate special case code for BGR, BGRO, BGRP, RGB, RGBO, and I formats (8 bit only) in order to improve performance dramatically. * When writing very large JPEG images, don't enable Huffman compression since doing so requires libjpeg to buffer the entire image in memory. * When using the 'identify' -verbose option, -verbose must be specified twice in order to obtain the color count. This makes normal use of -verbose much faster. * Significantly improved read/write speed for bilevel and gray images. * TIFF I/O is considerably faster. * Postscript writer is 10-15X faster. * PNM formats writer is 10-100X faster. * Rotate by 90 or 270 degrees is 2-9X faster.
2008-05-01 13:55:12 +02:00
USE_FEATURES= vsnprintf # optional but recommended for security
GNU_CONFIGURE= yes
PKGCONFIG_OVERRIDE+= magick/GraphicsMagick.pc.in \
wand/GraphicsMagickWand.pc.in \
Magick++/lib/GraphicsMagick++.pc.in
Update GraphicsMagick to 1.2. GraphicsMagick 1.2 is the result of four years of additional development and testing over and above the 1.1 release branch. In these four years there have been a huge number of security fixes, considerable performance enhancements, and new features have been added. GraphicsMagick 1.2 continues to be mostly API and command compatible with previous GraphicsMagick releases, and with ImageMagick 5.5.2 from whence it originated. The following is the summarized (yet extensive!) list of changes in this release. See the ChangeLog file for the full list of changes. Security fixes: * Fixes for CERT security alert TA04-217A described at "http://www.us-cert.gov/cas/techalerts/TA04-217A.html". * AVI, BMP, & DIB security fixes. * PSD security fixes. * P7 format security fix. * Fix EXIF IFD stack overflow vulnerability. * SGI security fix for RLE encoding (CVE-2006-4144) * XCF security fix (CVE-2006-3743) * PALM heap overflow fix (CVE-2006-5456) * DCM security fix (CVE-2006-5456) * Fix for shell command injection in delegate code via file names) (CVE-2005-4601). Delegate execution is much more secure now. * Don't use filenames as printf specifications (CVE-2006-0082). * Fix integer overflow in DCM coder (CVE-2007-1797). * XWD integer overflow fix (CVE-2007-1797). * Implementation has replaced usage of strcpy, strcat, and strncat with the more security conscious strlcat and strlcpy. * DCM, DIB, XCF, XBM, and XWD security fix for integer overflow vulnerability (IDefense 09.19.07). * Do not access X11 or invoke convenience or stealth delegate programs based on the file extension. In particular, these file extensions are rejected for consideration as a format specifier: 'autotrace', 'browse', 'dcraw', 'edit', 'gs-color', 'gs-color+alpha', 'gs-gray', 'gs-mono', 'launch', 'mpeg-encode', 'print', 'scan', 'show', 'win', 'xc', and 'x'. Bug fixes: * The configure script now searches for a web browser in the order mozilla, firefox, and finally netscape. * When the user specifies the -units option, the current image resolution values are now re-scaled to match the new units. * Properly determine Ghostscript font location for Ghostscript 8.0 and later. * GraphicsMagick now successfully builds and passes all tests under Digital Unix 5.1, using the vendor compiler. * Ghostscript sometimes displays an error message and fails, yet it returns a success error code to GraphicsMagick. Verify that Ghostscript has updated the output file before attempting to use it. * Fixed a configure script syntax error when testing for trio. * When requesting a list of formats, all of the modules in the module search path are considered. Previously only the modules in the same directory as the LOGO module were listed. * Ensure that an image clip mask is respected by the negate algorithm. * The BMP writer was sometimes writing incorrect BMP v4 files. * Support reading and writing large PCX files. * The Red Hat source RPM was failing to install the -config scripts with execute permissions. * Fixed a bug which could cause possible truncation while cloning the image cache. * Ensure that MIFF files indicate the compression which was actually used. * Properly handle errors from libtiff so that corrupted images are not output. * Fix for stripped-TIFF reader. Discard extra samples beyond alpha in scanline TIFFs. * Endian option now controls TIFF byte-order rather than bit-order. * TIFF writer can now write to pipes and other non-seekable output destinations. * JBIG writer was writing empty files for some libjbig releases. * Improved handling of corrupt GIF files. * Handle large SUN format images. * Properly compute image depth for 16-bit SGI image files. * For the gmdisplay program, ensure that only RGB data is sent to Windows. * Many memory leak fixes. * PDF writer is fixed so that Ghoscript 8.5 doesn't warn about the output. * PDF writer now writes proper output with CCITT compression. * Properly use fseeko() and ftello() if they are available. * Fixed a infinite loop bug in the XWD reader. * Fix minor memory leak in ProfileImage(). * Fixed -level command parsing when a percent symbol is supplied within the argument rather than at the end. * Fix pixel scaling problem caused by floating point rounding error (noticed under AIX). * Fixed a memory leak in the GIF coder in the error return path. * Fix for SourceForge bug id 1353744 "MagickGetQuantumDepth doesn't work". * Fix for SourceForge bug id 1315109 "segfault in InitializeMagick(NULL)". * Fix for SourceForge bug id 1391421 "problem doing resize on 273x1 JPEG". * Fix for SourceForge bug id 1510075 "Failed to write PDF with JPEG compression". * Fix for SourceForge bug id 1572357 "GetOnePixel definition appears incorrect". * Fix for SourceForge bug id 1576616 Fix includedir variable in pkg-config files". * Fix for SourceForge bug id 1173713 "segfault in ModifyCache". * Fix for SourceForge bug id 1431805 "clip art wpg files cause access violation in graphics magick". * Fix for SourceForge bug id 1743141 "Affine matrix option parsing". * Fix for SourceForge bug id 1625477 "Memory leak reading layered PSD Image". * Fix for SourceForge bug id 1878992 "literal square brackets in file name cause large delay and bug id 1783209 "converting runs slowly when subimage is specified". * Fix for SourceForge bug id 1883527 "compression of tiff-file has no effect". * Successfully read files in the form "file[123]". * Fix reading 12-bit grayscale JPEG. * Set image depth appropriately when importing image from X11 display. * Fix map resource tracking. * Fix reading recent variants of ImageMagick's MIFF format. * Output bilevel TIFF meeting the TIFF Class F specification. New Utilities: * A 'benchmark' subcommand is now available to benchmark the performance of any other arbitrary subcommand (e.g. 'convert'). Feature improvements: * LZW compression is now enabled by default. * Support industry-standard subsampling notation like "4:2:2". * If gm is executed under a traditional alternate name (e.g. convert), it will invoke the appropriate sub-command. This allows use of hard links, symbolic links, or just copying 'gm' to the desired sub-command name in order to achieve 100% ImageMagick 5.5.2 utility compatibility. * Provide the --enable-magick-compat option when configuring to install ImageMagick utilities compatibility links. * Identify -verbose output includes normalized (0.0-1.0) statistics. * Identify and convert now print "pixels per second" rates to help evaluate performance. * Added the identify +ping option to force reading the complete file. * The display program now supports the +progress option to disable any visual progress indication (and hourglass cursor) while loading images. * Support writing grayscale TGA files. * Provide explicit support for Rec 601 and Rec 709 grayscale spaces. * Include some support for a log RGB space based on the 2.048 density range as defined for the Cineon Digital Film System. * Added utilities command-line support for industry standard subsampling notation like 4:4:4 and 4:2:2. * Use MAGICK_IOBUF_SIZE to tune the size of the I/O buffer. * Use -type Bilevel, Grayscale, TrueColor, or TrueColorMatte to influence the type of image that Ghostscript returns. * Use '-define tiff:fill-order={msb2lsb|lsb2msb}' to control TIFF bit fill order. * The -version option now dumps a feature list as well as the build options. * The -endian option now supports the option 'native'. * A -monitor is added to enable progress monitoring for the command line utilities. * Use the -output-directory option to 'mogrify' to send output files to the specified directory. * Use the -create-directories option in conjunction with -output-directory and 'mogrify' to create any necessary subdirectories. * A Pixels resource limit is added. Use '-limit Pixels value' to limit the maximum number of pixels in an image to 'value'. * The already supported option '-type Optimize' is now honored by formats that need to choose a subformat based on the properties of the image. Grueling tests of many/all pixels are not performed unless '-type Optimize' is supplied. * Added a a -set option to the composite, convert, display, mogrify, import commands in order to allow setting an image attribute. * Display utility no longer defaults to reading from standard input if stdin is not a tty. * May now be configured to use the umem memory allocation library available in Solaris 9, Update 3 and later, or from the portable umem project. Coder additions/improvements: * Replaced existing DPX "support" with all-new DPX support conforming to the SMPTE 268M-2003 standard. * Cineon reader completely rewritten. * TIFF coder is completely re-written. Now supports reading and writing RGB, CMYK, and grayscale, scanline-oriented TIFF images with arbitrary (1 to 32 bits) depth. Includes support for tiled TIFF, floating point TIFF, LogLuv TIFF, BigTIFF, arbitrary depths, and associated alpha. * TIFF coder now supports retrieving and saving XMP profiles. * MATLAB support is much improved and supports writing as well. * WPG reader now supports CTM translations. * ART format now supports writing. * Support 32-bit raw RGB images. * Support 32-bit raw CMYK images. * Support 32-bit raw gray images. * JP2 coder reads images in YCbCr colorspace and retrieves an embedded ICC ICM color profile if present. API enhancements: * Added ExportImageChannel() and ImportImageChannel() APIs to support exporting and importing pixel regions with an arbitary range of (1 to 32) bits per quantum. * Added image leveling methods for Magick++. * Generalized GetImageAttribute() support for retrieving wildcarded attributes so that an identify -format specification like ``"%[dpx:*]"`` works as expected. * Incorporated changes changes necessary so that GraphicsMagick can work with the Ch C/C++ interpreter from SoftIntegration at http://www.softintegration.com/. * Added MagickAllocFunctions() to allow the API user to replace the underlying memory allocator functions. * Added MagickMalloc() and deprecated AcquireMemory(). * Added MagickCloneMemory() and deprecated CloneMemory(). * Added MagickMallocArray() to safely allocate N items of size S. * Added MagickRealloc() and deprecated ReacquireMemory(). * Added MagickFree() and deprecated LiberateMemory(). Performance improvments: * The DispatchImage() and ConstituteImage() functions incorporate special case code for BGR, BGRO, BGRP, RGB, RGBO, and I formats (8 bit only) in order to improve performance dramatically. * When writing very large JPEG images, don't enable Huffman compression since doing so requires libjpeg to buffer the entire image in memory. * When using the 'identify' -verbose option, -verbose must be specified twice in order to obtain the color count. This makes normal use of -verbose much faster. * Significantly improved read/write speed for bilevel and gray images. * TIFF I/O is considerably faster. * Postscript writer is 10-15X faster. * PNM formats writer is 10-100X faster. * Rotate by 90 or 270 degrees is 2-9X faster.
2008-05-01 13:55:12 +02:00
CONFIGURE_ARGS+= --without-perl
Update GraphicsMagick to 1.1.10. Significant changes associated with GraphicsMagick 1.1.10 (released September 19 , 2007) Bugs Fixed: o Image rotate by -90/270 degrees was producing wrong output. Significant changes associated with GraphicsMagick 1.1.9 (released September 16, 2007) Bugs Fixed: o In mogrify command, don't remove file name based on random junk in memory. o Fixed memory leak when reading MPC files. o Fixed crash when writing MIFF format and depth is not expected 8/16/32/. o Find latest Ghostscript under Windows which identifies itself as "GPL Ghostscript". o In mogrify command, don't leak memory in the case where the image file contains multiple frames. o Fixed crash in PNG and JPEG coders when the image to be written is part of an image list. o PNG reader errors are now properly reported to the user. o TIFF output can now be written to a pipe or other non-seekable destination. o Support writing PDF with CCITT compression. Feature Improvements o Added a new 'benchmark' command which can be used to perform benchmarking on any other command. o Image rotate in clockwise (90 degrees) or counter-clockwise (270 degrees) direction is now 2-9X faster than before. o The -version option now includes a list of supported features. o For Windows MinGW-based build, find Ghostscript fonts installed under C:/Program Files/. Significant changes associated with GraphicsMagick 1.1.8 (released July 28, 2007) Security Fixes: o Shell command injection via delegates subsystem (CVE-2005-4601). o Insecure use of filenames as a "sprintf" specification (CVE-2006-0082). o EXIF IFD stack overflow vulnerability. o BMP format: Verify seek before proceeding. o DCM format: Buffer overflow prevention (CVE-2006-5456). o DCM format: Integer overflow prevention (CVE-2007-1797). o PALM format: Heap overflow prevention (CVE-2006-5456). o SGI format: Fixes for RLE decoding issue (CVE-2006-4144). o XCF format: Buffer overflow prevention, infinite loop prevention. Bugs Fixed: o Typo when searching for HTMLDecodeDelegate. o Avoid crash if delegate program fails to return an image. o EXIF memory leak fixes. o Command parser memory leak fixes. o Deadlock fix for event log initialization. o Work with latest Ghostscript "GPL Ghostscript" under Windows. o 'gm import' now returns image of appropriate depth. o Fixed memory map resource managment. o Fixed includedir variable in pkg-config files. o Fixed validation of -affine argument. o Fixed bug where fseeko() and ftello() were not used when available. o Fixed issue when pread() and pwrite() prototypes are missing. o Fixed pixel cache issues when size_t is an unsigned type. o Fixed dcraw delegate options to work with modern dcraw. o Fixed -level argument parsing to allow embedded % characters. o Fix for segfault in InitializeMagick(NULL). o Fix for segfault in ModifyCache(). o Fix for Wand MagickGetQuantumDepth() interface. o Fix for GrayscalePseudoClassImage() on 64-bit systems. o Fix for MagickReallocMemory memory leak under certain error conditions. o Validate BLOB access range. o ICON format: Segfault fix. o JPEG format: Fixed reading 12-bit grayscale JPEG. o MAT format: Stability improvements. o MIFF format: Handle a compression value of 'None'. o PCX format: Segfault fix. Heap overflow fix. o PDF format: Fixed writing with JPEG compression. o PICT format: Segfault fix. o PNG format: Fixed compile problem with some libpng versions. Segfault fix. o PNM format: Fixed scaling problem due to rounding error. Validate scaling. o PSD format: Fixed memory leak with layerd PSD files. o SGI format: Handle 16-bit SGI image files correctly. o SUN format: Segfault fix. o TIFF format: Secure error reporting. Finally support LZW under Windows. o WPG format: Fixed crash with clip-art WPG files. o XWD format: Fix for integer under/overflow. Feature Improvements o CIN format: Implementation is entirely replaced. o MAT format: Support Byte and Word formats, as well as big/little endian. o WPG format: Support for CTM translation. Updates: o JasPer is updated to version 1.900.1. o Jbigkit is updated to version 1.6 o Lcms is updated to version 1.16 o Libpng is updated to version 1.2.18 o Libtiff is updated to version 3.8.2.
2007-10-14 14:25:15 +02:00
TEST_TARGET= check
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../graphics/lcms/buildlink3.mk"
.include "../../graphics/libexif/buildlink3.mk"
.include "../../graphics/libwmf/buildlink3.mk"
.include "../../graphics/jasper/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"
2007-02-06 19:05:58 +01:00
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"