# -*- coding: ascii; tab-width: 4 -*- Info4: << Package: graphicsmagick-q32 Epoch: 1 Version: 1.3.42 Revision: 1 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. This package is built --with-quantum-depth=32. It will be slower and use twice as much memory as "graphicsmagick" which is built --with-quantum-depth=16. The higher bit-depth should only be needed for scientific applications needing the highest accuracy. Quantum 16 is fine for most uses and is the most optimized. << DescPackaging: << Builds with OpenMP support on 10.6, but a couple of the tests fail, so explictly disable OpenMP everywhere. << DescPort: << * Turn off test for xmlNanoFTPNewCtxt because NanoFTP was deprecated in libxml2-2.10 and now throws implicit declaration errors when trying to use xmlNanoFTPInit(). << Homepage: http://www.graphicsmagick.org/ License: BSD Maintainer: Daniel Johnson Source: mirror:sourceforge:graphicsmagick/GraphicsMagick-%v.tar.xz Source-Checksum: SHA256(484fccfd2b2faf6c2ba9151469ece5072bcb91ba4ed73e75ed3d8e46c759d557) BuildDepends: << bzip2-dev, fink (>= 0.32), fink-package-precedence, freetype219, lcms2, libheif1-dev, libiconv-dev, libjasper7, libjbig, libjpeg9 (>= 9-3), liblzma5, libpng16, libtiff6, libtool2, libwebp7, libxml2 (>= 2.12.4), libzstd1-dev, x11-dev << Depends: << graphicsmagick1322-q32-shlibs (= %V) << SetCFLAGS: -Os SetCXXFLAGS: -Os GCC: 4.0 UseMaxBuildJobs: true PatchScript: << perl -pi -e 's,\@CFLAGS\@,,; s,\@MAGICK_API_LDFLAGS\@,-L%p/lib/graphicsmagick1322,; s,\@MAGICK_API_LIBS\@,-lGraphicsMagick,' magick/GraphicsMagick-config.in perl -pi -e 's,\@CXXFLAGS\@,,; s,\@MAGICK_API_LDFLAGS\@,-L%p/lib/graphicsmagick1322,; s,\@MAGICK_API_LIBS\@,,' Magick++/bin/GraphicsMagick++-config.in perl -pi -e 's|Subdir}/config|Subdir}/config-Q32|' configure # Mac OS X 10.8+ has strlcpy but either it's buggy or GM is using it wrong # because drawtest triggers "detected source and destination buffer overlap" # at utility.c:2573 (void) strlcpy(token,token+5,MaxTextExtent); # Using internal MagickStrlCpy instead works. perl -pi -e 's/strlcpy/MagickStrlCpy/' magick/utility.c << ConfigureParams: << --libdir='${prefix}/lib/graphicsmagick1322' \ --x-includes="$X11DIR/include" \ --x-libraries="$X11DIR/lib" \ --enable-dependency-tracking \ --enable-shared \ --disable-static \ --disable-magick-compat \ --disable-openmp \ --with-modules \ --with-quantum-depth=32 \ --enable-quantum-library-names \ --without-perl \ --without-wmf \ ac_cv_func_xmlNanoFTPNewCtxt=no << SetLDFLAGS: -Wl,-dead_strip_dylibs CompileScript: << #!/bin/sh -ex darwin_vers=`uname -r | cut -d. -f1` if [ "$darwin_vers" -ge 12 ]; then X11DIR=/opt/X11 else X11DIR=/usr/X11 fi %{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: << #!/bin/sh -ev make install DESTDIR=%d mv %i/bin/gm %i/bin/gm-q32 mv %i/share/doc/GraphicsMagick %i/share/doc/GraphicsMagick-Q32 mv %i/share/man/man1/gm.1 %i/share/man/man1/gm-q32.1 mv %i/share/man/man4/miff.4 %i/share/man/man4/miff-q32.4 mv %i/share/man/man5/quantize.5 %i/share/man/man5/quantize-q32.5 cd %i/lib ln -s graphicsmagick1322/*.la %i/lib ln -s graphicsmagick1322/libGraphicsMagick++.dylib %i/lib ln -s graphicsmagick1322/libGraphicsMagick.dylib %i/lib ln -s graphicsmagick1322/libGraphicsMagickWand.dylib %i/lib mv graphicsmagick1322/pkgconfig pkgconfig << SplitOff: << Package: graphicsmagick1322-q32-shlibs Depends: << bzip2-shlibs, freetype219-shlibs, ghostscript | ghostscript-nox, lcms2-shlibs, libheif1-shlibs, libjasper7-shlibs, libjbig-shlibs, libjpeg9-shlibs (>= 9-3), libpng16-shlibs, libtiff6-shlibs, libtool2-shlibs, libwebp7-shlibs, libxml2-shlibs (>= 2.12.4), libzstd1-shlibs, x11-shlibs << # These packages will be used if present, but GraphicsMagick will work without them. Suggests: << autotrace-bin, dcraw, gnuplot-bin, graphviz, hp2xx, libwmf-bin, mpeg2vidcodec, transfig-graphicx << Files: << lib/graphicsmagick1322/GraphicsMagick-%v lib/graphicsmagick1322/libGraphicsMagick-Q32.3.dylib lib/graphicsmagick1322/libGraphicsMagick++-Q32.12.dylib lib/graphicsmagick1322/libGraphicsMagickWand-Q32.2.dylib share/GraphicsMagick-%v << Shlibs: << %p/lib/graphicsmagick1322/libGraphicsMagick-Q32.3.dylib 28.0.0 %n (>= 1:1.3.40-1) %p/lib/graphicsmagick1322/libGraphicsMagick++-Q32.12.dylib 20.0.0 %n (>= 1:1.3.40-1) %p/lib/graphicsmagick1322/libGraphicsMagickWand-Q32.2.dylib 12.0.0 %n (>= 1:1.3.29-1) << DocFiles: ChangeLog NEWS.txt Copyright.txt README.txt TODO.txt << SplitOff2: << Package: graphicsmagick1322-q32-dev Conflicts: graphicsmagick-dev, graphicsmagick-q32-dev, graphicsmagick1321-dev, graphicsmagick1321-q32-dev, graphicsmagick1322-dev, graphicsmagick1322-q32-dev Replaces: graphicsmagick-dev, graphicsmagick-q32-dev, graphicsmagick1321-dev, graphicsmagick1321-q32-dev, graphicsmagick1322-dev, graphicsmagick1322-q32-dev Depends: graphicsmagick1322-q32-shlibs (= %V) BuildDependsOnly: true Files: << bin/*-config include lib/graphicsmagick1322/*.la lib/graphicsmagick1322/libGraphicsMagick.dylib lib/graphicsmagick1322/libGraphicsMagick++.dylib lib/graphicsmagick1322/libGraphicsMagickWand.dylib 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 << <<