Info2: << Package: libmagickcore7.q16.9-shlibs # qdepth can be 16, 32, 64, but currently only q16 passes tests # When working, q32 and q64 should be in a separate .info to avoid # defining the pkg "imagemagick" more than once in the same .info. Type: vers (7.0.11), patch (13), qdepth (16) Version: 7.0.11.13 Revision: 2 Description: ImageMagick core library (q%type_raw[qdepth]) License: OSI-Approved Maintainer: Hanspeter Niederstrasser Depends: << imagemagick7.q%type_raw[qdepth]-common (>= %v-%r), bzip2-shlibs, fftw3-shlibs, fontconfig2-shlibs, freetype219-shlibs (>= 2.12.1-4), glib2-shlibs, lcms2-shlibs, libjbig-shlibs, libjpeg9-shlibs, liblqr1-shlibs, liblzma5-shlibs, libopenjp2.7-shlibs, libpng16-shlibs, libraqm0-shlibs, libraw20-shlibs, libtiff6-shlibs, libtool2-shlibs, libwebp7-shlibs, libxml2-shlibs, libxt-shlibs, x11-shlibs << BuildDepends: << bzip2-dev, cairo (>= 1.12.14-2), fftw3, fink (>= 0.34), fink-buildenv-modules (>= 0.1.3), fink-package-precedence, fontconfig2-dev, freetype219 (>= 2.12.1-4), glib2-dev, gtk+2-dev, ilmbase24-dev, lcms2, libdjvulibre21-dev, libiconv-dev, libjbig, libjpeg9, liblqr1, liblzma5, libopenexr24-dev, libopenjp2.7, libpng16, libraqm0-dev, libraw20-dev, librsvg2, libtiff6, libtool2, libwebp7, libwmf, libxml2, libxt, libzstd1-dev, pkgconfig, x11-dev << Recommends: << ghostscript, ghostscript-fonts << Suggests: << libmagickcore7.q%type_raw[qdepth].9-extra << CustomMirror: << Primary: http://www.imagemagick.org/download nam-US: http://www.imagemagick.org/download/releases << Source: mirror:custom:ImageMagick-%type_raw[vers]-%type_raw[patch].tar.xz Source-Checksum: SHA256(11797503bc4dd72c7e65e60783e156fd74ec0a551d2f1fe1f41eaa4bd06987a5) Source2: https://raw.githubusercontent.com/apple-opensource/zlib/9262b43df5648cd5ed4a2d4f79895eeefec0dbe9/zlib/zlib.pc Source2-Checksum: SHA256(b5d9db6f6c7dfdb3719a9c55074fd64713fbc36d8ebf720405b3b23c95cac805) Source2ExtractDir: pkgconfig PatchScript: << ### Make sure we don't find X11/Freetype on 10.7 perl -pi -e 's|CFLAGS\=\"\$FREETYPE_CFLAGS \$CFLAGS\"|CPPFLAGS\=\"\$FREETYPE_CFLAGS \$CPPFLAGS\"|g' configure << ### OpenMP needs not-clang ### frozenpaths hardcodes the full path to 3rd party tools. Needed. ### perl turned off because perlmagick-pm is the package that provides that ### pango needs >= 1.28.1 ### --prefix needed as long as install_names are Core=2, Wand=0, ++=1 #### bindir, docdir, includedir, & mandir are all because of that ConfigureParams: << --prefix=%p/lib/ImageMagick-7.0.11 \ --bindir=%p/bin \ --docdir=%p/share/doc/ImageMagick-7 \ --includedir=%p/include \ --mandir=%p/share/man \ --disable-silent-rules \ --enable-dependency-tracking \ --x-includes=${X11_INCLUDE_DIR} \ --x-libraries=${X11_LIBRARY_DIR} \ --disable-openmp \ --disable-opencl \ --enable-shared \ --disable-static \ --enable-hdri \ --with-modules \ --with-quantum-depth=%type_raw[qdepth] \ --with-frozenpaths \ --with-magick-plus-plus \ --without-perl \ --with-bzlib \ --with-x \ --without-autotrace \ --without-dps \ --with-djvu \ --with-fftw \ --without-flif \ --without-fpx \ --without-gslib \ --with-gs-font-dir=%p/share/ghostscript/fonts \ --without-gvc \ --without-heic \ --with-jbig \ --with-jpeg \ --with-openjp2 \ --with-lcms \ --with-lqr \ --with-lzma \ --with-openexr \ --without-pango \ --with-png \ --with-rsvg \ --with-tiff \ --with-webp \ --with-windows-font-dir=/Library/Fonts \ --with-wmf \ --with-xml << GCC: 4.0 CompileScript: << #!/bin/sh -ev . %p/sbin/fink-buildenv-helper.sh export PKG_CONFIG_PATH=`pwd`/../pkgconfig:%p/lib/glib-2.0/pkgconfig-strict:$PKG_CONFIG_PATH ./configure %c /usr/bin/make -w fink-package-precedence --prohibit-bdep=libmagickcore7.q%type_raw[qdepth].9-dev,libmagickwand7.q%type_raw[qdepth].9-dev,libmagick++7.q%type_raw[qdepth].5-dev . << InfoTest: << # Dep on fontconfig-path # https://github.com/ImageMagick/ImageMagick/issues/310 TestDepends: fontconfig-path TestScript: << make check || exit 2 fink-package-precedence --prohibit-bdep=libmagickcore7.q%type_raw[qdepth].9-dev,libmagickwand7.q%type_raw[qdepth].9-dev,libmagick++7.q%type_raw[qdepth].5-dev . << << InstallScript: << #!/bin/sh -ev make install DESTDIR=%d # Rename magick into qdepth variantized name. for FILE in magick; do mv %i/bin/$FILE %i/bin/$FILE-Q%type_raw[qdepth] done # Varianting other IM programs (except *-config) are handled # by ln -s loop below, so we remove the original symlinks to 'magick'. for FILE in animate compare composite conjure convert display identify import magick-script mogrify montage stream; do rm %i/bin/$FILE done # As of IM-7, the different programs are just symlinks to 'magick', so we now need to symlink the varianted progs to magick-QDEPTH. for FILE in animate compare composite conjure convert display identify import magick-script mogrify montage stream; do ln -s magick-Q%type_raw[qdepth] %i/bin/$FILE-Q%type_raw[qdepth] done # Rename manpages (except *-config) into qdepth variantized names. for FILE in ImageMagick animate compare composite conjure convert display identify import magick magick-script mogrify montage stream; do mv %i/share/man/man1/$FILE.1 %i/share/man/man1/$FILE-Q%type_raw[qdepth].1 done ### Move docs to %p/share/doc for ease of transition install -m 755 -d %i/share/doc mv %i/lib/ImageMagick-7.0.11/share/doc/ImageMagick-7 %i/share/doc ### Make symlinks in %p/lib to unversioned dylibs and .pc files in libdir ### .pc install -m 755 -d %i/lib/pkgconfig for FILE in ImageMagick MagickCore MagickWand Magick++; do ln -s %p/lib/ImageMagick-7.0.11/lib/pkgconfig/$FILE-7.Q%type_raw[qdepth]HDRI.pc %i/lib/pkgconfig/$FILE-7.Q%type_raw[qdepth]HDRI.pc ln -s %p/lib/ImageMagick-7.0.11/lib/pkgconfig/$FILE.pc %i/lib/pkgconfig/$FILE.pc done ### .dylib for FILE in Magick++ MagickCore MagickWand; do ln -s %p/lib/ImageMagick-7.0.11/lib/lib$FILE-7.Q%type_raw[qdepth]HDRI.dylib %i/lib/lib$FILE-7.Q%type_raw[qdepth]HDRI.dylib done << DocFiles: AUTHORS.txt ChangeLog LICENSE NEWS.txt NOTICE README.txt Shlibs: << %p/lib/ImageMagick-7.0.11/lib/libMagickCore-7.Q%type_raw[qdepth]HDRI.9.dylib 10.0.0 %n (>= 7.0.11.48-1) << SplitOff: << Package: libmagickcore7.q%type_raw[qdepth].9-dev Description: ImageMagick core library (q%type_raw[qdepth]) dev files Depends: %N (= %v-%r) BuildDependsOnly: true Files: << bin/MagickCore-config include/ImageMagick-7/MagickCore lib/libMagickCore-7.Q%type_raw[qdepth]HDRI.dylib lib/pkgconfig/ImageMagick-7.Q%type_raw[qdepth]HDRI.pc lib/pkgconfig/ImageMagick.pc lib/pkgconfig/MagickCore-7.Q%type_raw[qdepth]HDRI.pc lib/pkgconfig/MagickCore.pc lib/ImageMagick-7.0.11/lib/libMagickCore-7.Q%type_raw[qdepth]HDRI.dylib lib/ImageMagick-7.0.11/lib/libMagickCore-7.Q%type_raw[qdepth]HDRI.la lib/ImageMagick-7.0.11/lib/pkgconfig/ImageMagick-7.Q%type_raw[qdepth]HDRI.pc lib/ImageMagick-7.0.11/lib/pkgconfig/ImageMagick.pc lib/ImageMagick-7.0.11/lib/pkgconfig/MagickCore-7.Q%type_raw[qdepth]HDRI.pc lib/ImageMagick-7.0.11/lib/pkgconfig/MagickCore.pc share/man/man1/MagickCore-config.1 << Conflicts: << libmagickcore6.9.q16.2-dev, libmagickcore6.9.q32.2-dev, libmagickcore6.9.q64.2-dev, libmagickwand6.9.q16.2-dev, libmagickwand6.9.q32.2-dev, libmagickwand6.9.q64.2-dev, libmagick++6.9.q16.6-dev, libmagick++6.9.q32.6-dev, libmagick++6.9.q64.6-dev, libmagickcore7.q16.2-dev, libmagickcore7.q16.6-dev, libmagickcore7.q16.10-dev, libmagickwand7.q16.0-dev, libmagickwand7.q16.6-dev, libmagickwand7.q16.10-dev, libmagick++7.q16.2-dev, libmagick++7.q16.4-dev << Replaces: << libmagickcore6.9.q16.2-dev, libmagickcore6.9.q32.2-dev, libmagickcore6.9.q64.2-dev, libmagickwand6.9.q16.2-dev, libmagickwand6.9.q32.2-dev, libmagickwand6.9.q64.2-dev, libmagick++6.9.q16.6-dev, libmagick++6.9.q32.6-dev, libmagick++6.9.q64.6-dev, libmagickcore7.q16.2-dev, libmagickcore7.q16.6-dev, libmagickcore7.q16.10-dev, libmagickwand7.q16.0-dev, libmagickwand7.q16.6-dev, libmagickwand7.q16.10-dev, libmagick++7.q16.2-dev, libmagick++7.q16.4-dev << DocFiles: AUTHORS.txt ChangeLog LICENSE NEWS.txt NOTICE README.txt << SplitOff2: << Package: libmagickwand7.q%type_raw[qdepth].9-shlibs Description: MagickWand library (q%type_raw[qdepth]) Depends: << imagemagick7.q%type_raw[qdepth]-common (>= %v-%r), %N (= %v-%r), bzip2-shlibs, fftw3-shlibs, fontconfig2-shlibs, freetype219-shlibs (>= 2.12.1-4), glib2-shlibs, lcms2-shlibs, liblqr1-shlibs, libraqm0-shlibs, libtool2-shlibs, libxml2-shlibs, libxt-shlibs, x11-shlibs << Files: << lib/ImageMagick-7.0.11/lib/libMagickWand-7.Q%type_raw[qdepth]HDRI.9.dylib << DocFiles: AUTHORS.txt ChangeLog LICENSE NEWS.txt NOTICE README.txt Shlibs: << %p/lib/ImageMagick-7.0.11/lib/libMagickWand-7.Q%type_raw[qdepth]HDRI.9.dylib 10.0.0 %n (>= 7.0.11.4-1) << << SplitOff3: << Package: libmagickwand7.q%type_raw[qdepth].9-dev Description: MagickWand library (q%type_raw[qdepth]) dev files Depends: libmagickwand7.q%type_raw[qdepth].9-shlibs (= %v-%r) BuildDependsOnly: true Files: << bin/MagickWand-config include/ImageMagick-7/MagickWand lib/libMagickWand-7.Q%type_raw[qdepth]HDRI.dylib lib/pkgconfig/MagickWand-7.Q%type_raw[qdepth]HDRI.pc lib/pkgconfig/MagickWand.pc lib/ImageMagick-7.0.11/lib/libMagickWand-7.Q%type_raw[qdepth]HDRI.dylib lib/ImageMagick-7.0.11/lib/libMagickWand-7.Q%type_raw[qdepth]HDRI.la lib/ImageMagick-7.0.11/lib/pkgconfig/MagickWand-7.Q%type_raw[qdepth]HDRI.pc lib/ImageMagick-7.0.11/lib/pkgconfig/MagickWand.pc share/man/man1/MagickWand-config.1 << Conflicts: << libmagickcore6.9.q16.2-dev, libmagickcore6.9.q32.2-dev, libmagickcore6.9.q64.2-dev, libmagickwand6.9.q16.2-dev, libmagickwand6.9.q32.2-dev, libmagickwand6.9.q64.2-dev, libmagick++6.9.q16.6-dev, libmagick++6.9.q32.6-dev, libmagick++6.9.q64.6-dev, libmagickcore7.q16.2-dev, libmagickcore7.q16.6-dev, libmagickcore7.q16.10-dev, libmagickwand7.q16.0-dev, libmagickwand7.q16.6-dev, libmagickwand7.q16.10-dev, libmagick++7.q16.2-dev, libmagick++7.q16.4-dev << Replaces: << libmagickcore6.9.q16.2-dev, libmagickcore6.9.q32.2-dev, libmagickcore6.9.q64.2-dev, libmagickwand6.9.q16.2-dev, libmagickwand6.9.q32.2-dev, libmagickwand6.9.q64.2-dev, libmagick++6.9.q16.6-dev, libmagick++6.9.q32.6-dev, libmagick++6.9.q64.6-dev, libmagickcore7.q16.2-dev, libmagickcore7.q16.6-dev, libmagickcore7.q16.10-dev, libmagickwand7.q16.0-dev, libmagickwand7.q16.6-dev, libmagickwand7.q16.10-dev, libmagick++7.q16.2-dev, libmagick++7.q16.4-dev << DocFiles: AUTHORS.txt ChangeLog LICENSE NEWS.txt NOTICE README.txt << SplitOff4: << Package: libmagick++7.q%type_raw[qdepth].5-shlibs Description: Magick++ library (q%type_raw[qdepth]) Depends: << imagemagick7.q%type_raw[qdepth]-common (>= %v-%r), %N (= %v-%r), libmagickwand7.q%type_raw[qdepth].9-shlibs (= %v-%r), bzip2-shlibs, fftw3-shlibs, fontconfig2-shlibs, freetype219-shlibs (>= 2.12.1-4), glib2-shlibs, lcms2-shlibs, liblqr1-shlibs, libraqm0-shlibs, libtool2-shlibs, libxml2-shlibs, libxt-shlibs, x11-shlibs << Files: << lib/ImageMagick-7.0.11/lib/libMagick++-7.Q%type_raw[qdepth]HDRI.5.dylib << DocFiles: AUTHORS.txt ChangeLog LICENSE NEWS.txt NOTICE README.txt Shlibs: << %p/lib/ImageMagick-7.0.11/lib/libMagick++-7.Q%type_raw[qdepth]HDRI.5.dylib 6.0.0 %n (>= 7.0.11.4-1) << << SplitOff5: << Package: libmagick++7.q%type_raw[qdepth].5-dev Description: Magick++ library (q%type_raw[qdepth]) dev files Depends: libmagick++7.q%type_raw[qdepth].5-shlibs (= %v-%r) BuildDependsOnly: true Files: << bin/Magick++-config include/ImageMagick-7/Magick++ include/ImageMagick-7/Magick++.h lib/libMagick++-7.Q%type_raw[qdepth]HDRI.dylib lib/pkgconfig/Magick++-7.Q%type_raw[qdepth]HDRI.pc lib/pkgconfig/Magick++.pc lib/ImageMagick-7.0.11/lib/libMagick++-7.Q%type_raw[qdepth]HDRI.dylib lib/ImageMagick-7.0.11/lib/libMagick++-7.Q%type_raw[qdepth]HDRI.la lib/ImageMagick-7.0.11/lib/pkgconfig/Magick++-7.Q%type_raw[qdepth]HDRI.pc lib/ImageMagick-7.0.11/lib/pkgconfig/Magick++.pc share/man/man1/Magick++-config.1 << Conflicts: << libmagickcore6.9.q16.2-dev, libmagickcore6.9.q32.2-dev, libmagickcore6.9.q64.2-dev, libmagickwand6.9.q16.2-dev, libmagickwand6.9.q32.2-dev, libmagickwand6.9.q64.2-dev, libmagick++6.9.q16.6-dev, libmagick++6.9.q32.6-dev, libmagick++6.9.q64.6-dev, libmagickcore7.q16.2-dev, libmagickcore7.q16.6-dev, libmagickcore7.q16.10-dev, libmagickwand7.q16.0-dev, libmagickwand7.q16.6-dev, libmagickwand7.q16.10-dev, libmagick++7.q16.2-dev, libmagick++7.q16.4-dev << Replaces: << libmagickcore6.9.q16.2-dev, libmagickcore6.9.q32.2-dev, libmagickcore6.9.q64.2-dev, libmagickwand6.9.q16.2-dev, libmagickwand6.9.q32.2-dev, libmagickwand6.9.q64.2-dev, libmagick++6.9.q16.6-dev, libmagick++6.9.q32.6-dev, libmagick++6.9.q64.6-dev, libmagickcore7.q16.2-dev, libmagickcore7.q16.6-dev, libmagickcore7.q16.10-dev, libmagickwand7.q16.0-dev, libmagickwand7.q16.6-dev, libmagickwand7.q16.10-dev, libmagick++7.q16.2-dev, libmagick++7.q16.4-dev << DocFiles: AUTHORS.txt ChangeLog LICENSE NEWS.txt NOTICE README.txt << SplitOff6: << Package: imagemagick7.q%type_raw[qdepth]-common Description: Infrastructure for ImageMagick (q%type_raw[qdepth]) Files: << lib/ImageMagick-7.0.11/etc/ImageMagick-7/colors.xml lib/ImageMagick-7.0.11/etc/ImageMagick-7/delegates.xml lib/ImageMagick-7.0.11/etc/ImageMagick-7/log.xml lib/ImageMagick-7.0.11/etc/ImageMagick-7/mime.xml lib/ImageMagick-7.0.11/etc/ImageMagick-7/policy.xml lib/ImageMagick-7.0.11/etc/ImageMagick-7/quantization-table.xml lib/ImageMagick-7.0.11/etc/ImageMagick-7/thresholds.xml lib/ImageMagick-7.0.11/etc/ImageMagick-7/type-apple.xml lib/ImageMagick-7.0.11/etc/ImageMagick-7/type-dejavu.xml lib/ImageMagick-7.0.11/etc/ImageMagick-7/type-ghostscript.xml lib/ImageMagick-7.0.11/etc/ImageMagick-7/type-urw-base35.xml lib/ImageMagick-7.0.11/etc/ImageMagick-7/type-windows.xml lib/ImageMagick-7.0.11/etc/ImageMagick-7/type.xml << DocFiles: AUTHORS.txt ChangeLog LICENSE NEWS.txt NOTICE README.txt << SplitOff7: << Package: imagemagick7.q%type_raw[qdepth]-doc Description: ImageMagick documentation Files: << share/doc/ImageMagick-7 << << SplitOff8: << # The modules in this SplitOff depend on both IMCore and IMWand, so offload # here to avoid circular dependencies in IMCore. # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524613 Package: libmagickcore7.q%type_raw[qdepth].9-extra Description: Extra libmagickcore7.q%type_raw[qdepth].2 modules Depends: << %N (>= %v-%r), libmagickwand7.q%type_raw[qdepth].9-shlibs (>= %v-%r), bzip2-shlibs, cairo-shlibs (>= 1.12.14-2), fftw3-shlibs, fontconfig2-shlibs, freetype219-shlibs (>= 2.12.1-4), glib2-shlibs, gtk+2-shlibs, ilmbase24-shlibs, lcms2-shlibs, libdjvulibre21-shlibs, libjpeg9-shlibs, liblqr1-shlibs, liblzma5-shlibs, libopenexr24-shlibs, libraqm0-shlibs, librsvg2-shlibs, libtool2-shlibs, libwmf-shlibs, libxml2-shlibs, libxt-shlibs, x11-shlibs << Enhances: %N DocFiles: AUTHORS.txt ChangeLog LICENSE NEWS.txt NOTICE README.txt Files: << lib/ImageMagick-7.0.11/lib/ImageMagick-%type_raw[vers]/modules-Q%type_raw[qdepth]HDRI/coders/djvu.{la,so} lib/ImageMagick-7.0.11/lib/ImageMagick-%type_raw[vers]/modules-Q%type_raw[qdepth]HDRI/coders/dot.{la,so} lib/ImageMagick-7.0.11/lib/ImageMagick-%type_raw[vers]/modules-Q%type_raw[qdepth]HDRI/coders/exr.{la,so} lib/ImageMagick-7.0.11/lib/ImageMagick-%type_raw[vers]/modules-Q%type_raw[qdepth]HDRI/coders/pango.{la,so} lib/ImageMagick-7.0.11/lib/ImageMagick-%type_raw[vers]/modules-Q%type_raw[qdepth]HDRI/coders/svg.{la,so} lib/ImageMagick-7.0.11/lib/ImageMagick-%type_raw[vers]/modules-Q%type_raw[qdepth]HDRI/coders/wmf.{la,so} << << SplitOff9: << Package: imagemagick Description: Image manipulation tools (q%type_raw[qdepth]) Depends: << %N (>= %v-%r), bzip2-shlibs, fftw3-shlibs, fontconfig2-shlibs, freetype219-shlibs (>= 2.12.1-4), glib2-shlibs, lcms2-shlibs, liblqr1-shlibs, libraqm0-shlibs, libmagickwand7.q%type_raw[qdepth].9-shlibs (>= %v-%r), libtool2-shlibs, libxml2-shlibs, libxt-shlibs, x11-shlibs << # R/S from debian Recommends: << ghostscript, libmagickcore7.q%type_raw[qdepth].9-extra (>= %v-%r), netpbm-bin << Suggests: << autotrace-bin, curl, enscript, ffmpeg, gimp2-svg, gnuplot-bin, grads, graphviz, libwmf-bin, mplayer, povray, transfig << Files: << bin share/man << DocFiles: AUTHORS.txt ChangeLog LICENSE NEWS.txt NOTICE README.txt Conflicts: << imagemagick, imagemagick-nox, graphicsmagick-imagemagick-compat << Replaces: << imagemagick, imagemagick-nox, graphicsmagick-imagemagick-compat << PostInstScript: << # qdepth=16 has the highest priority (16 > 64 > 32) if [ "%type_raw[qdepth]" -eq "16" ]; then QDEPTH=100 else QDEPTH=%type_raw[qdepth] fi # Add unvarianted binaries in %p/bin for FILE in animate compare composite conjure convert display identify import magick magick-script mogrify montage stream; do update-alternatives --install %p/bin/$FILE $FILE %p/bin/$FILE-Q%type_raw[qdepth] $QDEPTH done # Add unvarianted manpages for FILE in ImageMagick animate compare composite conjure convert display identify import magick magick-script mogrify montage stream; do update-alternatives --install %p/share/man/man1/$FILE.1 $FILE.1 %p/share/man/man1/$FILE-Q%type_raw[qdepth].1 $QDEPTH done << PreRmScript: << if [ $1 != "upgrade" ]; then for FILE in animate compare composite conjure convert display identify import magick magick-script mogrify montage stream; do update-alternatives --remove $FILE %p/bin/$FILE-Q%type_raw[qdepth] done for FILE in ImageMagick animate compare composite conjure convert display identify import magick magick-script mogrify montage stream; do update-alternatives --remove $FILE.1 %p/share/man/man1/$FILE-Q%type_raw[qdepth].1 done fi << << Homepage: http://www.imagemagick.org 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. The "imagemagick" package installs the standard quantum-depth=16 suite. << DescPackaging: << The various runtime qdepth variants coexist with each other. The -dev packages all C/R with -dev packages from other variants. However, packagers must make sure that all the necessary -dev packages are installed as needed since there is no way to enforce inherited BuildDepends through the .info file. << <<