the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: xft2-dev
Version: 2.2.0
Revision: 2
Maintainer: The Gnome Core Team
BuildDependsOnly: true
BuildDepends: <<
fink (>= 0.24.12),
fink-package-precedence,
fontconfig2-dev (>= 2.8.0-6),
freetype219 (>= 2.4.4-1),
pkgconfig,
x11-dev
<<
Depends: xft2-shlibs (= %v-%r)
Source-MD5: cce3c327258116493b753f157e0360c7
Source: http://xorg.freedesktop.org/releases/individual/lib/libXft-%v.tar.bz2
PatchFile: %n.patch
PatchFile-MD5: 528d20606130537fd342fdd1614d2444
ConfigureParams: --prefix=%p/lib/xft2 --mandir=%p/share/man --disable-silent-rules --enable-dependency-tracking --disable-static
CompileScript: <<
#!/bin/sh -ev
%{default_script}
fink-package-precedence --prohibit-bdep %n .
<<
InstallScript: <<
#!/bin/sh -ev
make install DESTDIR=%d
# everything is buried in a private hierarchy...
# now symlink from the default places
# must not symlink dirs...risk of confusing dpkg
pushd %i/lib/xft2
# 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. symlink the individual files
/usr/bin/find . \( -type f -o -type l \) -print0 | /usr/bin/xargs -0 -n 1 -I" " ln -sv "%p/lib/xft2/ " "%i/ "
# adjust to emit paths pointing to the default places
#must edit actual files...perl-pie replaces symlink
#with actual file (!= acting through the symlink)
perl -pi -e 's,%p/lib/xft2,%p,g' lib/pkgconfig/*
# lib/*.la #Scared of libtool!
popd
# only keep the main ld file, not all the underlying pieces
rm %i/lib/libXft.2.*
<<
DocFiles: AUTHORS COPYING ChangeLog NEWS README
SplitOff: <<
Package: xft2-shlibs
Depends: <<
dpkg-base-files,
fontconfig2-shlibs (>= 2.8.0-6),
freetype219-shlibs (>= 2.4.4-1),
x11-shlibs
<<
Files: lib/xft2/lib/libXft.2.*dylib
Shlibs: %p/lib/xft2/lib/libXft.2.dylib 5.0.0 %n (>= 2.2.0-1)
DocFiles: AUTHORS COPYING ChangeLog NEWS README
<<
Description: FreeType font support for X11 apps
DescPackaging: <<
Formerly maintained by Alexander Strange
Prior to 2.1.14-1, was static-only. Now have shared, so use
dpkg-base-files to avoid further propagation of this
new/changed dependency via dependant pkgs' .la files (if
.dylib is available, will default to that, regardless of
whatever .a might be available).
No longer supply static (as of 2.2.0-1).
xproto and xrender are not necessarily available via
pkg-config. Don't need their -l or -L (probably, unless user
specifically calls static lib, in which case he's already
doing hacking to pass non-default linker flags--shared libs
already fully resolve all internal-implementation symbols and
these are not in public ABI). Add -I explicitly for x11ish
#include in public API headers.
xft-config went away as of 2.2.0-1 (long-existing .pc approach
still available), at which time nothing in fink appears to
have still being using the -config approach)
<<
License: Restrictive/Distributable
Homepage: http://www.fontconfig.org
diff -Nurd -x'*~' libXft-2.2.0.orig/src/Makefile.in libXft-2.2.0/src/Makefile.in
--- libXft-2.2.0.orig/src/Makefile.in 2010-10-29 19:22:06.000000000 -0400
+++ libXft-2.2.0/src/Makefile.in 2011-04-22 16:40:59.000000000 -0400
@@ -254,8 +254,8 @@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-AM_CFLAGS = $(FONTCONFIG_CFLAGS) $(FREETYPE_CFLAGS) $(XRENDER_CFLAGS) \
- $(CWARNFLAGS) -I$(top_builddir)/include/X11/Xft
+AM_CPPFLAGS = -I$(top_builddir)/include/X11/Xft $(FONTCONFIG_CFLAGS) $(FREETYPE_CFLAGS) $(XRENDER_CFLAGS)
+AM_CFLAGS = $(CWARNFLAGS)
lib_LTLIBRARIES = libXft.la
libXft_la_SOURCES = xftint.h \
diff -Nurd -x'*~' libXft-2.2.0.orig/xft.pc.in libXft-2.2.0/xft.pc.in
--- libXft-2.2.0.orig/xft.pc.in 2010-10-20 17:10:30.000000000 -0400
+++ libXft-2.2.0/xft.pc.in 2011-04-22 16:54:45.000000000 -0400
@@ -6,7 +6,6 @@
Name: Xft
Description: X FreeType library
Version: @VERSION@
-Requires: xproto
-Requires.private: xrender, fontconfig, freetype2
-Cflags: -I${includedir}
+Requires: fontconfig, freetype2
+Cflags: -I${includedir} -I/usr/X11/include -I/usr/X11R6/include
Libs: -L${libdir} -lXft