Info2: << Package: fontforge Version: 20120731 Revision: 1 Type: python 2.7 License: BSD Description: Outline font editor DescDetail: << An outline font editor that lets you create your own postscript, truetype, opentype, cid-keyed, multi-master, cff, svg, bitmap (bdf) and woff fonts, or edit existing ones. Also lets you convert one format to another. FontForge has support for many Macintosh font formats. This program was formerly called PfaEdit. << DescUsage: << Will use autotrace or potrace to trace bitmaps if available. << DescPort: << Makefile ignores CPPFLAGS and LDFLAGS so we use CFLAGS instead. Had to remove setting of DYLD_LIBRARY_PATH in start.c. Caused ImageIO problems. Yuck. Enabled python scripting. Uses fink's python%type_pkg[python]. Patched Makefile.in's to remove useless -I and reorder flags. Reenabled building shared libs; put them into %p/lib/%n. Now installs a .app wrapper bundle at %p/Applications/FontForge.app Install desktop and mime files for KDE and Gnome. << Homepage: http://fontforge.sourceforge.net/ Maintainer: Daniel Johnson Source: mirror:sourceforge:%n/%n_full-%v.tar.bz2 Source-MD5: dd6ac43be11e5c0b77b34b5d13b0f53f SourceDirectory: %n-%v Source2: mirror:sourceforge:%n/%n_htdocs-%v.tar.bz2 Source2-MD5: ac423a7bc1b0139c86a0602650a68c36 Source2ExtractDir: %n-%v/htdocs Source3: http://fontforge.sourceforge.net/cidmaps.tgz Source3-MD5: 063691163e592515b31514515bb3ce8c Source3Rename: cidmaps-20081215.tgz Source3ExtractDir: %n-%v/cidmap Depends: << cairo-shlibs (>= 1.8.8-5), desktop-file-utils, expat1-shlibs, fontconfig2-shlibs (>= 2.8.0-4), freetype219-shlibs (>= 2.3.12-1), giflib-shlibs, glib2-shlibs (>= 2.22.4-2), glitz-shlibs, libgettext8-shlibs, libiconv, libjpeg8-shlibs, libpng15-shlibs, libspiro0-shlibs, libtiff-shlibs, libuninameslist1-shlibs, libxml2-shlibs, pango1-xft2-ft219-shlibs (>= 1.24.5-7), pixman-shlibs (>= 0.16.6-1), python%type_pkg[python], shared-mime-info, x11, xft2-shlibs (>= 2.1.14-3) << BuildDepends: << cairo (>= 1.8.8-5), expat1, fink (>= 0.28.0), fink-package-precedence, fontconfig2-dev (>= 2.8.0-4), freetype219 (>= 2.3.12-1), gettext-tools, giflib, glib2-dev (>= 2.22.4-2), glitz, libgettext8-dev, libiconv-dev, libjpeg8, libpng15, libspiro0, libtiff, libuninameslist1, libxml2, pango1-xft2-ft219-dev (>= 1.24.5-7), pkgconfig (>= 0.23-1), pixman (>= 0.16.6-1), x11-dev, xcode.app, xft2-dev (>= 2.1.14-3) << Recommends: autotrace-bin | potrace Conflicts: pfaedit Replaces: pfaedit DocFiles: AUTHORS INSTALL LICENSE README-Mac.html README-Unix.html PatchFile: %n.patch PatchFile-MD5: be4a94f55b265b812a334e1b64d91fc6 PatchScript: << %{default_script} #Use fink's python to build the python extension. perl -pi -e 's,python setup.py,%p/bin/python%type_raw[python] setup.py,g' Makefile.dynamic.in #Make extension look for private libs in %p/lib/%n perl -pi -e 's,/lib/,/lib/%n/,g' pyhook/loadfontforge.h #Fix path to fontforge.png in fontforge.desktop perl -pi -e 's,fontforge.png,%p/share/fontforge/fontforge.png,' Packaging/fontforge.desktop #/usr/include/libxml2 -- Do Not Want. perl -pi -e 's|/usr/include/libxml2|%p/include/libxml2|g' configure # I hate it when configure tries to be clever. perl -pi -e 's|/usr/local ||' configure perl -pi -e 's|/sw\ |%p |' configure perl -pi -e 's/"20120731"/20120731/' fontforge/libffstamp.h << UseMaxBuildJobs: true NoSetCPPFLAGS: True NoSetLDFLAGS: True SetCFLAGS: -Os -I%p/include/libxml2 -I%p/lib/fontconfig2/include -I%p/lib/xft2/include -I%p/include -I%p/include/cairo -isystem /usr/include SetCPPFLAGS: -I%p/lib/fontconfig2/include -MD SetLIBRARY_PATH: %p/lib/fontconfig2/lib:%p/lib:/usr/X11R6/lib SetLDFLAGS: -L%p/lib/fontconfig2/lib -L%p/lib/xft2/lib -L%p/lib/python%type_raw[python]/config -L%p/lib -L/usr/X11R6/lib -Wl,-dead_strip_dylibs ConfigureParams: << --mandir='${prefix}/share/man'\ --libdir='${prefix}/lib/%n'\ --with-x\ --with-regular-link\ --with-python=%p/bin/python%type_raw[python]\ --with-python-lib=-lpython%type_raw[python]\ --enable-shared=yes\ --enable-static=no\ --enable-libff\ --enable-pyextension\ --enable-type3\ --enable-double\ --enable-pasteafter\ --enable-tilepath\ --without-freetype-src << CompileScript: << #!/bin/bash -ev export CPATH="%p/include" export F77=no ./configure %c make X_LIBS="" STATIC_LIBS=' -lgif -ltiff -ljpeg -lpng15 -lfreetype -lxml2 -lintl -lspiro -luninameslist -lz' fink-package-precedence --depfile-ext='\.d' . << InstallScript: << make install DESTDIR=%d /bin/rm -rf %i/include /bin/ln -s %p/bin/fontforge fontforge/FontForge.app/Contents/MacOS/FontForge /bin/mkdir -p %i/share/applications /bin/mkdir -p %i/share/fontforge /bin/mkdir -p %i/share/mime/packages /bin/cp Packaging/fontforge.desktop %i/share/applications /bin/cp Packaging/icons/48x48/apps/fontforge.png %i/share/fontforge /bin/cp Packaging/fontforge.xml %i/share/mime/packages << PostInstScript: << . %p/bin/init.sh [ -x %p/bin/update-mime-database ] && update-mime-database %p/share/mime > /dev/null 2>&1 || : [ -x %p/bin/update-desktop-database ] && update-desktop-database -q %p/share/applications || : << PostRmScript: << . %p/bin/init.sh [ -x %p/bin/update-mime-database ] && update-mime-database %p/share/mime > /dev/null 2>&1 || : [ -x %p/bin/update-desktop-database ] && update-desktop-database -q %p/share/applications || : << AppBundles: fontforge/FontForge.app Shlibs: << !%p/lib/%n/libfontforge.1.dylib !%p/lib/%n/libgdraw.4.dylib !%p/lib/%n/libgunicode.3.dylib !%p/lib/%n/libgutils.1.dylib !%p/lib/%n/libgioftp.1.dylib << <<