This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[ITA] libXft/libXft2/libXft-devel-2.1.7: A client-side font API for X applications


Hi

I would like to adopt and maintain the 'libXft/libXft2/libXft-devel' 
packages from Harold Hunt and replace them with the latest version which 
is not dependent on the modular X11R7. This is 2.1.7. In this release,
there will be a change from the /usr/X11R6 hierarchy to /usr.


This package likes to install the header files to

  /usr/include/X11/Xft/*.h

xorg-x11-devel installs a symlink

  /usr/include/X11 -> ../X11R6/include/X11

Given that the X11 hierarchy is deprecated, I like to remove this
symlink in a preremove script.

-------------------- preremove ------------------
#!/bin/bash

if [ -L /usr/include/X11 ] ; then
  rm -f /usr/include/X11
fi
-------------------- preremove ------------------


Also to make libtool happy (as mentioned by Yaakov) in a postinstall 
script all .la files will be changed to accomodate the new library and header 
locations .

------------------- postinstall -----------------
#!/bin/bash

# Make libtool happy
for d in /usr/lib /usr/X11R6/lib
do
  echo ">>> Processing directory $d"
  for f in `find ${d} -name '*.la'`
  do
    if grep "/usr/X11R6/lib/libXft.la" ${f} > /dev/nul
    then
      echo "Processing file $f"
      chmod 644 ${f}
      sed -i -e 's#/usr/X11R6/lib/libXft\.la#/usr/lib/libXft\.la#g' ${f}
    fi
  done
done
------------------- postinstall -----------------



Here are the setup.hint files:
-------------------------------------------------------------------------------------------
./libXft-devel/setup.hint

sdesc: "X.org libXft component - (development)"
ldesc: "The current version of Xft (2.0) provides a client-side font API for X applications.
It uses Fontconfig to select fonts and the X protocol for rendering them. When
available, Xft uses the Render extension to accelerate text drawing. When Render
is not available, Xft uses the core protocol to draw client-side glyphs. This
provides completely compatible support of client-side fonts for all X servers."
category: Devel Libs X11
requires: cygwin libXft2 libfontconfig-devel xorg-x11-devel coreutils sed
external-source: libXft

-------------------------------------------------------------------------------------------
./libXft2/setup.hint

sdesc: "X.org libXft component - (runtime)"
ldesc: "The current version of Xft (2.0) provides a client-side font API for X applications.
It uses Fontconfig to select fonts and the X protocol for rendering them. When
available, Xft uses the Render extension to accelerate text drawing. When Render
is not available, Xft uses the core protocol to draw client-side glyphs. This
provides completely compatible support of client-side fonts for all X servers."
category: Libs X11
requires: cygwin libfontconfig1 xorg-x11-bin-dlls
external-source: libXft


-------------------------------------------------------------------------------------------
./setup.hint

sdesc: "X.org libXft component"
ldesc: "The current version of Xft (2.0) provides a client-side font API for X applications.
It uses Fontconfig to select fonts and the X protocol for rendering them. When
available, Xft uses the Render extension to accelerate text drawing. When Render
is not available, Xft uses the core protocol to draw client-side glyphs. This
provides completely compatible support of client-side fonts for all X servers."
category: Libs X11
requires: cygwin libXft2



For downloading 

------------------------------------ cut here ------------------------------------
#!/bin/bash

mkdir -p libXft/libXft2 libXft/libXft-devel

cd libXft
wget http://volkerzell.de/cygwin/ITP/libXft/setup.hint
wget http://volkerzell.de/cygwin/ITP/libXft/libXft-2.1.7-1-src.tar.bz2
wget http://volkerzell.de/cygwin/ITP/libXft/libXft-2.1.7-1.tar.bz2

cd libXft2
wget http://volkerzell.de/cygwin/ITP/libXft/libXft2/setup.hint
wget http://volkerzell.de/cygwin/ITP/libXft/libXft2/libXft2-2.1.7-1.tar.bz2

cd ../libXft-devel
wget http://volkerzell.de/cygwin/ITP/libXft/libXft-devel/setup.hint
wget http://volkerzell.de/cygwin/ITP/libXft/libXft-devel/libXft-devel-2.1.7-1.tar.bz2
------------------------------------ cut here ------------------------------------

Ciao
  Volker


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]