the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: freetype219
Version: 2.3.5
Revision: 3
BuildDepends: fink (>= 0.24.12-1)
Depends: %N-shlibs (= %v-%r)
Conflicts: freetype219-hinting
Replaces: freetype219-hinting
BuildDependsOnly: True
Source: http://download.savannah.gnu.org/releases/freetype/freetype-%v.tar.bz2
Source-MD5: 65234327c5ac46ee00ebda15995d4c1c
#Source2: mirror:debian:pool/main/f/freetype/freetype_%v-1.diff.gz
Source2: mirror:debian:pool/main/f/freetype/freetype_2.3.7-1.diff.gz
Source2-MD5: 14bb0806ebcfe2dc0155979906a339d9
PatchFile: %n.patch
PatchFile-MD5: ad3d8e4f8865bfa1020f0aa3b7b403ef
PatchScript: <<
%{default_script}
#gzip -dc ../freetype_%v-1.diff.gz | patch -p1
gzip -dc ../freetype_2.3.7-1.diff.gz | patch -p1
patch -p0 < debian/patches-freetype/freetype-bytecode-interpreter.patch
patch -p0 < debian/patches-freetype/freetype-2.1.7-backwards.compat.patch
patch -p0 < debian/patches-freetype/freetype-bdflib-large-encodings.patch
patch -p1 < debian/patches-freetype/331-hmtx-no-shorts.diff
patch -p1 < debian/patches-freetype/enable-full-bytecode-interpreter
<<
NoSetCPPFLAGS: true
CompileScript: <<
#!/bin/sh -ev
export CPATH=%p/include
./configure --prefix=%p/lib/%N --with-old-mac-fonts --mandir=%p/share/man --infodir=%p/share/info
make
<<
InstallScript: <<
#!/bin/sh -ev
make -j1 install DESTDIR="%d"
rm -rf %i/lib/%N/share
install -d -m 755 %i/share/doc/%N
cp -pR docs/* %i/share/doc/%N/
<<
SplitOff: <<
Package: %N-shlibs
Replaces: freetype219-hinting-shlibs, freetype2 (<< 2.0.8-2)
Conflicts: freetype219-hinting-shlibs
Files: lib/%N/lib/libfreetype.6*dylib
Shlibs: %p/lib/%N/lib/libfreetype.6.dylib 10.0.0 %n (>= 2.1.9-1)
DocFiles: README docs/LICENSE.TXT
Description: TrueType font rendering library, shared libs
<<
DocFiles: ChangeLog* README
Description: TrueType font rendering library, headers
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 2.1.8 or higher should
BuildDepend on freetype219 and depend on freetype219-shlibs
and potentially make sure that configure finds the freetype-config
script in %p/lib/freetype219/bin. The headers and libraries needed
at build time are in %p/lib/freetype219/{include,lib}.
<<
DescPort: <<
* Previous versions by Christoph Pfisterer
* 2006-08-06 Benjamin Reed
- updated to 2.2.1
- integrated patches from debian's freetype-2.2.1 for
backwards-compatibility with 2.1.9 and earlier
* 2006-11-14 Martin Costabel
- integrated endianness fix from freetype CVS
* 2008-02-05 Daniel Macks
- split separate -frameworks into separate words so pkg-config
can de-dup them individually. See:
https://savannah.nongnu.org/bugs/index.php?22366
<<
DescPackaging: <<
Debian's 2.3.5 patch expired off their servers, but 2.3.7
exists and contains identical patches.
<<
License: OSI-Approved
Homepage: http://www.freetype.org/
Maintainer: None
diff -Nurd -x'*~' freetype-2.3.5.orig/builds/unix/configure freetype-2.3.5/builds/unix/configure
--- freetype-2.3.5.orig/builds/unix/configure 2007-07-02 17:41:45.000000000 -0400
+++ freetype-2.3.5/builds/unix/configure 2008-02-05 11:02:13.000000000 -0500
@@ -5979,7 +5979,7 @@
orig_LDFLAGS="${LDFLAGS}"
{ echo "$as_me:$LINENO: checking CoreServices & ApplicationServices of Mac OS X" >&5
echo $ECHO_N "checking CoreServices & ApplicationServices of Mac OS X... $ECHO_C" >&6; }
- FT2_EXTRA_LIBS="-Wl,-framework,CoreServices,-framework,ApplicationServices"
+ FT2_EXTRA_LIBS="-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices"
LDFLAGS="$LDFLAGS $FT2_EXTRA_LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
diff -ruN freetype-2.2.1-orig/modules.cfg freetype-2.2.1/modules.cfg
--- freetype-2.2.1-orig/modules.cfg 2006-03-01 02:01:21.000000000 +0900
+++ freetype-2.2.1/modules.cfg 2006-11-19 15:40:45.000000000 +0900
@@ -124,7 +124,7 @@
# OpenType table validation. Needs ftotval.c below.
#
-# AUX_MODULES += otvalid
+AUX_MODULES += otvalid
# Auxiliary PostScript driver component to share common code.
#
Package: freetype219
Version: 2.3.7
Revision: 7
BuildDepends: fink (>= 0.24.12-1)
Depends: %N-shlibs (= %v-%r)
Conflicts: freetype219-hinting
Replaces: freetype219-hinting, %N-default
BuildDependsOnly: True
Source: http://download.savannah.gnu.org/releases/freetype/freetype-%v.tar.bz2
Source-MD5: 83306194817ebdea554133b4232a34aa
#Source2: mirror:debian:pool/main/f/freetype/freetype_%v-1.diff.gz
Source2: mirror:debian:pool/main/f/freetype/freetype_2.3.7-2.diff.gz
Source2-MD5: 37ad0b2481156f7caf841549d7e96819
PatchFile: %n.patch
PatchFile-MD5: b09c595051f39d2219c0d2dc978a5728
PatchScript: <<
%{default_script}
gzip -dc ../freetype_%v-2.diff.gz | patch -p1
patch -p0 < debian/patches-freetype/freetype-bytecode-interpreter.patch
patch -p0 < debian/patches-freetype/freetype-2.1.7-backwards.compat.patch
patch -p0 < debian/patches-freetype/freetype-bdflib-large-encodings.patch
patch -p1 < debian/patches-freetype/331-hmtx-no-shorts.diff
patch -p1 < debian/patches-freetype/enable-full-bytecode-interpreter
patch -p1 < debian/patches-freetype/no-segfault-on-load_mac_face
<<
NoSetCPPFLAGS: true
CompileScript: <<
#!/bin/sh -ev
export CPATH=%p/include
./configure --prefix=%p/lib/%N --with-old-mac-fonts
make
<<
InstallScript: <<
#!/bin/sh -ev
make -j1 install DESTDIR="%d"
rm -rf %i/lib/%N/share
install -d -m 755 %i/share/doc/%N
cp -pR docs/* %i/share/doc/%N/
# everything is buried in a private hierarchy...
# now symlink from the default places
# must not symlink dirs...risk of confusing dpkg
pushd %i/lib/freetype219
# 1. clone actual directory structure
# NB: will fail miserably if space in %i or %p
# but fink hopelessly can't handle that anyway
/usr/bin/find . -type d -print0 | /usr/bin/xargs -0 -n 1 -I" " mkdir -pv "%i/ "
# 2. sylink the individual files
/usr/bin/find . \( -type f -o -type l \) -print0 | /usr/bin/xargs -0 -n 1 -I" " ln -sv "%p/lib/freetype219/ " "%i/ "
## adjust to emit paths pointing to the default places
#(no, too confusing)
#perl -pi -e 's,%p/lib/freetype219,%p,g' bin/* lib/pkgconfig/* lib/*.la
popd
# only keep the main ld file, not all the underlying pieces
rm %i/lib/libfreetype.6.*
<<
SplitOff: <<
Package: %N-shlibs
Replaces: freetype219-hinting-shlibs, freetype2 (<< 2.0.8-2)
Conflicts: freetype219-hinting-shlibs
Files: lib/%N/lib/libfreetype.6*dylib
Shlibs: %p/lib/%N/lib/libfreetype.6.dylib 10.0.0 %n (>= 2.1.9-1)
DocFiles: README docs/LICENSE.TXT
Description: TrueType font rendering library, shared libs
<<
SplitOff2: <<
Package: %N-default
Depends: %N (>= %v-%r), fink-obsolete-packages
BuildDependsOnly: true
InstallScript: <<
mkdir -p %i/share/doc/installed-packages
touch %i/share/doc/installed-packages/%n
<<
Description: Transient upgrader package
<<
DocFiles: ChangeLog* README docs/LICENSE.TXT
Description: TrueType font rendering library, headers
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 2.1.8 or higher should
BuildDepend on freetype219 and depend on freetype219-shlibs
and potentially make sure that configure finds the freetype-config
script in %p/lib/freetype219/bin. The headers and libraries needed
at build time are in %p/lib/freetype219/{include,lib}, and also
(as of 2.3.7-4) in the normal places (%p/{bin,include,lib}).
<<
DescPort: <<
* Previous versions by Christoph Pfisterer
* 2006-08-06 Benjamin Reed
- updated to 2.2.1
- integrated patches from debian's freetype-2.2.1 for
backwards-compatibility with 2.1.9 and earlier
* 2006-11-14 Martin Costabel
- integrated endianness fix from freetype CVS
* 2008-August/September Daniel Macks
- updated from 2.3.5 to 2.3.7
- implemented symlinking game from compiler-default paths
<<
DescPackaging: <<
CPPFLAGS gets passed before local -I and we don't use any fink
headers, so just omit default -I%p/include
Don't install freetype2.m4 because...that's how we've always
done it for this package.
<<
License: OSI-Approved
Homepage: http://www.freetype.org/
Maintainer: None
diff -ruN freetype-2.2.1-orig/modules.cfg freetype-2.2.1/modules.cfg
--- freetype-2.2.1-orig/modules.cfg 2006-03-01 02:01:21.000000000 +0900
+++ freetype-2.2.1/modules.cfg 2006-11-19 15:40:45.000000000 +0900
@@ -124,7 +124,7 @@
# OpenType table validation. Needs ftotval.c below.
#
-# AUX_MODULES += otvalid
+AUX_MODULES += otvalid
# Auxiliary PostScript driver component to share common code.
#