the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: fontforge
Version: 20090408
Revision: 1
Type: python (2.3)
Distribution: 10.4
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 and bitmap (bdf)
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.
The python extension uses /usr/bin/python%type_raw[python] and is installed
into %p/lib/system-python%type_raw[python]/site-packages to avoid conflicts.
Add %p/lib/system-python%type_raw[python]/site-packages to PYTHONPATH or
use sys.path.append('%p/lib/system-python%type_raw[python]/site-packages')
from your scripts.
<<
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 system's 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: 5a85abd05b8dcefcb5e21e24d99299f9
SourceDirectory: %n-%v
Source2: mirror:sourceforge:%n/%n_htdocs-%v.tar.bz2
Source2-MD5: 5b21e4b9630a33d6a989d869178be7ca
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.2-1),
desktop-file-utils,
expat1-shlibs,
fontconfig2-shlibs (>= 2.4.1-1),
freetype219-shlibs (>= 2.3.7-4),
giflib-shlibs,
glib2-shlibs (>= 2.18.0-1),
glitz-shlibs,
libgettext3-shlibs,
libiconv,
libjpeg-shlibs,
libpng3-shlibs (>= 1.2.5-4),
libspiro0-shlibs,
libtiff-shlibs,
libuninameslist1-shlibs,
libxml2-shlibs,
pango1-xft2-ft219-shlibs (>= 1.22.0-4),
pixman-shlibs (>= 0.12.0-1),
shared-mime-info,
x11
<<
BuildDepends: <<
cairo (>= 1.8.2-1),
expat1,
fink (>= 0.28.0),
fontconfig2-dev (>= 2.4.1-1),
freetype219 (>= 2.3.7-4),
gettext-tools,
giflib,
glib2-dev (>= 2.18.0-1),
glitz,
libgettext3-dev,
libiconv-dev,
libjpeg,
libpng3 (>= 1.2.5-4),
libspiro0,
libtiff,
libuninameslist1,
libxml2,
pango1-xft2-ft219-dev (>= 1.22.0-4),
pkgconfig (>= 0.23),
pixman (>= 0.12.0-1),
x11-dev
<<
Recommends: autotrace-bin | potrace
Conflicts: pfaedit
Replaces: pfaedit
DocFiles: AUTHORS INSTALL LICENSE README-Mac.html README-Unix.html VERSION
PatchFile: %n.patch
PatchFile-MD5: 98a54081ec66fea534353f6d79bc5c97
PatchScript: <<
%{default_script}
#Use system's python to build the python extension.
#Extension gets put in %p/lib/system-python%type_raw[python]/site-packages
#to avoid interfering with Fink's python packages.
perl -pi -e 's,python setup.py install,env ARCHFLAGS='' /usr/bin/python%type_raw[python] setup.py install --install-lib=%p/lib/system-python%type_raw[python]/site-packages,' 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
<<
NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
NoSetCPPFLAGS: True
NoSetLDFLAGS: True
SetCFLAGS: -Os -I%p/include/libxml2 -I%p/lib/fontconfig2/include -I%p/include
SetCPPFLAGS: -I%p/lib/fontconfig2/include
SetLIBRARY_PATH: %p/lib/fontconfig2/lib:%p/lib:/usr/X11R6/lib
SetLDFLAGS: -L%p/lib/fontconfig2/lib -L%p/lib -L/usr/X11R6/lib
ConfigureParams: <<
--mandir='${prefix}/share/man'\
--libdir='${prefix}/lib/%n'\
--with-x\
--x-includes=/usr/X11R6/include\
--x-libraries=/usr/X11R6/lib\
--with-regular-link\
--with-devicetables\
--with-python=/usr/bin/python%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 #STATIC_LIBS="-L%p/lib/fontconfig2/lib -L%p/lib -lgif -lpng -lz -ltiff -ljpeg -lxml2 -luninameslist -lfreetype -lintl -lspiro -lfontconfig -lcairo"
<<
InstallScript: <<
make install prefix=%i
/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/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
<<
<<