Package: xft2-dev # 2.3.1 seems to give spacing problems # https://bugs.freedesktop.org/show_bug.cgi?id=47178 # and no major new features vs 2.2.0 Version: 2.2.0 Revision: 3 Maintainer: The Gnome Core Team BuildDependsOnly: true BuildDepends: << fink-package-precedence, fink (>= 0.24.12), fontconfig2-dev (>= 2.10.0-1), freetype219 (>= 2.4.11-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.10.0-1), freetype219-shlibs (>= 2.4.11-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