the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: fontforge
Version: 20080828
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
<<
Homepage: http://fontforge.sourceforge.net/
Maintainer: Daniel Johnson
Source: mirror:sourceforge:%n/%n_full-%v.tar.bz2
Source-MD5: 3c232a6e412d8b443b0b881332dbc26c
SourceDirectory: %n-%v
Source2: mirror:sourceforge:%n/%n_htdocs-20080824.tar.bz2
Source2-MD5: 5eee3058485b52208dfca1d46aeb96aa
Source2ExtractDir: %n-%v/htdocs
Source3: http://fontforge.sourceforge.net/cidmaps.tgz
Source3-MD5: 5f00607e4bbe014cdfd5b23bb0943666
Source3Rename: cidmaps-20080720.tgz
Source3ExtractDir: %n-%v/cidmap
Depends: <<
freetype219-shlibs,
giflib-shlibs,
libgettext3-shlibs,
libiconv,
libjpeg-shlibs,
libpng3-shlibs,
libspiro0-shlibs,
libtiff-shlibs,
libuninameslist1-shlibs,
libxml2-shlibs,
x11
<<
BuildDepends: <<
fink (>= 0.28.0),
freetype219,
gettext-tools,
giflib,
libgettext3-dev,
libiconv-dev,
libjpeg,
libpng3,
libspiro0,
libtiff,
libuninameslist1,
libxml2,
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: b4607474cc4ec45937948b74a8127151
PatchScript: <<
patch -p1 <%{PatchFile}
#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
<<
NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
NoSetCPPFLAGS: True
NoSetLDFLAGS: True
SetCFLAGS: -Os -I%p/include/libxml2
SetLIBRARY_PATH: %p/lib/freetype219/lib:%p/lib:/usr/X11R6/lib
SetLDFLAGS: -L%p/lib/freetype219/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/lib/freetype219/include:%p/include"
export PATH="%p/lib/freetype219/bin:$PATH"
export F77=no
./configure %c
make STATIC_LIBS="-L%p/lib -L%p/lib/freetype219/lib -lgif -lpng -lz -ltiff -ljpeg -lxml2 -luninameslist -lfreetype -lintl -lspiro"
<<
InstallScript: <<
make install prefix=%i
/bin/rm -rf %i/include
/bin/ln -s %p/bin/fontforge fontforge/FontForge.app/Contents/MacOS/FontForge
<<
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
<<
<<
diff -ru fontforge-20080824.orig/Makefile.dynamic.in fontforge-20080824/Makefile.dynamic.in
--- fontforge-20080824.orig/Makefile.dynamic.in 2008-07-28 20:01:36.000000000 -0400
+++ fontforge-20080824/Makefile.dynamic.in 2008-08-24 13:22:19.000000000 -0400
@@ -127,8 +127,8 @@
# You may need to be root to do the install
#explicit use of sh to make sure we don't invoke csh with different "if" syntax
sh -c "if test -d $(srcdir)/htdocs >/dev/null ; then $(MAKE) install_docs ; fi"
- sh -c "if test -d fontforge/FontForge.app >/dev/null ; then rm -rf /Applications/FontForge.app ; mv fontforge/FontForge.app /Applications ; ln -s /usr/local/bin/fontforge /Applications/FontForge.app/Contents/MacOS/FontForge ; fi"
- sh < systemspecific
+# sh -c "if test -d fontforge/FontForge.app >/dev/null ; then rm -rf /Applications/FontForge.app ; mv fontforge/FontForge.app /Applications ; ln -s /usr/local/bin/fontforge /Applications/FontForge.app/Contents/MacOS/FontForge ; fi"
+# sh < systemspecific
#we don't always create a setup.py
-(cd pyhook ; if test -r setup.py ; then python setup.py install --prefix=$(prefix) --root=$(DESTDIR); for dir in * ; do if test -d $$dir ; then rm -rf $$dir ; fi; done ; fi )
diff -ru fontforge-20080824.orig/Unicode/Makefile.dynamic.in fontforge-20080824/Unicode/Makefile.dynamic.in
--- fontforge-20080824.orig/Unicode/Makefile.dynamic.in 2007-12-09 15:37:16.000000000 -0500
+++ fontforge-20080824/Unicode/Makefile.dynamic.in 2008-08-24 13:19:33.000000000 -0400
@@ -18,8 +18,8 @@
cjk.lo memory.lo ucharmap.lo unialt.lo ustring.lo utype.lo \
usprintf.lo gwwiconv.lo
-Incs = -I$(top_srcdir)/inc -I/usr/pkg/include -I/usr/pkg/include/giflib
-CFLAGS = @CFLAGS@ @CPPFLAGS@ $(Incs) @WFLAGS@ @DEFS@
+Incs = -I$(top_srcdir)/inc
+CFLAGS = $(Incs) @CFLAGS@ @CPPFLAGS@ @WFLAGS@ @DEFS@
../libgunicode.la: $(libgunicode_OBJECTS)
$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -no-undefined @LDFLAGS@ -o ../libgunicode.la $(libgunicode_OBJECTS) \
diff -ru fontforge-20080824.orig/Unicode/Makefile.static.in fontforge-20080824/Unicode/Makefile.static.in
--- fontforge-20080824.orig/Unicode/Makefile.static.in 2007-12-09 15:37:16.000000000 -0500
+++ fontforge-20080824/Unicode/Makefile.static.in 2008-08-24 13:19:33.000000000 -0400
@@ -12,8 +12,8 @@
libgunicode_OBJECTS = ArabicForms.o alphabet.o backtrns.o char.o \
cjk.o memory.o ucharmap.o unialt.o ustring.o utype.o usprintf.o gwwiconv.o
-Incs = -I$(top_srcdir)/inc -I/usr/pkg/include -I/usr/pkg/include/giflib
-CFLAGS = @CFLAGS@ @CPPFLAGS@ $(Incs) @WFLAGS@ @DEFS@
+Incs = -I$(top_srcdir)/inc
+CFLAGS = $(Incs) @CFLAGS@ @CPPFLAGS@ @WFLAGS@ @DEFS@
all: ../libs/libgunicode.a
diff -ru fontforge-20080824.orig/configure fontforge-20080824/configure
--- fontforge-20080824.orig/configure 2008-07-28 19:30:54.000000000 -0400
+++ fontforge-20080824/configure 2008-08-24 13:23:44.000000000 -0400
@@ -2684,7 +2684,7 @@
fi;
-LDFLAGS="$LDFLAGS -L/usr/local/lib"
+#LDFLAGS="$LDFLAGS -L/usr/local/lib"
case "$host" in
*-apple-darwin*)
@@ -2705,13 +2705,13 @@
gww_define_caps_for_alt="1"
- if test -d /sw/include >/dev/null ; then
- CPPFLAGS="$CPPFLAGS -I/sw/include"
- fi
- if test -d /sw/lib >/dev/null ; then
- LDFLAGS="$LDFLAGS -L/sw/lib"
- gww_rpath="-rpath /sw/lib"
- fi
+# if test -d /sw/include >/dev/null ; then
+# CPPFLAGS="$CPPFLAGS -I/sw/include"
+# fi
+# if test -d /sw/lib >/dev/null ; then
+# LDFLAGS="$LDFLAGS -L/sw/lib"
+# gww_rpath="-rpath /sw/lib"
+# fi
LIBS="-Wl,/System/Library/Frameworks/Carbon.framework/Carbon $LIBS"
LIBS="-Wl,/System/Library/Frameworks/CoreServices.framework/CoreServices $LIBS"
@@ -19756,7 +19756,7 @@
echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_libxml2_libxml" >&5
echo "${ECHO_T}$ac_cv_file__usr_include_libxml2_libxml" >&6
if test $ac_cv_file__usr_include_libxml2_libxml = yes; then
- CFLAGS="$CFLAGS -I/usr/include/libxml2/"
+ true
else
echo "$as_me:$LINENO: checking for /usr/local/include/libxml2/libxml" >&5
@@ -19777,7 +19777,7 @@
echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_libxml2_libxml" >&5
echo "${ECHO_T}$ac_cv_file__usr_local_include_libxml2_libxml" >&6
if test $ac_cv_file__usr_local_include_libxml2_libxml = yes; then
- CFLAGS="$CFLAGS -I/usr/local/include -I/usr/local/include/libxml2/"
+ true
else
cat >>confdefs.h <<\_ACEOF
#define _NO_LIBXML 1
diff -ru fontforge-20080824.orig/fontforge/Makefile.dynamic.in fontforge-20080824/fontforge/Makefile.dynamic.in
--- fontforge-20080824.orig/fontforge/Makefile.dynamic.in 2008-08-20 17:32:06.000000000 -0400
+++ fontforge-20080824/fontforge/Makefile.dynamic.in 2008-08-24 13:19:33.000000000 -0400
@@ -66,12 +66,12 @@
#I used to include -L/usr/lib explicitly after static_libs. Not sure why. Should be implied & breaks 64bit compiles
LDFLAGS = @LDFLAGS@
-LIBS = -rpath $(libdir) $(X_LIBS) @LINK_WITH_GDRAW@ ../libgutils.la \
+LIBS = -rpath $(libdir) $(STATIC_LIBS) $(X_LIBS) @LINK_WITH_GDRAW@ ../libgutils.la \
../libgunicode.la \
- $(X_PRE_LIBS) $(X_11LIB) $(X_EXTRA_LIBS) @LIBS@ $(STATIC_LIBS) -lm
-LIBLIBS = -rpath $(libdir) ../libgutils.la ../libgunicode.la \
- @LIBS@ $(STATIC_LIBS) -lm
-DLIBS = -rpath $(libdir) ../libgunicode.la @LIBS@ $(STATIC_LIBS) -lm
+ $(X_PRE_LIBS) $(X_11LIB) $(X_EXTRA_LIBS) @LIBS@ -lm
+LIBLIBS = -rpath $(libdir) $(STATIC_LIBS) ../libgutils.la ../libgunicode.la \
+ @LIBS@ -lm
+DLIBS = -rpath $(libdir) $(STATIC_LIBS) ../libgunicode.la @LIBS@ -lm
all: @FINAL_TARGET@ @MACAPP@ sfddiff fontimage fontlint
diff -ru fontforge-20080824.orig/fontforge/start.c fontforge-20080824/fontforge/start.c
--- fontforge-20080824.orig/fontforge/start.c 2008-02-04 08:56:47.000000000 -0500
+++ fontforge-20080824/fontforge/start.c 2008-08-24 13:19:33.000000000 -0400
@@ -125,7 +125,6 @@
/* install image libs. For some reason fink installs in a place */
/* the dynamic loader doesn't find */
/* (And fink's attempts to set the PATH variables generally don't work */
- setenv("DYLD_LIBRARY_PATH","/sw/lib",0);
#endif
}
diff -ru fontforge-20080824.orig/gdraw/Makefile.dynamic.in fontforge-20080824/gdraw/Makefile.dynamic.in
--- fontforge-20080824.orig/gdraw/Makefile.dynamic.in 2008-08-22 22:00:11.000000000 -0400
+++ fontforge-20080824/gdraw/Makefile.dynamic.in 2008-08-24 13:19:33.000000000 -0400
@@ -34,8 +34,8 @@
gtextfield.lo gtextinfo.lo gwidgets.lo gxdraw.lo \
ghvbox.lo gmatrixedit.lo gdrawable.lo gspacer.lo xkeysyms_unicode.lo
-Incs = -I$(top_srcdir)/inc -I/usr/pkg/include -I/usr/pkg/include/giflib
-CFLAGS = @CFLAGS@ @CPPFLAGS@ $(Incs) @WFLAGS@ $(X_CFLAGS) -DNOTHREADS @DEFS@ -DLIBDIR='"$(libdir)"'
+Incs = -I$(top_srcdir)/inc
+CFLAGS = $(Incs) @CFLAGS@ @CPPFLAGS@ @WFLAGS@ $(X_CFLAGS) -DNOTHREADS @DEFS@ -DLIBDIR='"$(libdir)"'
../libgdraw.la: $(libgdraw_OBJECTS)
$(LIBTOOL) --mode=link $(CC) -no-undefined $(CFLAGS) @LDFLAGS@ -o ../libgdraw.la $(libgdraw_OBJECTS) \
diff -ru fontforge-20080824.orig/gdraw/Makefile.static.in fontforge-20080824/gdraw/Makefile.static.in
--- fontforge-20080824.orig/gdraw/Makefile.static.in 2008-08-22 19:26:49.000000000 -0400
+++ fontforge-20080824/gdraw/Makefile.static.in 2008-08-24 13:19:33.000000000 -0400
@@ -24,8 +24,8 @@
gtextfield.o gtextinfo.o gwidgets.o gxdraw.o \
ghvbox.o gmatrixedit.o gdrawable.o gspacer.o xkeysyms_unicode.o
-Incs = -I$(top_srcdir)/inc -I/usr/pkg/include -I/usr/pkg/include/giflib
-CFLAGS = @CFLAGS@ @CPPFLAGS@ $(Incs) @WFLAGS@ $(X_CFLAGS) -DNOTHREADS @DEFS@ -DLIBDIR='"$(libdir)"'
+Incs = -I$(top_srcdir)/inc
+CFLAGS = $(Incs) @CFLAGS@ @CPPFLAGS@ @WFLAGS@ $(X_CFLAGS) -DNOTHREADS @DEFS@ -DLIBDIR='"$(libdir)"'
all: ../libs/libgdraw.a
diff -ru fontforge-20080824.orig/gutils/Makefile.dynamic.in fontforge-20080824/gutils/Makefile.dynamic.in
--- fontforge-20080824.orig/gutils/Makefile.dynamic.in 2008-08-20 16:50:24.000000000 -0400
+++ fontforge-20080824/gutils/Makefile.dynamic.in 2008-08-24 13:19:33.000000000 -0400
@@ -35,21 +35,19 @@
gio.lo giofile.lo giohosts.lo giomime.lo giothread.lo giotrans.lo
libgioftp_OBJECTS = gioftp.lo
-Incs = -I$(top_srcdir)/inc -I/usr/pkg/include -I/usr/pkg/include/giflib
-CFLAGS = @CFLAGS@ @CPPFLAGS@ $(Incs) @WFLAGS@ $(X_CFLAGS) -DNOTHREADS @DEFS@ -DLIBDIR='"$(libdir)"'
+Incs = -I$(top_srcdir)/inc
+CFLAGS = $(Incs) @CFLAGS@ @CPPFLAGS@ @WFLAGS@ $(X_CFLAGS) -DNOTHREADS @DEFS@ -DLIBDIR='"$(libdir)"'
both: ../libgutils.la ../libgioftp.la
../libgutils.la: $(libgutils_OBJECTS)
- $(LIBTOOL) --mode=link $(CC) -no-undefined $(CFLAGS) @LDFLAGS@ -o ../libgutils.la $(libgutils_OBJECTS) \
+ $(LIBTOOL) --mode=link $(CC) -no-undefined $(CFLAGS) $(STATIC_LIBS) @LDFLAGS@ -o ../libgutils.la $(libgutils_OBJECTS) \
../libgunicode.la @LIBS@ \
- $(STATIC_LIBS) \
-rpath $(libdir) -version-info $(GU_VERSION):$(GU_REVISION):$(GU_AGE)
../libgioftp.la: $(libgioftp_OBJECTS)
- $(LIBTOOL) --mode=link $(CC) -no-undefined $(CFLAGS) @LDFLAGS@ -o ../libgioftp.la $(libgioftp_OBJECTS) \
+ $(LIBTOOL) --mode=link $(CC) -no-undefined $(CFLAGS) $(STATIC_LIBS) @LDFLAGS@ -o ../libgioftp.la $(libgioftp_OBJECTS) \
../libgunicode.la @LIBS@ \
- $(STATIC_LIBS) \
-rpath $(libdir) -version-info $(GFTP_VERSION):$(GFTP_REVISION):$(GFTP_AGE)
%.lo: %.c
Info2: <<
Package: fontforge
Version: 20080927
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: 8866595d4dac77c0c093ed1e104515d3
SourceDirectory: %n-%v
Source2: mirror:sourceforge:%n/%n_htdocs-%v.tar.bz2
Source2-MD5: cc3e292e75250e8318cb098c1552c98e
Source2ExtractDir: %n-%v/htdocs
Source3: http://fontforge.sourceforge.net/cidmaps.tgz
Source3-MD5: 5f00607e4bbe014cdfd5b23bb0943666
Source3Rename: cidmaps-20080720.tgz
Source3ExtractDir: %n-%v/cidmap
Depends: <<
desktop-file-utils,
freetype219-shlibs (>= 2.3.7-4),
giflib-shlibs,
libgettext3-shlibs,
libiconv,
libjpeg-shlibs,
libpng3-shlibs,
libspiro0-shlibs,
libtiff-shlibs,
libuninameslist1-shlibs,
libxml2-shlibs,
shared-mime-info,
x11
<<
BuildDepends: <<
fink (>= 0.28.0),
freetype219 (>= 2.3.7-4),
gettext-tools,
giflib,
libgettext3-dev,
libiconv-dev,
libjpeg,
libpng3,
libspiro0,
libtiff,
libuninameslist1,
libxml2,
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: e305c93bc7a7c400ceae3bfe7313f9ab
PatchScript: <<
patch -p1 <%{PatchFile}
#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
SetLIBRARY_PATH: %p/lib:/usr/X11R6/lib
SetLDFLAGS: -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 PATH="%p/lib/freetype219/bin:$PATH"
export F77=no
./configure %c
make STATIC_LIBS="-L%p/lib -lgif -lpng -lz -ltiff -ljpeg -lxml2 -luninameslist -lfreetype -lintl -lspiro"
<<
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: <<
[ -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: <<
[ -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
<<
<<
diff -ru fontforge-20080927.orig/Makefile.dynamic.in fontforge-20080927/Makefile.dynamic.in
--- fontforge-20080927.orig/Makefile.dynamic.in 2008-07-28 20:01:36.000000000 -0400
+++ fontforge-20080927/Makefile.dynamic.in 2008-09-29 01:41:44.000000000 -0400
@@ -127,8 +127,8 @@
# You may need to be root to do the install
#explicit use of sh to make sure we don't invoke csh with different "if" syntax
sh -c "if test -d $(srcdir)/htdocs >/dev/null ; then $(MAKE) install_docs ; fi"
- sh -c "if test -d fontforge/FontForge.app >/dev/null ; then rm -rf /Applications/FontForge.app ; mv fontforge/FontForge.app /Applications ; ln -s /usr/local/bin/fontforge /Applications/FontForge.app/Contents/MacOS/FontForge ; fi"
- sh < systemspecific
+# sh -c "if test -d fontforge/FontForge.app >/dev/null ; then rm -rf /Applications/FontForge.app ; mv fontforge/FontForge.app /Applications ; ln -s /usr/local/bin/fontforge /Applications/FontForge.app/Contents/MacOS/FontForge ; fi"
+# sh < systemspecific
#we don't always create a setup.py
-(cd pyhook ; if test -r setup.py ; then python setup.py install --prefix=$(prefix) --root=$(DESTDIR); for dir in * ; do if test -d $$dir ; then rm -rf $$dir ; fi; done ; fi )
diff -ru fontforge-20080927.orig/Packaging/fontforge.desktop fontforge-20080927/Packaging/fontforge.desktop
--- fontforge-20080927.orig/Packaging/fontforge.desktop 2008-09-05 14:44:21.000000000 -0400
+++ fontforge-20080927/Packaging/fontforge.desktop 2008-09-29 01:42:52.000000000 -0400
@@ -11,6 +11,5 @@
Icon=fontforge.png
Terminal=false
Type=Application
-Categories=Application;Graphics;
-Encoding=UTF-8
-MimeType=application/vnd.font-fontforge-sfd;application/x-font-ttf;application/x-font-type1;application/x-font-bdf;application/x-font-pcf;/x-font-tex;
+Categories=Graphics;
+MimeType=application/vnd.font-fontforge-sfd;application/x-font-ttf;application/x-font-type1;application/x-font-bdf;application/x-font-pcf;application/x-font-tex;
diff -ru fontforge-20080927.orig/Unicode/Makefile.dynamic.in fontforge-20080927/Unicode/Makefile.dynamic.in
--- fontforge-20080927.orig/Unicode/Makefile.dynamic.in 2007-12-09 15:37:16.000000000 -0500
+++ fontforge-20080927/Unicode/Makefile.dynamic.in 2008-09-29 01:41:44.000000000 -0400
@@ -18,8 +18,8 @@
cjk.lo memory.lo ucharmap.lo unialt.lo ustring.lo utype.lo \
usprintf.lo gwwiconv.lo
-Incs = -I$(top_srcdir)/inc -I/usr/pkg/include -I/usr/pkg/include/giflib
-CFLAGS = @CFLAGS@ @CPPFLAGS@ $(Incs) @WFLAGS@ @DEFS@
+Incs = -I$(top_srcdir)/inc
+CFLAGS = $(Incs) @CFLAGS@ @CPPFLAGS@ @WFLAGS@ @DEFS@
../libgunicode.la: $(libgunicode_OBJECTS)
$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -no-undefined @LDFLAGS@ -o ../libgunicode.la $(libgunicode_OBJECTS) \
diff -ru fontforge-20080927.orig/Unicode/Makefile.static.in fontforge-20080927/Unicode/Makefile.static.in
--- fontforge-20080927.orig/Unicode/Makefile.static.in 2007-12-09 15:37:16.000000000 -0500
+++ fontforge-20080927/Unicode/Makefile.static.in 2008-09-29 01:41:44.000000000 -0400
@@ -12,8 +12,8 @@
libgunicode_OBJECTS = ArabicForms.o alphabet.o backtrns.o char.o \
cjk.o memory.o ucharmap.o unialt.o ustring.o utype.o usprintf.o gwwiconv.o
-Incs = -I$(top_srcdir)/inc -I/usr/pkg/include -I/usr/pkg/include/giflib
-CFLAGS = @CFLAGS@ @CPPFLAGS@ $(Incs) @WFLAGS@ @DEFS@
+Incs = -I$(top_srcdir)/inc
+CFLAGS = $(Incs) @CFLAGS@ @CPPFLAGS@ @WFLAGS@ @DEFS@
all: ../libs/libgunicode.a
diff -ru fontforge-20080927.orig/configure fontforge-20080927/configure
--- fontforge-20080927.orig/configure 2008-09-14 19:31:08.000000000 -0400
+++ fontforge-20080927/configure 2008-09-29 01:41:44.000000000 -0400
@@ -2684,7 +2684,7 @@
fi;
-LDFLAGS="$LDFLAGS -L/usr/local/lib"
+#LDFLAGS="$LDFLAGS -L/usr/local/lib"
case "$host" in
*-apple-darwin*)
@@ -2705,13 +2705,13 @@
gww_define_caps_for_alt="1"
- if test -d /sw/include >/dev/null ; then
- CPPFLAGS="$CPPFLAGS -I/sw/include"
- fi
- if test -d /sw/lib >/dev/null ; then
- LDFLAGS="$LDFLAGS -L/sw/lib"
- gww_rpath="-rpath /sw/lib"
- fi
+# if test -d /sw/include >/dev/null ; then
+# CPPFLAGS="$CPPFLAGS -I/sw/include"
+# fi
+# if test -d /sw/lib >/dev/null ; then
+# LDFLAGS="$LDFLAGS -L/sw/lib"
+# gww_rpath="-rpath /sw/lib"
+# fi
LIBS="-Wl,/System/Library/Frameworks/Carbon.framework/Carbon $LIBS"
LIBS="-Wl,/System/Library/Frameworks/CoreServices.framework/CoreServices $LIBS"
@@ -19756,7 +19756,7 @@
echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_libxml2_libxml" >&5
echo "${ECHO_T}$ac_cv_file__usr_include_libxml2_libxml" >&6
if test $ac_cv_file__usr_include_libxml2_libxml = yes; then
- CFLAGS="$CFLAGS -I/usr/include/libxml2/"
+ true
else
echo "$as_me:$LINENO: checking for /usr/local/include/libxml2/libxml" >&5
@@ -19777,7 +19777,7 @@
echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_libxml2_libxml" >&5
echo "${ECHO_T}$ac_cv_file__usr_local_include_libxml2_libxml" >&6
if test $ac_cv_file__usr_local_include_libxml2_libxml = yes; then
- CFLAGS="$CFLAGS -I/usr/local/include -I/usr/local/include/libxml2/"
+ true
else
cat >>confdefs.h <<\_ACEOF
#define _NO_LIBXML 1
diff -ru fontforge-20080927.orig/fontforge/Makefile.dynamic.in fontforge-20080927/fontforge/Makefile.dynamic.in
--- fontforge-20080927.orig/fontforge/Makefile.dynamic.in 2008-09-14 18:27:24.000000000 -0400
+++ fontforge-20080927/fontforge/Makefile.dynamic.in 2008-09-29 01:41:44.000000000 -0400
@@ -66,12 +66,12 @@
#I used to include -L/usr/lib explicitly after static_libs. Not sure why. Should be implied & breaks 64bit compiles
LDFLAGS = @LDFLAGS@
-LIBS = -rpath $(libdir) $(X_LIBS) @LINK_WITH_GDRAW@ ../libgutils.la \
+LIBS = -rpath $(libdir) $(STATIC_LIBS) $(X_LIBS) @LINK_WITH_GDRAW@ ../libgutils.la \
../libgunicode.la \
- $(X_PRE_LIBS) $(X_11LIB) $(X_EXTRA_LIBS) @LIBS@ $(STATIC_LIBS) -lm
-LIBLIBS = -rpath $(libdir) ../libgutils.la ../libgunicode.la \
- @LIBS@ $(STATIC_LIBS) -lm
-DLIBS = -rpath $(libdir) ../libgunicode.la @LIBS@ $(STATIC_LIBS) -lm
+ $(X_PRE_LIBS) $(X_11LIB) $(X_EXTRA_LIBS) @LIBS@ -lm
+LIBLIBS = -rpath $(libdir) $(STATIC_LIBS) ../libgutils.la ../libgunicode.la \
+ @LIBS@ -lm
+DLIBS = -rpath $(libdir) $(STATIC_LIBS) ../libgunicode.la @LIBS@ -lm
all: @FINAL_TARGET@ @MACAPP@ sfddiff fontimage fontlint
diff -ru fontforge-20080927.orig/fontforge/start.c fontforge-20080927/fontforge/start.c
--- fontforge-20080927.orig/fontforge/start.c 2008-02-04 08:56:47.000000000 -0500
+++ fontforge-20080927/fontforge/start.c 2008-09-29 01:41:44.000000000 -0400
@@ -125,7 +125,6 @@
/* install image libs. For some reason fink installs in a place */
/* the dynamic loader doesn't find */
/* (And fink's attempts to set the PATH variables generally don't work */
- setenv("DYLD_LIBRARY_PATH","/sw/lib",0);
#endif
}
diff -ru fontforge-20080927.orig/gdraw/Makefile.dynamic.in fontforge-20080927/gdraw/Makefile.dynamic.in
--- fontforge-20080927.orig/gdraw/Makefile.dynamic.in 2008-08-27 10:39:23.000000000 -0400
+++ fontforge-20080927/gdraw/Makefile.dynamic.in 2008-09-29 01:41:44.000000000 -0400
@@ -34,8 +34,8 @@
gtextfield.lo gtextinfo.lo gwidgets.lo gxdraw.lo \
ghvbox.lo gmatrixedit.lo gdrawable.lo gspacer.lo xkeysyms_unicode.lo
-Incs = -I$(top_srcdir)/inc -I/usr/pkg/include -I/usr/pkg/include/giflib
-CFLAGS = @CFLAGS@ @CPPFLAGS@ $(Incs) @WFLAGS@ $(X_CFLAGS) -DNOTHREADS @DEFS@ -DLIBDIR='"$(libdir)"'
+Incs = -I$(top_srcdir)/inc
+CFLAGS = $(Incs) @CFLAGS@ @CPPFLAGS@ @WFLAGS@ $(X_CFLAGS) -DNOTHREADS @DEFS@ -DLIBDIR='"$(libdir)"'
../libgdraw.la: $(libgdraw_OBJECTS)
$(LIBTOOL) --mode=link $(CC) -no-undefined $(CFLAGS) @LDFLAGS@ -o ../libgdraw.la $(libgdraw_OBJECTS) \
diff -ru fontforge-20080927.orig/gdraw/Makefile.static.in fontforge-20080927/gdraw/Makefile.static.in
--- fontforge-20080927.orig/gdraw/Makefile.static.in 2008-08-27 10:39:23.000000000 -0400
+++ fontforge-20080927/gdraw/Makefile.static.in 2008-09-29 01:41:44.000000000 -0400
@@ -24,8 +24,8 @@
gtextfield.o gtextinfo.o gwidgets.o gxdraw.o \
ghvbox.o gmatrixedit.o gdrawable.o gspacer.o xkeysyms_unicode.o
-Incs = -I$(top_srcdir)/inc -I/usr/pkg/include -I/usr/pkg/include/giflib
-CFLAGS = @CFLAGS@ @CPPFLAGS@ $(Incs) @WFLAGS@ $(X_CFLAGS) -DNOTHREADS @DEFS@ -DLIBDIR='"$(libdir)"'
+Incs = -I$(top_srcdir)/inc
+CFLAGS = $(Incs) @CFLAGS@ @CPPFLAGS@ @WFLAGS@ $(X_CFLAGS) -DNOTHREADS @DEFS@ -DLIBDIR='"$(libdir)"'
all: ../libs/libgdraw.a
diff -ru fontforge-20080927.orig/gutils/Makefile.dynamic.in fontforge-20080927/gutils/Makefile.dynamic.in
--- fontforge-20080927.orig/gutils/Makefile.dynamic.in 2008-08-20 16:50:24.000000000 -0400
+++ fontforge-20080927/gutils/Makefile.dynamic.in 2008-09-29 01:41:44.000000000 -0400
@@ -35,21 +35,19 @@
gio.lo giofile.lo giohosts.lo giomime.lo giothread.lo giotrans.lo
libgioftp_OBJECTS = gioftp.lo
-Incs = -I$(top_srcdir)/inc -I/usr/pkg/include -I/usr/pkg/include/giflib
-CFLAGS = @CFLAGS@ @CPPFLAGS@ $(Incs) @WFLAGS@ $(X_CFLAGS) -DNOTHREADS @DEFS@ -DLIBDIR='"$(libdir)"'
+Incs = -I$(top_srcdir)/inc
+CFLAGS = $(Incs) @CFLAGS@ @CPPFLAGS@ @WFLAGS@ $(X_CFLAGS) -DNOTHREADS @DEFS@ -DLIBDIR='"$(libdir)"'
both: ../libgutils.la ../libgioftp.la
../libgutils.la: $(libgutils_OBJECTS)
- $(LIBTOOL) --mode=link $(CC) -no-undefined $(CFLAGS) @LDFLAGS@ -o ../libgutils.la $(libgutils_OBJECTS) \
+ $(LIBTOOL) --mode=link $(CC) -no-undefined $(CFLAGS) $(STATIC_LIBS) @LDFLAGS@ -o ../libgutils.la $(libgutils_OBJECTS) \
../libgunicode.la @LIBS@ \
- $(STATIC_LIBS) \
-rpath $(libdir) -version-info $(GU_VERSION):$(GU_REVISION):$(GU_AGE)
../libgioftp.la: $(libgioftp_OBJECTS)
- $(LIBTOOL) --mode=link $(CC) -no-undefined $(CFLAGS) @LDFLAGS@ -o ../libgioftp.la $(libgioftp_OBJECTS) \
+ $(LIBTOOL) --mode=link $(CC) -no-undefined $(CFLAGS) $(STATIC_LIBS) @LDFLAGS@ -o ../libgioftp.la $(libgioftp_OBJECTS) \
../libgunicode.la @LIBS@ \
- $(STATIC_LIBS) \
-rpath $(libdir) -version-info $(GFTP_VERSION):$(GFTP_REVISION):$(GFTP_AGE)
%.lo: %.c