2004-02-01 02:43:28 +01:00
|
|
|
# $NetBSD: Makefile,v 1.108 2004/02/01 01:43:29 jlam Exp $
|
2003-04-16 15:27:21 +02:00
|
|
|
|
2003-06-30 08:45:01 +02:00
|
|
|
.include "Makefile.common"
|
2003-04-16 15:27:21 +02:00
|
|
|
|
2003-06-30 08:45:01 +02:00
|
|
|
PKGNAME= ImageMagick-${DISTVERSION}
|
2004-01-03 19:49:33 +01:00
|
|
|
PKGREVISION= 1
|
2000-06-21 04:45:15 +02:00
|
|
|
CATEGORIES= graphics
|
1997-12-14 02:39:37 +01:00
|
|
|
|
2003-07-17 23:31:04 +02:00
|
|
|
MAINTAINER= tron@NetBSD.org
|
2001-01-29 18:31:54 +01:00
|
|
|
HOMEPAGE= http://www.simplesystems.org/ImageMagick/
|
2001-02-16 16:22:13 +01:00
|
|
|
COMMENT= Package for display and interactive manipulation of images
|
1998-01-24 21:15:23 +01:00
|
|
|
|
2003-01-04 00:04:35 +01:00
|
|
|
DEPENDS+= mpeg2codec-1.2:../../graphics/mpeg2codec
|
|
|
|
|
2003-07-03 19:41:51 +02:00
|
|
|
CONFLICTS= geomview<1.8.1nb2 # used to have a program named 'animate'
|
2001-04-09 13:59:43 +02:00
|
|
|
|
2002-09-12 10:29:46 +02:00
|
|
|
USE_BUILDLINK2= YES
|
|
|
|
USE_X11= YES
|
Update "ImageMagick" package to version 5.2.2. Changes in version 5.2.2:
- Support added for the Word Perfect Graphics (WPG) file format
(contributed by Jaroslav Fojtik).
- The pixel 'matte' field is changed to indicate the degree of pixel
transparency rather than the degree of opacity. This makes the pixels
compatable with most popular video cards, and many in-memory image
formats.
When the pixel quantum size is eight bits, the colormap is restricted
to 256 colors, but supports up to 65535 colors when the quantum size is
sixteen bits (when QuantumLeap is defined at compilation time).
- ImageMagick is more memory efficient (by 18%) when the quantum size is
eight bits, and the image is colormapped.
- ImageMagick is (finally) believed to be thread safe under Windows,
since it uses the Windows synchronization APIs to lock shared data.
- Under Unix and Windows, dynamically-loaded format coder modules are
supported. There are currently 72 loadable modules. Support for
loadable modules allows the user to add or remove formats from
ImageMagick by simply adding or removing a file. New modules are
automatically detected so users may add their own modules. This support
is proven to work for Sun Solaris, Linux, and SGI IRIX. Please let us
know about other operating systems they work on. Building a modular
ImageMagick is enabled by specifing the configure options
--enable-shared --with-modules.
- ImageMagick now has a set of modules for streaming. Here pixels are
passed to the application as they are available and deleted after use
ensuring a small memory footprint. This is useful for multi-media
applications such as MPEG.
- Image format identification (based on the file header) is now
configured via an external text file. This allows the user to add
automatic file identification for new formats added via a coder module,
or via a delegate (external program).
- XML files conforming to the W3C SVG DTD are now rendered directly by
ImageMagick. The support is incomplete but still useful.
- The Pilot Image Format (PDB) is now supported.
- The drawing primitives have been extended to support drawing bezier
curves, rounded rectangles, and arcs. There is now support for drawing
compound objects (a sequence of objects) using drawing paths. The
concept of a drawing pen has been split into stroke (for the outline)
and fill (for the objects internal color). If fill is not defined, then
only the object outline is drawn. This substantial change results in
the existing drawing commands for filled objects (fillEllipse,
fillRectangle, fillCircle, and fillPolygon) being deprecated.
- A cache file format is now supported which is a snapshot of an image's
pixel cache as it appears on disk. Images stored in this format (large)
may be loaded instantly by ImageMagick since decoding is not required.
In order to write this format , the argument -cache 0 must be supplied
(e.g. convert -cache 0 file.jpg file.cache).
- The build environment for Windows NT is entirely re-done. There is now
a configure program which generates a set of Visual C++ project files
which satisfy a set of reqirements (e.g. DLL, multi-thread, X11). These
project files are then used to build ImageMagick.
- The C API is significantly modified in order to provide thread-safe
operation via function re-entrancy. ImageMagick is believed to be
thread-safe when used with POSIX threads. It is not yet completely
thread safe under Windows or the Mac. Errors (of type ExceptionInfo)
are now reported by a function argument, or via a member of the current
image.
- The GaussianBlurImage() function (contributed by runger@cs.mcgill.ca)
supports Gaussian bluring an image.
- Functions (OpenCacheView(), CloseCacheView(), GetCacheView(),
SetCacheView(), and SyncCacheView()) are provided in order to support
manipulating multiple pixel views.
2000-08-10 10:57:23 +02:00
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
USE_LIBTOOL= YES
|
2002-08-22 10:06:11 +02:00
|
|
|
LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
|
2003-09-26 22:21:25 +02:00
|
|
|
PKGCONFIG_OVERRIDE= Magick++/lib/ImageMagick++.pc.in
|
|
|
|
PKGCONFIG_OVERRIDE+= magick/ImageMagick.pc.in
|
2002-08-22 10:06:11 +02:00
|
|
|
|
2004-02-01 02:43:28 +01:00
|
|
|
GCC_REQD+= 2.95.3
|
2003-09-17 21:49:24 +02:00
|
|
|
|
2003-01-04 00:04:35 +01:00
|
|
|
PLIST_SUBST+= IM_MAJOR_VER=${IM_MAJOR_VER}
|
2003-04-15 13:11:50 +02:00
|
|
|
PLIST_SUBST+= IM_MAJOR_LIB_VER=${IM_MAJOR_LIB_VER}
|
1999-04-25 12:10:51 +02:00
|
|
|
|
2003-01-25 07:45:48 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2003-09-17 21:51:09 +02:00
|
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64)
|
2004-02-01 02:43:28 +01:00
|
|
|
GCC_REQD+= 3.0
|
2003-09-17 21:51:09 +02:00
|
|
|
.endif
|
2002-02-10 13:50:59 +01:00
|
|
|
|
2003-01-26 18:45:28 +01:00
|
|
|
# Avoid compiler bug on "mipsel" (cobalt?)
|
2003-09-17 21:51:35 +02:00
|
|
|
.if ${MACHINE_ARCH} == "mipsel"
|
2000-06-21 04:45:15 +02:00
|
|
|
CFLAGS= -O
|
1999-09-11 16:25:44 +02:00
|
|
|
.endif
|
|
|
|
|
2003-04-16 15:27:21 +02:00
|
|
|
# Some configure_args come from Makefile.common
|
|
|
|
CONFIGURE_ARGS+= --without-perl
|
1999-04-25 20:46:30 +02:00
|
|
|
|
2002-09-12 10:29:46 +02:00
|
|
|
.include "../../archivers/bzip2/buildlink2.mk"
|
Update to 5.5.1-6.
Changes:
* Verify sanity of sysconf(_SC_PAGE_SIZE) and sysconf(_SC_PHYS_PAGES)
before using their values.
* Corrected bug in image geometry height calculation.
* PingBlob() improperly set the length memory of BlobInfo to zero.
* Fixed Ping() memory leak in PerlMagick.
* Fixed -map problem in convert/mogrify utilities.
* -border with a single value now produces correct results
(e.g. -border 10).
* Set locale type LC_NUMERIC to "C".
* Bug fix for PS2 encoder.
* Added PS-Adobe preamble to PS3 encoder.
* Use ImageMagick release number to allow multiple ImageMagick releases
to co-exist without interference on the same machine.
* Decided that DrawGet functions should return by value.
* Added detailed logging to BMP, PNG, and JPEG codecs, including JPEG
quality estimate.
* Added draw.h "DrawGet" equivalents to most of the "DrawSet" functions.
* Added an array size argument to DrawSetDashPattern and got rid of
the zero-termination garbage.
o Remove 'Set' from the names of draw.h functions which update the
current affine transformation array (e.g. DrawSetRotate becomes
DrawRotate).
* Under Windows, a DllMain function which automatically initializes
ImageMagick (when ImageMagick is built using DLLs) may be added by
defining ProvideDllMain in magick_config.h
* Added resource consumption methods, see magick/resource.c.
* Replaced underscores in commandline options with hyphens. For backward
compatibility, underscores will continue to be recognized.
* Added -blue-primary, -green-primary, -red-primary, -white-point options.
* Added BMP2 and BMP3 output formats.
* Changed chromaticity primary.z from 1.0 to 1.0-(primary.x+primary.y)
in the PNG and PCD codecs.
* Added 'exception' parameter to the ImageMagick progress monitor API.
* Added enumerated types for the dispose member of the Image structure.
* Added -version option to commandline utilities.
* The xcf decoder would sometimes create artifacts when reading RLE-encoded
grayscale images, due to the green and blue samples not being defined.
* Added logging capabilities to the CORE API. This facility is useful
for debugging. Added "events" parameter to the -debug commandline option.
* AcquireImagePixels() did not always return the same pixel values
for virtual pixels when the cache was stored on disk (very rare).
* new -virtual-pixel command line option.
* new PerlMagick virtual-pixel image attribute.
2002-11-13 14:44:42 +01:00
|
|
|
.include "../../graphics/jasper/buildlink2.mk"
|
2002-09-12 10:29:46 +02:00
|
|
|
.include "../../graphics/jpeg/buildlink2.mk"
|
|
|
|
.include "../../graphics/png/buildlink2.mk"
|
|
|
|
.include "../../graphics/tiff/buildlink2.mk"
|
|
|
|
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|