the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: freetype2
Version: 2.1.4
Revision: 12
BuildDepends: fink (>= 0.24.12-1)
# Depends: %N-shlibs (= %v-%r)
Conflicts: freetype2-hinting
Replaces: freetype2-hinting
BuildDependsOnly: True
Source: mirror:sourceforge:freetype/freetype-%v.tar.gz
Source-MD5: dd40b965b06d66749e53df9299633886
PatchFile: %n.patch
PatchFile-MD5: 69d6d48d50a15da5d516f5c00ceaf772
PatchScript: <<
%{default_script}
mv install install.sh
<<
NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
CompileScript: <<
make setup CFG="--prefix=%p"
perl -pi.bak -e 's/^allow_undefined_flag.*/allow_undefined_flag=\"\"/' builds/unix/libtool
make
<<
InstallScript: <<
#!/bin/sh -ev
make install prefix=%i
install -d -m 755 %i/lib/freetype2/lib
mv %i/bin %i/lib/freetype2
mv %i/lib/libfreetype.a %i/lib/freetype2/lib
mv %i/lib/libfreetype.dylib %i/lib/freetype2/lib
ln -sf %p/lib/libfreetype.6.dylib %i/lib/freetype2/lib/libfreetype.dylib
perl -p -e 's,%p/lib,%p/lib/freetype2/lib,g' %i/lib/libfreetype.la > %i/lib/freetype2/lib/libfreetype.la
rm -rf %i/lib/libfreetype.la
mv %i/include %i/lib/freetype2
rm -rf %i/share/aclocal
for file in %i/lib/libfreetype*.dylib; do
REALFILE=`echo "$file" | sed -e 's,^%d,,'`
ln -sf "$REALFILE" %i/lib/freetype2/lib/
done
<<
SplitOff: <<
Package: %N-shlibs
Replaces: freetype2-hinting-shlibs, freetype2 (<< 2.0.8-2)
Conflicts: freetype2-hinting-shlibs
Files: lib/libfreetype.6*dylib
Shlibs: %p/lib/libfreetype.6.dylib 10.0.0 %n (>= 2.0.9-1)
DocFiles: <<
README docs/* src/autohint/CatharonLicense.txt
src/pcf/readme:README.pcf
<<
Description: TrueType font rendering library, shared libs
<<
SplitOff2: <<
Package: %N-dev
Depends: %N-shlibs (=%v-%r)
Replaces: freetype2-hinting-dev
Conflicts: freetype2-hinting-dev
Files: lib/freetype2
DocFiles: <<
README docs/* src/autohint/CatharonLicense.txt
src/pcf/readme:README.pcf
<<
Description: TrueType font rendering library, headers
<<
DocFiles: <<
README docs/* src/autohint/CatharonLicense.txt
src/pcf/readme:README.pcf
<<
Description: TrueType font rendering library, (dummy)
DescDetail: <<
FreeType 2 is a library that provides access to and rendering of a
wide range of font file formats, including TrueType, PostScript Type 1,
and several bitmap font formats.
<<
DescUsage: <<
Packages that need freetype2 versions between 2.1.3 and 2.1.6,
should builddepend on freetype2-dev and depend on freetype2-shlibs
and make sure that configure finds the freetype-config script in
%p/lib/freetype2/bin. The headers and libraries needed at build
time are in %p/lib/freetype2/{include,lib}.
<<
DescPort: <<
Previous versions by Christoph Pfisterer
<<
License: OSI-Approved
Homepage: http://www.freetype.org/
Maintainer: None
diff -aur freetype-2.1.4_ori/builds/unix/detect.mk freetype-2.1.4/builds/unix/detect.mk
--- freetype-2.1.4_ori/builds/unix/detect.mk 2002-06-14 10:09:25.000000000 +0200
+++ freetype-2.1.4/builds/unix/detect.mk 2005-02-27 23:38:15.000000000 +0100
@@ -18,7 +18,7 @@
# Note: this test is duplicated in "builds/toplevel.mk".
#
- is_unix := $(strip $(wildcard /sbin/init) $(wildcard /usr/sbin/init) $(wildcard /hurd/auth))
+ is_unix := $(strip $(wildcard /sbin/init) $(wildcard /usr/sbin/init) $(wildcard /hurd/auth) $(wildcard /sbin/launchd))
ifneq ($(is_unix),)
PLATFORM := unix
Only in freetype-2.1.4/builds/unix: detect.mk~
diff -aur freetype-2.1.4_ori/builds/unix/freetype-config.in freetype-2.1.4/builds/unix/freetype-config.in
--- freetype-2.1.4_ori/builds/unix/freetype-config.in 2002-12-16 22:51:23.000000000 +0100
+++ freetype-2.1.4/builds/unix/freetype-config.in 2005-02-27 23:32:32.000000000 +0100
@@ -1,6 +1,6 @@
#! /bin/sh
-prefix=@prefix@
+prefix=@prefix@/lib/freetype2
exec_prefix=@exec_prefix@
usage()
Only in freetype-2.1.4/builds/unix: freetype-config.in~
diff -aur freetype-2.1.4_ori/src/base/ftobjs.c freetype-2.1.4/src/base/ftobjs.c
--- freetype-2.1.4_ori/src/base/ftobjs.c 2003-03-27 22:35:43.000000000 +0100
+++ freetype-2.1.4/src/base/ftobjs.c 2005-02-27 23:37:16.000000000 +0100
@@ -926,7 +926,7 @@
/* there's a Mac-specific extended implementation of FT_New_Face() */
/* in src/base/ftmac.c */
-#ifndef FT_MACINTOSH
+/*#ifndef FT_MACINTOSH*/
/* documentation is in freetype.h */
@@ -949,7 +949,7 @@
return FT_Open_Face( library, &args, face_index, aface );
}
-#endif /* !FT_MACINTOSH */
+/*#endif !FT_MACINTOSH */
/* documentation is in freetype.h */
Only in freetype-2.1.4/src/base: ftobjs.c~
diff -uNr freetype-2.1.4/src/base/ftmac.c freetype-2.1.4-new/src/base/ftmac.c
--- freetype-2.1.4/src/base/ftmac.c 2002-08-27 16:20:26.000000000 -0400
+++ freetype-2.1.4-new/src/base/ftmac.c 2006-04-28 00:13:37.000000000 -0400
@@ -70,7 +70,7 @@
#include
#include
#include
-
+#include
#include FT_MAC_H
@@ -267,12 +267,12 @@
if ( assoc->fontSize == 0 )
{
*have_sfnt = 1;
- *sfnt_id = assoc->fontID;
+ *sfnt_id = OSSwapBigToHostInt16(assoc->fontID);
}
else if ( base_assoc->fontSize == 0 )
{
*have_sfnt = 1;
- *sfnt_id = base_assoc->fontID;
+ *sfnt_id = OSSwapBigToHostInt16(base_assoc->fontID);
}
if ( fond->ffStylOff )