diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2010-05-06 20:02:51 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2010-05-06 20:18:41 +0200 |
commit | 4a57f7d261fdb93e4c8dac30907d7f06bf176f11 (patch) | |
tree | 8f8b89852a597e013b74ea9fff67f95a1311f3f6 /package/x11r7/xfont_font-util/post-install.sh | |
parent | 2eb4b09529a891e07d09ddf36c483b28edcd19ae (diff) |
xfont_font-util: enable host package
When compiling xfonts, host utilities like bdftopcf or ucs2any, part
of xfont_font-util are needed. Until now, xfont_font-util was
installing ugly symbolic links, assuming that these tools were
available on the development machine.
This patch enables the host package for xfont_font-util, removes the
post-install.sh script, and keeps only the useful part of this script
in a post install hook.
host-xfont_font-util will be used later by xfont packages.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/x11r7/xfont_font-util/post-install.sh')
-rwxr-xr-x | package/x11r7/xfont_font-util/post-install.sh | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/package/x11r7/xfont_font-util/post-install.sh b/package/x11r7/xfont_font-util/post-install.sh deleted file mode 100755 index 2cb54da65..000000000 --- a/package/x11r7/xfont_font-util/post-install.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - - STAGING_DIR=$1 - - # fix the fontutil pkgconfig file to cross-compile fonts after fontutil is installed - sed "s,^mapdir=.*,mapdir=${STAGING_DIR}/usr/share/fonts/X11/util,g" \ - ${STAGING_DIR}/usr/lib/pkgconfig/fontutil.pc > ${STAGING_DIR}/usr/lib/pkgconfig/fontutil.pc.new - mv ${STAGING_DIR}/usr/lib/pkgconfig/fontutil.pc.new ${STAGING_DIR}/usr/lib/pkgconfig/fontutil.pc - - # link to the build host's ucs2any and fc-cache - rm ${STAGING_DIR}/usr/bin/ucs2any - - ln -s `which ucs2any` ${STAGING_DIR}/usr/bin - if [ "$?" != "0" ]; then - echo "Error linking to the build host's ucs2any font utility." - echo "Make sure that you have the xorg-x11-font-utils package installed." - exit 1 - fi - - rm ${STAGING_DIR}/usr/bin/fc-cache - - ln -s `which fc-cache` ${STAGING_DIR}/usr/bin - if [ "$?" != "0" ]; then - echo "Error linking to the build host's fc-cache font utility." - echo "Make sure that you have the fontconfig package installed." - exit 1 - fi - |