graphicsmagick stable port information

Package: graphicsmagick
Version: 1.4
Revision: 0.020111224
Description: Swiss army knife of image processing
DescDetail: <<
GraphicsMagick is the swiss army knife of image processing. Comprised
of 337K lines of C and C++ code, it provides a robust and efficient
collection of tools and libraries which support reading, writing, and
manipulating an image in over 88 major formats including important
formats like DPX, GIF, JPEG, JPEG-2000, PNG, PDF, PNM, and TIFF.
GraphicsMagick supports huge images on systems that support large
files, and has been tested with gigapixel-size images. GraphicsMagick
can create new images on the fly, making it suitable for building
dynamic Web applications. GraphicsMagick may be used to resize, rotate,
sharpen, color reduce, or add special effects to an image and save the
result in the same or differing image format. Image processing
operations are available from the command line, as well as through C,
C++, Perl, Tcl, Ruby, or Windows COM programming interfaces. With some
modification, language extensions for ImageMagick may be used.

GraphicsMagick is originally derived from ImageMagick 5.5.2 but has
been completely independent of the ImageMagick project since then.
Since the fork from ImageMagick in 2002, many improvements have been
made (see news) by many authors using an open development model but
without breaking the API or utilities operation.
<<
DescPackaging: <<
Builds with OpenMP support on 10.6, but a couple of the tests fail,
so explictly disable OpenMP everywhere.

This is a 1.4 snapshot but is functionally identical to the 1.3.13
release. I didn't want to use epoch so I'm continuing to use the snapshot.
<<
Homepage: http://www.graphicsmagick.org/
License: BSD
Maintainer: Daniel Johnson

#Source: mirror:sourceforge:%n/GraphicsMagick-%v.tar.bz2
Source: ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/snapshots/GraphicsMagick-%v.020111224.tar.bz2
Source-MD5: 7e8ec4b55c1cf7e3d4e995e2a2d3dc43

BuildDepends: <<
bzip2-dev,
fink-package-precedence,
freetype219,
lcms2,
libiconv-dev,
libjasper.1,
libjbig,
libjpeg8,
liblzma5,
libpng15,
libtiff,
libtool2,
libxml2,
x11-dev
<<
Depends: <<
%N-shlibs (= %v-%r)
<<

SetCFLAGS: -Os
SetCXXFLAGS: -Os
GCC: 4.0
UseMaxBuildJobs: true

PatchScript: <<
perl -pi -e 's,\@CFLAGS\@,,; s,\@MAGICK_API_LDFLAGS\@,-L%p/lib,; s,\@MAGICK_API_LIBS\@,-lGraphicsMagick,' magick/GraphicsMagick-config.in
perl -pi -e 's,\@CXXFLAGS\@,,; s,\@MAGICK_API_LDFLAGS\@,-L%p/lib,; s,\@MAGICK_API_LIBS\@,,' Magick++/bin/GraphicsMagick++-config.in
<<

ConfigureParams: <<
--x-includes=/usr/X11R6/include \
--x-libraries=/usr/X11R6/lib \
--enable-dependency-tracking \
--enable-shared \
--disable-static \
--enable-magick-compat \
--disable-openmp \
--with-modules \
--with-quantum-depth=16 \
--without-perl \
--without-wmf
<<

SetLDFLAGS: -Wl,-dead_strip_dylibs

CompileScript: <<
%{default_script}
fink-package-precedence .
<<

InfoTest: <<
TestScript: <<
# hald-clut-identity.sh and hald-clut-transform.sh fail under 10.6
# when OpenMP is used.
make check || exit 2
<<
<<

InstallScript: <<
make install DESTDIR=%d
<<

SplitOff: <<
Package: %N-shlibs

Depends: <<
bzip2-shlibs,
freetype219-shlibs,
ghostscript | ghostscript-nox,
lcms2-shlibs,
libjasper.1-shlibs,
libjbig-shlibs,
libjpeg8-shlibs,
libpng15-shlibs,
libtiff-shlibs,
libtool2-shlibs,
libxml2-shlibs,
x11-shlibs
<<

# These packages will be used if present, but GraphicsMagick will work without them.
Suggests: <<
autotrace-bin,
dcraw,
gnuplot | gnuplot-nogtk | gnuplot-nox,
graphviz,
hp2xx,
libwmf-bin,
mpeg2vidcodec,
transfig-graphicx
<<

Files: <<
lib/GraphicsMagick-%v
lib/libGraphicsMagick.3.dylib
lib/libGraphicsMagick++.3.dylib
lib/libGraphicsMagickWand.2.dylib
share/GraphicsMagick-%v
<<

Shlibs: <<
%p/lib/libGraphicsMagick.3.dylib 11.0.0 %n (>= 1.4-0.020111224)
%p/lib/libGraphicsMagick++.3.dylib 8.0.0 %n (>= 1.4-0.020111224)
%p/lib/libGraphicsMagickWand.2.dylib 6.0.0 %n (>= 1.4-0.020111224)
<<

DocFiles: ChangeLog NEWS.txt Copyright.txt README.txt TODO.txt
<<

SplitOff2: <<
Package: %N-dev

Depends: %N-shlibs (= %v-%r)
BuildDependsOnly: true

Files: <<
bin/*-config
include
lib/*.la
lib/libGraphicsMagick.dylib
lib/libGraphicsMagick++.dylib
lib/libGraphicsMagickWand.dylib
lib/pkgconfig
share/man/man1/*-config.1
<<

DocFiles: ChangeLog NEWS.txt Copyright.txt README.txt TODO.txt
<<

SplitOff3: <<
Package: %N-imagemagick-compat
Description: ImageMagick compatible wrapper commands
DescUsage: <<
This package provides replacements for ImageMagick's commands.
Scripts written to use ImageMagick should work fine with these.
<<

Conflicts: imagemagick, imagemagick-nox
Replaces: imagemagick, imagemagick-nox
Provides: imagemagick, imagemagick-nox
Depends: %N (= %v-%r)

Files: <<
bin/animate
bin/compare
bin/composite
bin/conjure
bin/convert
bin/display
bin/identify
bin/import
bin/mogrify
bin/montage
<<

DocFiles: ChangeLog NEWS.txt Copyright.txt README.txt TODO.txt
<<