imagemagick stable port information

Info2: <<
Package: imagemagick%type_pkg[-nox]
Type: -nox .
Version: 6.5.8.10
Revision: 2
GCC: 4.0
Source: mirror:sourceforge:imagemagick/legacy/ImageMagick-6.5.8-10.tar.gz
Source-MD5: 6f9abe829e718a04720cc4f9ea4f8606
SourceDirectory: ImageMagick-6.5.8-10
PatchFile: imagemagick.patch
PatchFile-MD5: 466d567dadf72e5fb81b175d21d0e9a3
Depends: <<
(%type_raw[-nox] = .) %N2-shlibs (= %v-%r),
lcms-shlibs (>= 1.11-1), libtiff-shlibs (>= 3.6.1-3), libjasper.1-shlibs (>= 1.900.1-1), libpng14-shlibs, libdjvulibre21-shlibs (>= 3.5.21-1003), libjpeg8-shlibs, fontconfig2-shlibs (>= 2.4.1-1), expat1-shlibs (>= 2.0.0-1), bzip2-shlibs (>= 1.0.2-2), libxml2-shlibs (>= 2.6.30-1), libiconv (>= 1.11-1), freetype219-shlibs (>= 2.3.5-1), libjbig-shlibs,
ghostscript | ghostscript%type_pkg[-nox],
(%type_raw[-nox] = .) openexr,
(%type_raw[-nox] = .) libwmf-shlibs (>= 0.2.8.4-2),
(%type_raw[-nox] = .) x11-shlibs
<<
BuildDepends: <<
lcms (>= 1.11-1), libtiff (>= 3.6.1-3), libjasper.1 (>= 1.900.1-1), libpng14, libdjvulibre21-dev (>= 3.5.21-1003), libjpeg8, fontconfig2-dev (>= 2.4.1-1), expat1 (>= 2.0.0-1), bzip2-dev (>= 1.0.2-2), libxml2 (>= 2.6.30-1), libiconv-dev (>= 1.11-1), freetype219 (>= 2.3.5-1), libjbig,
pkgconfig (>= 0.21-1), fink (>= 0.24.12),
(%type_raw[-nox] = .) libtool2,
(%type_raw[-nox] = .) openexr-dev,
(%type_raw[-nox] = .) cairo (>= 1.6-1),
(%type_raw[-nox] = .) glib2-dev (>= 2.14.0-1),
(%type_raw[-nox] = .) glitz,
(%type_raw[-nox] = .) gtk+2-dev (>= 2.12.0-1),
(%type_raw[-nox] = .) libcroco3 (>= 0.6.0-11),
(%type_raw[-nox] = .) libgettext8-dev,
(%type_raw[-nox] = .) libgsf1.114-dev,
(%type_raw[-nox] = .) librsvg2 (>= 2.20.0-1),
(%type_raw[-nox] = .) libwmf (>= 0.2.8.4-2),
(%type_raw[-nox] = .) pango1-xft2-ft219-dev (>= 1.18.4-4),
(%type_raw[-nox] = .) pixman (>= 0.10.0-1),
(%type_raw[-nox] = .) x11-dev,
(%type_raw[-nox] = .) xft2-dev
<<
Conflicts: imagemagick, imagemagick-nox, graphicsmagick-imagemagick-compat
Replaces: imagemagick, imagemagick-nox, imagemagick10-shlibs, imagemagick-nox10-shlibs, imagemagick10-dev (<= 1:6.3.5-1006), graphicsmagick-imagemagick-compat
Provides: (%type_raw[-nox] = .) imagemagick-nox

PatchScript: <<
sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1
perl -pi -e 's,\@OPENEXR_LIBS\@,$& -lstdc++,' Makefile.in
<<
ConfigureParams: <<
--without-perl --mandir='${prefix}/share/man' --enable-libtool-verbose --with-bzlib --without-dps --without-fpx \
--with-gs-font-dir=%p/share/ghostscript/fonts --without-gslib --without-gvc --with-jpeg --with-lcms \
--without-fftw --without-lqr --with-jbig \
--with-magick-plus-plus --with-png --with-tiff --with-xml --with-zlib --with-djvu --with-fontconfig --enable-hdri
<<
NoSetLDFLAGS: true
SetLDFLAGS: -L%p/lib/pango-ft219/lib -L%p/lib/fontconfig2/lib -L%p/lib/freetype219/lib -L%p/lib
NoSetCPPFLAGS: true
SetCPPFLAGS: -I%p/lib/pango-ft219/include -I%p/lib/fontconfig2/include -I%p/lib/freetype219/include -I%p/lib/freetype219/include/freetype2 -I%p/include
CompileScript: <<
#!/bin/sh -ev
export PATH=%p/lib/freetype219/bin:%p/lib/fontconfig2/bin:$PATH
export PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH"
if [ "%type_raw[-nox]" == "." ]; then
c="--with-x --with-rsvg --disable-static --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib"
else
c="--without-x --without-rsvg --without-wmf --disable-shared"
fi
PKG_CONFIG=%p/bin/pkg-config ac_cv_func_poll=no ./configure %c $c
make CCLD=g++
<<
Description: Image manipulation tools
InstallScript: <<
#!/bin/sh -ev
make install DESTDIR=%d
if [ "%type_raw[-nox]" == "." ]; then
perl -pi -e "s|-lXext -lSM -lICE -lX11||g" %i/lib/libMagick*la
perl -pi -e "s|-L/usr/X11R6/lib||g" %i/lib/libMagick*la
fi
perl -pi -e 's,-L%p/lib ,,g; s, -L%p/lib/freetype219/lib,,' %i/bin/*-config
/bin/rm -f %i/lib/libltdl*
if [ "%type_raw[-nox]" == "-nox" ]; then
/bin/rm -f %i/lib/*.la
else
perl -pi -e "s/dependency_libs=.*$/dependency_libs=''/" %i/lib/*.la
fi
<<
DescDetail: <<
ImageMagick is a robust collection of tools and libraries to read,
write, and manipulate an image in many image formats (over 68 major formats)
including popular formats like TIFF, JPEG, PNG, PDF, PhotoCD, and GIF.
With ImageMagick you can create images dynamically, making it
suitable for Web applications. You can also resize, rotate, sharpen,
color reduce, or add special effects to an image and save your
completed work in the same or a different image format.
<<
DescPackaging: <<
In version 6.3.8-1001 and later, the imagemagick-nox package no longer
builds shared libraries and no longer has a -shlibs splitoff. There is
still a -dev splitoff, in case another package wishes to link to the
static library. Moreover, imagemagick now provides imagemagick-nox, rather
than vice versa.

Also in version 6.3.8-1001 and later, we have moved the plugins directory
%p/lib/ImageMagick-%v from the -shlibs splitoff to the main package,
and for this reason, the main package must Replace older versions of the
splitoff packages.
<<
DescPort: <<
--without-perl is the correct option for building perlmagick as a
separate package (which we do).

configure has trouble finding pkg-config, so we tell it where to look.

Fink's graphviz package is very out of date, and doesn't contain the
libgvc library which imagemagick wants. (Disabled for now.)

In version >- 5.5.6-23, we get around the libpoll problem in OS X 10.3 by
fooling ./configure into thinking that poll is not present.

We take fontconfig (and hence freetype) support from fink:
1) in order to avoid x11 in the -nox version,
2) for the x11-version, because imagemagick wants
version >= 2.4.1 but Apple's X11 only supplies version 2.1.0,
If it was just for xorg, it would have been more economical
as a matter of footprint to use xorg's fontconfig and freetype.
<<
SplitOff: <<
Package: %N2-shlibs
Depends: <<
lcms-shlibs (>= 1.11-1), libtiff-shlibs (>= 3.6.1-3), libjpeg8-shlibs, fontconfig2-shlibs (>= 2.4.1-1), expat1-shlibs (>= 2.0.0-1), bzip2-shlibs (>= 1.0.2-2), freetype219-shlibs (>= 2.3.5-1), x11-shlibs, libtool2-shlibs, fltk-x11-shlibs (>= 1.1.7-1003)
<<
Files: lib/lib*.*.dylib
Shlibs: <<
%p/lib/libMagick++.2.dylib 3.0.0 %n (>= 6.5.7-1)
%p/lib/libMagickWand.2.dylib 3.0.0 %n (>= 6.5.7-1)
%p/lib/libMagickCore.2.dylib 3.0.0 %n (>= 6.5.7-1)
<<
DocFiles: LICENSE README.txt ChangeLog NEWS.txt
<<
SplitOff2: <<
Package: %N2-dev
Depends: (%type_raw[-nox] = .) %N2-shlibs (= %v-%r)
Conflicts: imagemagick-dev, imagemagick-nox-dev, imagemagick10-dev, imagemagick-nox10-dev, imagemagick1-dev, imagemagick-nox1-dev, imagemagick2-dev, imagemagick-nox2-dev
Replaces: imagemagick-dev, imagemagick-nox-dev, imagemagick10-dev, imagemagick-nox10-dev, imagemagick1-dev, imagemagick-nox1-dev, imagemagick2-dev, imagemagick-nox2-dev
Files: include lib/lib*.* lib/pkgconfig %p/bin/*-config
BuildDependsOnly: True
DocFiles: LICENSE README.txt ChangeLog NEWS.txt
<<
SplitOff3: <<
Package: %N2-svg
Depends: <<
(%type_raw[-nox] = .) cairo-shlibs (>= 1.6-1),
(%type_raw[-nox] = .) glib2-shlibs (>= 2.14.0-1),
(%type_raw[-nox] = .) gtk+2-shlibs (>= 2.12.0-1),
(%type_raw[-nox] = .) libcroco3-shlibs (>= 0.6.0-11),
(%type_raw[-nox] = .) libgettext8-shlibs,
(%type_raw[-nox] = .) libgsf1.114-shlibs,
(%type_raw[-nox] = .) librsvg2-shlibs (>= 2.20.0-1),
(%type_raw[-nox] = .) pango1-xft2-ft219-shlibs (>= 1.18.4-4),
%N (= %v-%r)
<<
Files: lib/ImageMagick-6.5.8/modules-Q16/coders/svg.*
DocFiles: LICENSE README.txt ChangeLog NEWS.txt
<<
DocFiles: LICENSE README.txt ChangeLog NEWS.txt
License: BSD
Maintainer: Todai Fink Team
Homepage: http://www.imagemagick.org/
#end of Info2
<<

imagemagick stable port .patch

--- ImageMagick-6.5.8-2/configure.orig 2009-11-28 21:53:06.000000000 +0100
+++ ImageMagick-6.5.8-2/configure 2011-03-22 13:22:20.000000000 +0900
@@ -7043,12 +7043,12 @@

case "$host" in
*darwin* | *-macos10*)
- if test -d /opt/local ; then
+ if test -d @PREFIX@ ; then
+ CPPFLAGS="$CPPFLAGS -I@PREFIX@/include"
+ LDFLAGS="$LDFLAGS -L@PREFIX@/lib"
+ elif test -d /opt/local ; then
CPPFLAGS="$CPPFLAGS -I/opt/local/include"
LDFLAGS="$LDFLAGS -L/opt/local/lib"
- elif test -d /sw ; then
- CPPFLAGS="$CPPFLAGS -I/sw/include"
- LDFLAGS="$LDFLAGS -L/sw/lib"
fi
# Check whether --enable-osx-universal-binary was given.
if test "${enable_osx_universal_binary+set}" = set; then :
--- ImageMagick-6.5.8-2/www/advanced-unix-installation.html.orig 2009-11-28 21:52:05.000000000 +0100
+++ ImageMagick-6.5.8-2/www/advanced-unix-installation.html 2011-03-22 13:17:00.000000000 +0900
@@ -539,7 +539,7 @@

$magick> make

Install ImageMagick:


$magick> sudo make install

To verify your install, type



-

$magick> /opt/local/bin/identify -list font


+

$magick> @PREFIX@/bin/identify -list font


to list all the fonts ImageMagick knows about.


To test the ImageMagick GUI, in a new shell, type:


$magick> display -display :0


imagemagick _unstable_ port .patch