Package: pstoedit-shlibs Version: 3.78 Revision: 3 Maintainer: Peter Dyballa <Peter_Dyballa@Freenet.DE> BuildDepends: << fink-package-precedence, pkgconfig (>= 0.23), gd3, ghostscript | ghostscript-nox, libemf (>= 1.0.13-1), libmagick++7.q16.5-dev, libmagickcore7.q16.9-dev, libmagickwand7.q16.9-dev, libming1-dev, libzip2, plotutils-dev (>= 2.4.1-1007) << Depends: << gd3-shlibs, libemf-shlibs (>= 1.0.13-1), libmagick++7.q16.5-shlibs, libmagickcore7.q16.9-shlibs, libmagickwand7.q16.9-shlibs, libming1-shlibs, libzip2-shlibs, plotutils-shlibs (>= 2.4.1-1007) << Conflicts: pstoedit (<< 3.78-3) Replaces: pstoedit (<< 3.78-3) Source: mirror:sourceforge:/pstoedit/pstoedit-%v.tar.gz Source-Checksum: SHA256(8cc28e34bc7f88d913780f8074e813dd5aaa0ac2056a6b36d4bf004a0e90d801) PatchScript: << # Supports magick6 and magick7 but our 7 doesn't supply the # same .pc name as expected (difference vs 6). perl -pi -e 's/ImageMagick\+\+/Magick++/g' configure << GCC: 4.0 SetCXXFLAGS: -std=c++11 # NOMINMAX tells emf.h not to declare min() and max(). They collide # with std:: functions (but aren't #define). Buggy logic in emf.h, and # also conceptually silly to put public macros for simple things that # aren't part of the lib's interfaces. SetCPPFLAGS: -DNOMINMAX # disable-docs just avoids regenerating files that are already in # tarball (they still get installed) ConfigureParams: << --enable-dependency-tracking \ --disable-docs \ --with-libzip-include=%p/lib/libzip/include \ --docdir=%p/share/doc/%n << CompileScript: << #! /bin/sh -ex ./configure %c make pkglibdir=%p/lib/pstoedit-%v fink-package-precedence --prohibit-bdep=pstoedit . << Installscript: << #!/bin/sh -ev mkdir -p %i/share/man/man1/ cp doc/pstoedit.1 %i/share/man/man1/ make install pkglibdir=%p/lib/pstoedit-%v DESTDIR=%d pushd %i rm -r bin rm -r include rm lib/libpstoedit.{dylib,la} rm -r lib/pkgconfig rm -r share/aclocal rm -r share/man rm -r share/pstoedit popd << Shlibs: %p/lib/libpstoedit.0.dylib 1.0.0 %n (>= 3.4-1001) DocFiles: copying doc/{pstoedit.pdf,pstoedit.htm,readme.txt,changelog.htm} Description: PS/PDF converter to other vector formats DescDetail: << pstoedit converts PostScript(TM) and PDF files to other vector graphic formats so that they can be edited graphically. << License: GPL Homepage: http://www.pstoedit.net DescPackaging: << Originally packaged by Peter O'Gorman. Detects libpng, but doesn't use it except to add -lpng to pstoedit.pc. The flag is not actually needed by pkgs linking to pstoedit, so remove in all cases. If tests are built, must add a "TestDepends: cairo, x11-dev" to avoid using X11-cairo. 3.78 -> 4.01 changed and/or removed some public interfaces, so we have to create a new package. But they didn't change the install_name, so we bury the library file. <<