imagemagick-dev stable port information

Info2: <<
Package: imagemagick%type_pkg[-nox]-dev
Type: -nox (boolean)
Version: 6.1.8
Revision: 1008
GCC: 4.0
Source: mirror:sourceforge:imagemagick/ImageMagick-%v-7.tar.gz
Source-MD5: a79d01f885b2727489c26238946be27a
SourceDirectory: ImageMagick-%v
SourceRename: ImageMagick-%v.tar.gz
Patch: %{ni}.patch
BuildDependsOnly: True
Depends: imagemagick%type_pkg[-nox]-shlibs (= %v-%r), (%type_raw[-nox] = .) x11-shlibs, (%type_raw[-nox] = .) x11, freetype219-shlibs
BuildDepends: libjpeg, libpng3, libtiff, libxml2, lcms, bzip2-dev, libiconv-dev, (%type_raw[-nox] = .) x11-dev, libtool14, freetype219
Conflicts: imagemagick-dev, imagemagick-nox-dev, imagemagick10-dev, imagemagick-nox10-dev
Replaces: imagemagick-dev, imagemagick-nox-dev, imagemagick10-dev, imagemagick-nox10-dev
Provides: (%type_raw[-nox] = -nox) imagemagick-dev
ConfigureParams: --without-perl --mandir='${prefix}/share/man' --enable-lzw --without-hdf5 --with-bzlib --without-dps --without-fpx --with-ttf --without-gslib --with-gs-font-dir=%p/share/ghostscript/fonts --without-jbig --with-jpeg --without-jp2 --with-lcms --without-mpeg2 --with-magic-plus-plus --with-png --with-tiff -without-wmf --with-xml --with-zlib
CompileScript: <<
#!/bin/sh -ev

export PATH=%p/lib/freetype219/bin:$PATH
if [ "%type_raw[-nox]" == "." ]; then
ac_cv_func_poll=no ./configure %c --with-x
fi
if [ "%type_raw[-nox]" == "-nox" ]; then
ac_cv_func_poll=no ./configure %c --without-x
fi
perl -pi -e 's,^LDFLAGS = ,LDFLAGS = -L%p/lib/freetype219/lib ,' Makefile
make
<<
Description: Image manipulation tools, oldest version
InstallScript: <<
#!/bin/sh -ev
make -j1 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
/bin/rm -f %i/lib/libltdl*
# remove the things which used to be in the imagemagick splitoff
/bin/rm -R %i/share/man
/bin/rm -R %i/share/ImageMagick-%v
/bin/mv %i/bin/*-config %i/
/bin/rm -f %i/bin/*
/bin/mv %i/*-config %i/bin/
<<
DescDetail: <<
Oldest version of imagemagick library.
<<
DescPort: <<
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.
<<
SplitOff: <<
Package: imagemagick%type_pkg[-nox]-shlibs
Depends: libtool14-shlibs, libjpeg-shlibs, libpng3-shlibs, libtiff-shlibs, bzip2, ghostscript%type_pkg[-nox], libxml2-shlibs, lcms-shlibs, (%type_raw[-nox] = .) x11-shlibs, (%type_raw[-nox] = .) x11, freetype219-shlibs
Conflicts: imagemagick-shlibs, imagemagick-nox-shlibs
Replaces: imagemagick-shlibs, imagemagick-nox-shlibs
Provides: (%type_raw[-nox] = -nox) imagemagick-shlibs
Files: lib/lib*.*.dylib %p/lib/ImageMagick-%v
Shlibs: <<
%p/lib/libMagick++.6.dylib 8.0.0 %n (>= 6.1.8-7)
%p/lib/libWand.6.dylib 8.0.0 %n (>= 6.1.8-7)
%p/lib/libMagick.6.dylib 8.0.0 %n (>= 6.1.8-7)
<<
DocFiles: www/Copyright.html README.txt ChangeLog NEWS
<<
DocFiles: www/Copyright.html README.txt ChangeLog NEWS
License: BSD
Maintainer: Dave Morrison
Homepage: http://www.imagemagick.org/
#end of Info2
<<

imagemagick-dev stable port .patch

diff -ruN ImageMagick-6.1.8/coders/png.c ImageMagick-6.1.8-patched/coders/png.c
--- ImageMagick-6.1.8/coders/png.c 2005-01-13 20:07:47.000000000 -0500
+++ ImageMagick-6.1.8-patched/coders/png.c 2006-08-05 12:26:06.000000000 -0400
@@ -1701,7 +1701,7 @@
#if defined(PNG_USE_PNGGCCRD) && defined(PNG_ASSEMBLER_CODE_SUPPORTED) \
&& (PNG_LIBPNG_VER >= 10200)
/* Disable thread-unsafe features of pnggccrd */
- if (png_access_version() >= 10200)
+ if (png_access_version_number() >= 10200)
{
png_uint_32 mmx_disable_mask=0;
png_uint_32 asm_flags;
@@ -1710,8 +1710,8 @@
| PNG_ASM_FLAG_MMX_READ_FILTER_SUB \
| PNG_ASM_FLAG_MMX_READ_FILTER_AVG \
| PNG_ASM_FLAG_MMX_READ_FILTER_PAETH );
- asm_flags=png_get_asm_flags(png_ptr);
- png_set_asm_flags(png_ptr, asm_flags & ~mmx_disable_mask);
+ asm_flags=png_get_asm_flags(ping);
+ png_set_asm_flags(ping, asm_flags & ~mmx_disable_mask);
}
#endif

imagemagick-dev _unstable_ port information

Info2: <<
Package: imagemagick%type_pkg[-nox]-dev
Type: -nox (boolean)
Version: 6.1.8
Revision: 1008
GCC: 4.0
Source: mirror:sourceforge:imagemagick/ImageMagick-%v-7.tar.gz
Source-MD5: a79d01f885b2727489c26238946be27a
SourceDirectory: ImageMagick-%v
SourceRename: ImageMagick-%v.tar.gz
Patch: %{ni}.patch
BuildDependsOnly: True
Depends: imagemagick%type_pkg[-nox]-shlibs (= %v-%r), (%type_raw[-nox] = .) x11-shlibs, (%type_raw[-nox] = .) x11, freetype219-shlibs
BuildDepends: libjpeg, libpng3, libtiff, libxml2, lcms, bzip2-dev, libiconv-dev, (%type_raw[-nox] = .) x11-dev, libtool14, freetype219
Conflicts: imagemagick-dev, imagemagick-nox-dev, imagemagick10-dev, imagemagick-nox10-dev
Replaces: imagemagick-dev, imagemagick-nox-dev, imagemagick10-dev, imagemagick-nox10-dev
Provides: (%type_raw[-nox] = -nox) imagemagick-dev
ConfigureParams: --without-perl --mandir='${prefix}/share/man' --enable-lzw --without-hdf5 --with-bzlib --without-dps --without-fpx --with-ttf --without-gslib --with-gs-font-dir=%p/share/ghostscript/fonts --without-jbig --with-jpeg --without-jp2 --with-lcms --without-mpeg2 --with-magic-plus-plus --with-png --with-tiff -without-wmf --with-xml --with-zlib
CompileScript: <<
#!/bin/sh -ev

export PATH=%p/lib/freetype219/bin:$PATH
if [ "%type_raw[-nox]" == "." ]; then
ac_cv_func_poll=no ./configure %c --with-x
fi
if [ "%type_raw[-nox]" == "-nox" ]; then
ac_cv_func_poll=no ./configure %c --without-x
fi
perl -pi -e 's,^LDFLAGS = ,LDFLAGS = -L%p/lib/freetype219/lib ,' Makefile
make
<<
Description: Image manipulation tools, oldest version
InstallScript: <<
#!/bin/sh -ev
make -j1 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
/bin/rm -f %i/lib/libltdl*
# remove the things which used to be in the imagemagick splitoff
/bin/rm -R %i/share/man
/bin/rm -R %i/share/ImageMagick-%v
/bin/mv %i/bin/*-config %i/
/bin/rm -f %i/bin/*
/bin/mv %i/*-config %i/bin/
<<
DescDetail: <<
Oldest version of imagemagick library.
<<
DescPort: <<
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.
<<
SplitOff: <<
Package: imagemagick%type_pkg[-nox]-shlibs
Depends: libtool14-shlibs, libjpeg-shlibs, libpng3-shlibs, libtiff-shlibs, bzip2, ghostscript%type_pkg[-nox], libxml2-shlibs, lcms-shlibs, (%type_raw[-nox] = .) x11-shlibs, (%type_raw[-nox] = .) x11, freetype219-shlibs
Conflicts: imagemagick-shlibs, imagemagick-nox-shlibs
Replaces: imagemagick-shlibs, imagemagick-nox-shlibs
Provides: (%type_raw[-nox] = -nox) imagemagick-shlibs
Files: lib/lib*.*.dylib %p/lib/ImageMagick-%v
Shlibs: <<
%p/lib/libMagick++.6.dylib 8.0.0 %n (>= 6.1.8-7)
%p/lib/libWand.6.dylib 8.0.0 %n (>= 6.1.8-7)
%p/lib/libMagick.6.dylib 8.0.0 %n (>= 6.1.8-7)
<<
DocFiles: www/Copyright.html README.txt ChangeLog NEWS
<<
DocFiles: www/Copyright.html README.txt ChangeLog NEWS
License: BSD
Maintainer: Dave Morrison
Homepage: http://www.imagemagick.org/
#end of Info2
<<

imagemagick-dev _unstable_ port .patch

diff -ruN ImageMagick-6.1.8/coders/png.c ImageMagick-6.1.8-patched/coders/png.c
--- ImageMagick-6.1.8/coders/png.c 2005-01-13 20:07:47.000000000 -0500
+++ ImageMagick-6.1.8-patched/coders/png.c 2006-08-05 12:26:06.000000000 -0400
@@ -1701,7 +1701,7 @@
#if defined(PNG_USE_PNGGCCRD) && defined(PNG_ASSEMBLER_CODE_SUPPORTED) \
&& (PNG_LIBPNG_VER >= 10200)
/* Disable thread-unsafe features of pnggccrd */
- if (png_access_version() >= 10200)
+ if (png_access_version_number() >= 10200)
{
png_uint_32 mmx_disable_mask=0;
png_uint_32 asm_flags;
@@ -1710,8 +1710,8 @@
| PNG_ASM_FLAG_MMX_READ_FILTER_SUB \
| PNG_ASM_FLAG_MMX_READ_FILTER_AVG \
| PNG_ASM_FLAG_MMX_READ_FILTER_PAETH );
- asm_flags=png_get_asm_flags(png_ptr);
- png_set_asm_flags(png_ptr, asm_flags & ~mmx_disable_mask);
+ asm_flags=png_get_asm_flags(ping);
+ png_set_asm_flags(ping, asm_flags & ~mmx_disable_mask);
}
#endif